ports/162850: Update port: sysutils/metalog
KATO Tsuguru
tkato432 at yahoo.com
Thu Nov 24 18:30:13 UTC 2011
>Number: 162850
>Category: ports
>Synopsis: Update port: sysutils/metalog
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Nov 24 18:30:12 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: KATO Tsuguru
>Release: FreeBSD 7.4-RELEASE-p3 i386
>Organization:
>Environment:
>Description:
- Fix MASTER_SITES
- Add LICENSE
- Add MAKE_JOBS_SAFE
- Support PORTDOCS/PORTEXAMPLES/PLIST_FILES
>How-To-Repeat:
>Fix:
diff -urN /usr/ports/sysutils/metalog/Makefile sysutils/metalog/Makefile
--- /usr/ports/sysutils/metalog/Makefile 2011-09-24 14:06:28.000000000 +0900
+++ sysutils/metalog/Makefile 2011-09-27 16:01:54.000000000 +0900
@@ -9,33 +9,46 @@
DISTVERSION= 0.8
PORTEPOCH= 1
CATEGORIES= sysutils
-MASTER_SITES= SF
+MASTER_SITES= SF/${PORTNAME}/old
MAINTAINER= ports at FreeBSD.org
COMMENT= Modern syslogd replacement with PCRE support
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/COPYING
+
LIB_DEPENDS= pcre.0:${PORTSDIR}/devel/pcre
USE_BZIP2= yes
USE_RC_SUBR= ${PORTNAME}
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc
+MAKE_JOBS_SAFE= yes
+
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
MAN5= metalog.conf.5
MAN8= metalog.8
-DOCS= AUTHORS NEWS README
+PORTDOCS= AUTHORS NEWS README
+PORTEXAMPLES= metalog.conf
+PLIST_FILES= sbin/metalog
post-patch:
@${REINPLACE_CMD} -e 's|/etc/|${PREFIX}/etc/|' ${WRKSRC}/man/*[58]
post-install:
- @${MKDIR} ${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/metalog.conf ${EXAMPLESDIR}
.if !defined(NOPORTDOCS)
+.for doc in ${PORTDOCS}
@${MKDIR} ${DOCSDIR}
- cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
+.endfor
+.endif
+.if !defined(NOPORTEXAMPLES)
+ @${MKDIR} ${EXAMPLESDIR}
+.for ex in ${PORTEXAMPLES}
+ ${INSTALL_DATA} ${WRKSRC}/${ex} ${EXAMPLESDIR}
+.endfor
.endif
.include <bsd.port.mk>
diff -urN /usr/ports/sysutils/metalog/pkg-plist sysutils/metalog/pkg-plist
--- /usr/ports/sysutils/metalog/pkg-plist 2003-04-12 23:27:42.000000000 +0900
+++ sysutils/metalog/pkg-plist 1970-01-01 09:00:00.000000000 +0900
@@ -1,7 +0,0 @@
-sbin/metalog
-%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
-%%PORTDOCS%%%%DOCSDIR%%/NEWS
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
-%%EXAMPLESDIR%%/metalog.conf
- at dirrm %%EXAMPLESDIR%%
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list