2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
16 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
18 PKG_SOURCE_URL:=http://osiris.shmoo.com/data/
19 PKG_MD5SUM:=11445f7d8dec737f0be89357f5c5bcae
22 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
24 include $(INCLUDE_DIR)/package.mk
26 define Package/osirisd
28 CATEGORY:=Administration
30 TITLE:=Host integrity monitoring system (scanning agent)
31 DESCRIPTION:=an Host Integrity Monitoring System (scanning agent)
32 URL:=http://www.hostintegrity.com/osiris
35 define Build/Configure
36 $(call Build/Configure/Default, \
37 --with-osiris-user=root \
38 --with-root-dir=/var/lib/osiris \
40 ac_cv_openssldir="$(STAGING_DIR)/usr" \
41 ac_cv_have_accrights_in_msghdr=no \
42 ac_cv_have_control_in_msghdr=yes \
47 rm -rf $(PKG_INSTALL_DIR)
48 mkdir -p $(PKG_INSTALL_DIR)
49 $(MAKE) -C $(PKG_BUILD_DIR) \
50 $(TARGET_CONFIGURE_OPTS) \
51 DESTDIR="$(PKG_INSTALL_DIR)" \
56 define Package/osirisd/install
57 install -d -m0755 $(1)/etc/init.d
58 install -m0755 ./files/osirisd.init $(1)/etc/init.d/osirisd
59 install -d -m0755 $(1)/usr/sbin
60 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/osirisd $(1)/usr/sbin/
63 $(eval $(call BuildPackage,osirisd))