summaryrefslogtreecommitdiff
path: root/sysutils/syslog-ng/Makefile
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2011-10-09 10:59:31 +0000
committerobache <obache@pkgsrc.org>2011-10-09 10:59:31 +0000
commita5d96e9c9c90b88e12a463468600a6dfd81c882f (patch)
treeae29d14aab0500000471b404a2070e0a6b329da8 /sysutils/syslog-ng/Makefile
parent20609a691010f7a682a9883519b516585f530176 (diff)
downloadpkgsrc-a5d96e9c9c90b88e12a463468600a6dfd81c882f.tar.gz
Some fixes and improvements:
* Using libtool. * fixes configure option for pidfile. * tell sysconfigdir to configure. * syslog2ng is using awk, add runtime dependency on awk and fix shebang. * and let not to patch hard-coded uname path for NetBSD specific. * VARBASE is used for various directory, set to BUILDE_DEFS. * remove distractions from PLIST, libtoolized shlib files and an empty line. PR pkg/45419 * fixes config file handling with CONF_FILES. * require dbdir specified by --localstatedir. Bump PKGREVISION.
Diffstat (limited to 'sysutils/syslog-ng/Makefile')
-rw-r--r--sysutils/syslog-ng/Makefile27
1 files changed, 23 insertions, 4 deletions
diff --git a/sysutils/syslog-ng/Makefile b/sysutils/syslog-ng/Makefile
index 738b1508e1d..58de077abae 100644
--- a/sysutils/syslog-ng/Makefile
+++ b/sysutils/syslog-ng/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.13 2011/09/28 18:17:25 bouyer Exp $
+# $NetBSD: Makefile,v 1.14 2011/10/09 10:59:31 obache Exp $
VERS= 3.2.4
DISTNAME= syslog-ng_${VERS}
PKGNAME= syslog-ng-${VERS}
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= http://www.balabit.com/downloads/files/syslog-ng/open-source-edition/${VERS}/source/
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
@@ -15,7 +15,8 @@ LICENSE= gnu-gpl-v2
PKG_DESTDIR_SUPPORT= user-destdir
-USE_TOOLS+= flex pkg-config gmake
+USE_TOOLS+= flex pkg-config gmake awk:run
+USE_LIBTOOL= YES
GNU_CONFIGURE= YES
RCD_SCRIPTS= syslogng
@@ -23,11 +24,29 @@ PKG_SYSCONFSUBDIR= syslog-ng
CONFIGURE_ARGS+= --enable-tcp-wrapper
CONFIGURE_ARGS+= --localstatedir=${VARBASE}/db/syslog-ng
-CONFIGURE_ARGS+= --with-pidfile=${VARBASE}/run
+CONFIGURE_ARGS+= --with-pidfile-dir=${VARBASE}/run
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
+
+REPLACE_AWK+= contrib/syslog2ng
EGDIR= ${PREFIX}/share/examples/syslog-ng
DOCDIR= ${PREFIX}/share/doc/syslog-ng
+INSTALL_MAKE_FLAGS+= sysconfdir=${EGDIR}
+
+OWN_DIRS+= ${VARBASE}/db/syslog-ng
+
+BUILD_DEFS+= VARBASE
+
+CONF_FILES+= ${EGDIR}/modules.conf ${PKG_SYSCONFDIR}/modules.conf
+CONF_FILES+= ${EGDIR}/scl.conf ${PKG_SYSCONFDIR}/scl.conf
+CONF_FILES+= ${EGDIR}/syslog-ng.conf ${PKG_SYSCONFDIR}/syslog-ng.conf
+
+SUBST_CLASSES+= unamepath
+SUBST_STAGE.unamepath= post-configure
+SUBST_FILES.unamepath= contrib/syslog2ng
+SUBST_VARS.unamepath= UNAME
+
.include "../../mk/bsd.prefs.mk"
.include "../../security/tcp_wrappers/buildlink3.mk"