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