6b75bed3df0aeec7edb3e7e644de0a791468cb72
[openwrt/svn-archive/archive.git] / admin / osiris / Makefile
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=osiris
11 PKG_VERSION:=4.2.3
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://osiris.shmoo.com/data/
16 PKG_MD5SUM:=1951c7dc0fe729af9ffaf58910340d12
17
18 PKG_FIXUP:=libtool
19 PKG_LIBTOOL_PATHS:=src/db-4.2.52/build_unix
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/osirisd
24 SECTION:=admin
25 CATEGORY:=Administration
26 DEPENDS:=+libopenssl +libpthread
27 TITLE:=Host integrity monitoring system (scanning agent)
28 URL:=http://www.hostintegrity.com/osiris
29 endef
30
31 CONFIGURE_ARGS += \
32 --with-osiris-user=root \
33 --with-root-dir=/var/lib/osiris \
34 --with-readline=no, \
35 ac_cv_openssldir="$(STAGING_DIR)/usr"
36
37 MAKE_FLAGS += \
38 DESTDIR="$(PKG_INSTALL_DIR)" \
39 INTERACTIVE=0 \
40 all install
41
42 define Package/osirisd/install
43 $(INSTALL_DIR) $(1)/usr/sbin
44 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/osirisd $(1)/usr/sbin/
45 $(INSTALL_DIR) $(1)/etc/init.d
46 $(INSTALL_BIN) ./files/osirisd.init $(1)/etc/init.d/osirisd
47 endef
48
49 $(eval $(call BuildPackage,osirisd))