diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2011-11-25 17:00:46 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2011-11-25 17:00:46 +0000 |
commit | d9445856f10ed3c5b0fd91791db6d56017af3aae (patch) | |
tree | c83aa133528bea7a4646bdf8d2fc7621fd657b81 /sysutils/metalog | |
parent | c4def8268ae16aa4c88c106df1be9367f3e905c3 (diff) |
- Fix MASTER_SITES
- Add LICENSE
- Add MAKE_JOBS_SAFE
- Support PORTDOCS/PORTEXAMPLES/PLIST_FILES
PR: 162850
Submitted by: Ports Fury
Feature safe: yes
Notes
Notes:
svn path=/head/; revision=286427
Diffstat (limited to 'sysutils/metalog')
-rw-r--r-- | sysutils/metalog/Makefile | 23 | ||||
-rw-r--r-- | sysutils/metalog/pkg-plist | 7 |
2 files changed, 18 insertions, 12 deletions
diff --git a/sysutils/metalog/Makefile b/sysutils/metalog/Makefile index 96bbbe2b55cb..b1856f1aeb9e 100644 --- a/sysutils/metalog/Makefile +++ b/sysutils/metalog/Makefile @@ -9,33 +9,46 @@ PORTNAME= metalog DISTVERSION= 0.8 PORTEPOCH= 1 CATEGORIES= sysutils -MASTER_SITES= SF +MASTER_SITES= SF/${PORTNAME}/old MAINTAINER= ports@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 --git a/sysutils/metalog/pkg-plist b/sysutils/metalog/pkg-plist deleted file mode 100644 index 064af5272177..000000000000 --- a/sysutils/metalog/pkg-plist +++ /dev/null @@ -1,7 +0,0 @@ -sbin/metalog -%%PORTDOCS%%%%DOCSDIR%%/AUTHORS -%%PORTDOCS%%%%DOCSDIR%%/NEWS -%%PORTDOCS%%%%DOCSDIR%%/README -%%PORTDOCS%%@dirrm %%DOCSDIR%% -%%EXAMPLESDIR%%/metalog.conf -@dirrm %%EXAMPLESDIR%% |