source: freewrt/package/osiris/Makefile@ 33408c6

freewrt_1_0 freewrt_2_0
Last change on this file since 33408c6 was d419478, checked in by Thorsten Glaser <tg@…>, 19 years ago
  • whitespace cleanup, while here
  • move WRKDIR and DISTFILES definition into PKG_template
  • define WRKDIR via parent BUILD_DIR instead of going up from WRKSRC
  • use a sub-directory as WRKDIR, like BSD
  • rename PKG_BUILD_DIR into WRKBUILD
  • define WRKBUILD relative via WRKDIR
  • rename PKG_INSTALL_DIR into WRKINST
  • fix a few dependencies
  • make use of common cases in the definition of WRKBUILD and WRKINST, removing many redundant lines
  • use WRKDIR instead of BUILD_DIR in places where the latter was used previously
  • while here, remove PKG_CAT stuff

this only affects packages, for now

git-svn-id: svn://www.freewrt.org/trunk/freewrt@303 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.9 KB
Line 
1# $Id: Makefile 3515 2006-03-28 00:05:52Z nico $
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=osiris
6PKG_VERSION:=4.2.0
7PKG_RELEASE:=1
8PKG_MD5SUM:=ad30995660e506ee6d1d6460601f6107
9
10PKG_SOURCE_URL:=http://www.hostintegrity.com/osiris/data/
11PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12
13
14include $(TOPDIR)/package/rules.mk
15
16$(eval $(call PKG_template,OSIRISD,osirisd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
17
18$(WRKBUILD)/.configured:
19 (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
20 $(TARGET_CONFIGURE_OPTS) \
21 CFLAGS="$(TARGET_CFLAGS)" \
22 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
23 LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
24 ac_cv_openssldir="$(STAGING_DIR)/usr" \
25 ac_cv_have_accrights_in_msghdr=no \
26 ac_cv_have_control_in_msghdr=yes \
27 ./configure \
28 --target=$(GNU_TARGET_NAME) \
29 --host=$(GNU_TARGET_NAME) \
30 --build=$(GNU_HOST_NAME) \
31 --program-prefix="" \
32 --program-suffix="" \
33 --prefix=/usr \
34 --exec-prefix=/usr \
35 --bindir=/usr/bin \
36 --datadir=/usr/share \
37 --includedir=/usr/include \
38 --infodir=/usr/share/info \
39 --libdir=/usr/lib \
40 --libexecdir=/usr/lib \
41 --localstatedir=/var \
42 --mandir=/usr/share/man \
43 --sbindir=/usr/sbin \
44 --sysconfdir=/etc \
45 --enable-largefile \
46 --disable-nls \
47 --with-osiris-user=root \
48 --with-root-dir=/var/lib/osiris \
49 --with-readline=no \
50 );
51 touch $@
52
53$(WRKBUILD)/.built:
54 rm -rf $(WRKINST)
55 mkdir -p $(WRKINST)
56 $(MAKE) -C $(WRKBUILD) \
57 $(TARGET_CONFIGURE_OPTS) \
58 ar=$(TARGET_CROSS)ar \
59 DESTDIR="$(WRKINST)" \
60 INTERACTIVE=0 \
61 all install
62 touch $@
63
64$(IPKG_OSIRISD):
65 install -d -m0755 $(IDIR_OSIRISD)/etc/init.d
66 install -m0755 ./files/osirisd.init $(IDIR_OSIRISD)/etc/init.d/osirisd
67 install -d -m0755 $(IDIR_OSIRISD)/usr/sbin
68 $(CP) $(WRKINST)/usr/sbin/osirisd $(IDIR_OSIRISD)/usr/sbin/
69 $(RSTRIP) $(IDIR_OSIRISD)
70 $(IPKG_BUILD) $(IDIR_OSIRISD) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.