port lighttpd to buildroot-ng
[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.1
13 PKG_RELEASE:=1
14
15
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
20 PKG_CAT:=zcat
21
22 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/osirisd
27 SECTION:=admin
28 CATEGORY:=Administration
29 DEPENDS:=+libopenssl
30 TITLE:=Host integrity monitoring system (scanning agent)
31 DESCRIPTION:=an Host Integrity Monitoring System (scanning agent)
32 URL:=http://www.hostintegrity.com/osiris
33 endef
34
35 define Build/Configure
36 $(call Build/Configure/Default, \
37 --with-osiris-user=root \
38 --with-root-dir=/var/lib/osiris \
39 --with-readline=no, \
40 ac_cv_openssldir="$(STAGING_DIR)/usr" \
41 ac_cv_have_accrights_in_msghdr=no \
42 ac_cv_have_control_in_msghdr=yes \
43 )
44 endef
45
46 define Build/Compile
47 rm -rf $(PKG_INSTALL_DIR)
48 mkdir -p $(PKG_INSTALL_DIR)
49 $(MAKE) -C $(PKG_BUILD_DIR) \
50 $(TARGET_CONFIGURE_OPTS) \
51 ar=$(TARGET_CROSS)ar \
52 DESTDIR="$(PKG_INSTALL_DIR)" \
53 INTERACTIVE=0 \
54 all install
55 endef
56
57 define Package/osirisd/install
58 install -d -m0755 $(1)/etc/init.d
59 install -m0755 ./files/osirisd.init $(1)/etc/init.d/osirisd
60 install -d -m0755 $(1)/usr/sbin
61 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/osirisd $(1)/usr/sbin/
62 endef
63
64 $(eval $(call BuildPackage,osirisd))