diff options
author | sat <sat@FreeBSD.org> | 2007-07-14 23:57:01 +0800 |
---|---|---|
committer | sat <sat@FreeBSD.org> | 2007-07-14 23:57:01 +0800 |
commit | 3de28cc96aa313d670f0d7c8967d476ed8a96988 (patch) | |
tree | bfe02e096d86aaac9b291723ff576e741d6ac59c /sysutils/metalog | |
parent | a5ab7abbfd0a1ae381efed3f3a6f08f42624c593 (diff) | |
download | freebsd-ports-gnome-3de28cc96aa313d670f0d7c8967d476ed8a96988.tar.gz freebsd-ports-gnome-3de28cc96aa313d670f0d7c8967d476ed8a96988.tar.zst freebsd-ports-gnome-3de28cc96aa313d670f0d7c8967d476ed8a96988.zip |
- Update to 0.8
- Add an rc script
- This update fixes a gcc4 issue
PR: ports/111606 (based on)
Submitted by: araujo
Approved by: sergei (maintainer timeout, since 15 April 2007)
Diffstat (limited to 'sysutils/metalog')
-rw-r--r-- | sysutils/metalog/Makefile | 10 | ||||
-rw-r--r-- | sysutils/metalog/distinfo | 6 | ||||
-rw-r--r-- | sysutils/metalog/files/metalog.in | 21 |
3 files changed, 31 insertions, 6 deletions
diff --git a/sysutils/metalog/Makefile b/sysutils/metalog/Makefile index 5b60b0d5744e..ede642414b17 100644 --- a/sysutils/metalog/Makefile +++ b/sysutils/metalog/Makefile @@ -6,7 +6,7 @@ # PORTNAME= metalog -DISTVERSION= 0.8-rc1 +DISTVERSION= 0.8 PORTEPOCH= 1 CATEGORIES= sysutils MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} @@ -17,11 +17,12 @@ COMMENT= Modern syslogd replacement with PCRE support LIB_DEPENDS= pcre.0:${PORTSDIR}/devel/pcre +USE_BZIP2= yes +USE_RC_SUBR= ${PORTNAME} GNU_CONFIGURE= yes CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} - -# Needed for metalog's configure to find installed devel/pcre port +CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc --mandir=${MANPREFIX}/man CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib @@ -29,6 +30,9 @@ MAN5= metalog.conf.5 MAN8= metalog.8 DOCS= AUTHORS NEWS README +post-patch: + @${REINPLACE_CMD} -e 's|/etc/|${PREFIX}/etc/|' ${WRKSRC}/man/*[58] + post-install: @${MKDIR} ${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/metalog.conf ${EXAMPLESDIR} diff --git a/sysutils/metalog/distinfo b/sysutils/metalog/distinfo index 0c12b0eff7dc..2c8f79baabff 100644 --- a/sysutils/metalog/distinfo +++ b/sysutils/metalog/distinfo @@ -1,3 +1,3 @@ -MD5 (metalog-0.8-rc1.tar.gz) = f52d8e795b38dfa49d475cacb8995d10 -SHA256 (metalog-0.8-rc1.tar.gz) = 45a77348b834482ecfd5e0455c4444009cf26bc319e2a4c409e9ea1df890ab51 -SIZE (metalog-0.8-rc1.tar.gz) = 121744 +MD5 (metalog-0.8.tar.bz2) = 91552a26bfe976356e6108944e195aa6 +SHA256 (metalog-0.8.tar.bz2) = d264742ec0d379385e80d231d3ac3cc591a1d5282c677cf80ac2fd6cd9ae078b +SIZE (metalog-0.8.tar.bz2) = 105471 diff --git a/sysutils/metalog/files/metalog.in b/sysutils/metalog/files/metalog.in new file mode 100644 index 000000000000..4b97c8495812 --- /dev/null +++ b/sysutils/metalog/files/metalog.in @@ -0,0 +1,21 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: metalog +# REQUIRE: mountcritremote cleanvar newsyslog ldconfig +# BEFORE: SERVERS + +. %%RC_SUBR%% + +name=metalog +rcvar=`set_rcvar` +pidfile="/var/run/metalog.pid" +command="%%PREFIX%%/sbin/${name}" +command_args="--daemonize" +required_files="%%PREFIX%%/etc/metalog.conf" + +load_rc_config $name +: ${metalog_enable:="NO"} +run_rc_command "$1" |