use target optimization flags, Makefile cleanup
[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 )
42 endef
43
44 define Build/Compile
45 rm -rf $(PKG_INSTALL_DIR)
46 mkdir -p $(PKG_INSTALL_DIR)
47 $(MAKE) -C $(PKG_BUILD_DIR) \
48 $(TARGET_CONFIGURE_OPTS) \
49 DESTDIR="$(PKG_INSTALL_DIR)" \
50 INTERACTIVE=0 \
51 all install
52 endef
53
54 define Package/osirisd/install
55 install -d -m0755 $(1)/etc/init.d
56 install -m0755 ./files/osirisd.init $(1)/etc/init.d/osirisd
57 install -d -m0755 $(1)/usr/sbin
58 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/osirisd $(1)/usr/sbin/
59 endef
60
61 $(eval $(call BuildPackage,osirisd))