DESTDIR support.

This commit is contained in:
joerg 2009-02-10 21:11:13 +00:00
parent 7c2be4e37b
commit 2070411a90
3 changed files with 12 additions and 10 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.34 2008/10/18 13:28:28 shannonjr Exp $
# $NetBSD: Makefile,v 1.35 2009/02/10 21:11:13 joerg Exp $
#
DISTNAME= libprelude-0.9.21.1
CATEGORIES= security
@ -8,6 +8,8 @@ MAINTAINER= shannonjr@NetBSD.org
HOMEPAGE= http://www.prelude-ids.org/download/releases/
COMMENT= Provides the framework for using the Prelude system
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../mk/bsd.prefs.mk"
.include "options.mk"
@ -37,6 +39,7 @@ PKG_USERS= ${PRELUDE_USER}:${PRELUDE_GROUP}
PKG_GECOS.${PRELUDE_USER}= Prelude IDS
PKG_HOME.${PRELUDE_USER}= ${PRELUDE_HOME}
OWN_DIRS_PERMS+= ${PRELUDE_HOME} ${PRELUDE_USER} ${PRELUDE_GROUP} 0755
EGDIR= ${PREFIX}/share/examples/libprelude
REQD_DIRS= ${EGDIR}
MAKE_DIRS= ${PKG_SYSCONFDIR}/default ${PKG_SYSCONFDIR}/profile
@ -52,8 +55,7 @@ SUBST_STAGE.make= post-patch
SUBST_FILES.make= Makefile.in
SUBST_SED.make= -e 's,@EGDIR@,${EGDIR},g'
post-install:
chown -R ${PRELUDE_USER}:${PRELUDE_GROUP} ${PRELUDE_HOME}
INSTALLATION_DIRS= share/examples/libprelude
.include "../../security/gnutls/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"

View file

@ -1,9 +1,9 @@
$NetBSD: distinfo,v 1.26 2008/10/18 13:28:28 shannonjr Exp $
$NetBSD: distinfo,v 1.27 2009/02/10 21:11:13 joerg Exp $
SHA1 (libprelude-0.9.21.1.tar.gz) = 02aebd7010379b8ca2ee96a50facfbd882027eff
RMD160 (libprelude-0.9.21.1.tar.gz) = 9e62f5a27781eb9550ec623abd1302e72554e363
Size (libprelude-0.9.21.1.tar.gz) = 2477295 bytes
SHA1 (patch-aa) = d6674584a7514dc3a57551215a15413d055f3d38
SHA1 (patch-aa) = 38a70aef1e9ebee60aa94e86c18641b710725356
SHA1 (patch-ab) = 96418b2ce697bdfef83780e0dbc47d95568d3a16
SHA1 (patch-ad) = e89900459ed7834801ae22b7a4a711163ec3f86b
SHA1 (patch-ae) = ec362a79320f8ab189597ddd4641e4718536c629

View file

@ -1,4 +1,4 @@
$NetBSD: patch-aa,v 1.6 2008/06/10 13:57:10 shannonjr Exp $
$NetBSD: patch-aa,v 1.7 2009/02/10 21:11:13 joerg Exp $
--- Makefile.in.orig 2008-04-24 04:50:26.000000000 -0600
+++ Makefile.in
@ -75,10 +75,10 @@ $NetBSD: patch-aa,v 1.6 2008/06/10 13:57:10 shannonjr Exp $
- $(INSTALL) -m 644 $(top_srcdir)/tls.conf $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default; \
- fi
+ $(INSTALL) -d -m 711 $(DESTDIR)$(PRELUDE_SPOOL_DIR)
+ $(BSD_INSTALL_DATA) $(top_srcdir)/client.conf @EGDIR@
+ $(BSD_INSTALL_DATA) $(top_srcdir)/global.conf @EGDIR@
+ $(BSD_INSTALL_DATA) $(top_srcdir)/idmef-client.conf @EGDIR@
+ $(BSD_INSTALL_DATA) $(top_srcdir)/tls.conf @EGDIR@
+ $(BSD_INSTALL_DATA) $(top_srcdir)/client.conf ${DESTDIR}@EGDIR@
+ $(BSD_INSTALL_DATA) $(top_srcdir)/global.conf ${DESTDIR}@EGDIR@
+ $(BSD_INSTALL_DATA) $(top_srcdir)/idmef-client.conf ${DESTDIR}@EGDIR@
+ $(BSD_INSTALL_DATA) $(top_srcdir)/tls.conf ${DESTDIR}@EGDIR@
uninstall-local:
- rm -f $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default/client.conf