| [c8b93bd] | 1 | # $FreeWRT$
|
|---|
| 2 | #-
|
|---|
| 3 | # This file is part of the FreeWRT project. FreeWRT is copyrighted
|
|---|
| 4 | # material, please see the LICENCE file in the top-level directory
|
|---|
| 5 | # or at http://www.freewrt.org/licence for details.
|
|---|
| [475ad56] | 6 |
|
|---|
| 7 | include $(TOPDIR)/rules.mk
|
|---|
| 8 |
|
|---|
| [c8b93bd] | 9 | PKG_NAME:= osiris
|
|---|
| 10 | PKG_VERSION:= 4.2.0
|
|---|
| [5d9f1ed] | 11 | PKG_RELEASE:= 2
|
|---|
| [c8b93bd] | 12 | PKG_MD5SUM:= ad30995660e506ee6d1d6460601f6107
|
|---|
| [5d9f1ed] | 13 | PKG_INIT:= 75
|
|---|
| [475ad56] | 14 |
|
|---|
| [c8b93bd] | 15 | PKG_SOURCE_URL:= http://www.hostintegrity.com/osiris/data/
|
|---|
| [475ad56] | 16 |
|
|---|
| [c8b93bd] | 17 | include $(TOPDIR)/mk/package.mk
|
|---|
| [475ad56] | 18 |
|
|---|
| 19 | $(eval $(call PKG_template,OSIRISD,osirisd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|---|
| 20 |
|
|---|
| [d419478] | 21 | $(WRKBUILD)/.configured:
|
|---|
| 22 | (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
|
|---|
| [475ad56] | 23 | $(TARGET_CONFIGURE_OPTS) \
|
|---|
| 24 | CFLAGS="$(TARGET_CFLAGS)" \
|
|---|
| 25 | CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
|
|---|
| 26 | LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
|
|---|
| 27 | ac_cv_openssldir="$(STAGING_DIR)/usr" \
|
|---|
| 28 | ac_cv_have_accrights_in_msghdr=no \
|
|---|
| 29 | ac_cv_have_control_in_msghdr=yes \
|
|---|
| 30 | ./configure \
|
|---|
| 31 | --target=$(GNU_TARGET_NAME) \
|
|---|
| 32 | --host=$(GNU_TARGET_NAME) \
|
|---|
| 33 | --build=$(GNU_HOST_NAME) \
|
|---|
| 34 | --program-prefix="" \
|
|---|
| 35 | --program-suffix="" \
|
|---|
| 36 | --prefix=/usr \
|
|---|
| 37 | --exec-prefix=/usr \
|
|---|
| 38 | --bindir=/usr/bin \
|
|---|
| 39 | --datadir=/usr/share \
|
|---|
| 40 | --includedir=/usr/include \
|
|---|
| 41 | --infodir=/usr/share/info \
|
|---|
| 42 | --libdir=/usr/lib \
|
|---|
| 43 | --libexecdir=/usr/lib \
|
|---|
| 44 | --localstatedir=/var \
|
|---|
| 45 | --mandir=/usr/share/man \
|
|---|
| 46 | --sbindir=/usr/sbin \
|
|---|
| 47 | --sysconfdir=/etc \
|
|---|
| [c57fbc9] | 48 | --disable-nls \
|
|---|
| [475ad56] | 49 | --with-osiris-user=root \
|
|---|
| 50 | --with-root-dir=/var/lib/osiris \
|
|---|
| 51 | --with-readline=no \
|
|---|
| 52 | );
|
|---|
| 53 | touch $@
|
|---|
| 54 |
|
|---|
| [d419478] | 55 | $(WRKBUILD)/.built:
|
|---|
| 56 | rm -rf $(WRKINST)
|
|---|
| 57 | mkdir -p $(WRKINST)
|
|---|
| 58 | $(MAKE) -C $(WRKBUILD) \
|
|---|
| [475ad56] | 59 | $(TARGET_CONFIGURE_OPTS) \
|
|---|
| 60 | ar=$(TARGET_CROSS)ar \
|
|---|
| [d419478] | 61 | DESTDIR="$(WRKINST)" \
|
|---|
| [475ad56] | 62 | INTERACTIVE=0 \
|
|---|
| 63 | all install
|
|---|
| 64 | touch $@
|
|---|
| 65 |
|
|---|
| 66 | $(IPKG_OSIRISD):
|
|---|
| 67 | install -d -m0755 $(IDIR_OSIRISD)/etc/init.d
|
|---|
| [5d9f1ed] | 68 | install -m0755 ./files/osirisd.init \
|
|---|
| 69 | $(IDIR_OSIRISD)/etc/init.d/S$(PKG_INIT)osirisd
|
|---|
| [475ad56] | 70 | install -d -m0755 $(IDIR_OSIRISD)/usr/sbin
|
|---|
| [d419478] | 71 | $(CP) $(WRKINST)/usr/sbin/osirisd $(IDIR_OSIRISD)/usr/sbin/
|
|---|
| [475ad56] | 72 | $(RSTRIP) $(IDIR_OSIRISD)
|
|---|
| 73 | $(IPKG_BUILD) $(IDIR_OSIRISD) $(PACKAGE_DIR)
|
|---|