- Support staging

- Add LICENSE
- Fix build on 10+
- Add OPTIONS

PR:		189789
Submitted by:	Tony Morlan <tony@scroner.com>
This commit is contained in:
Dmitry Marakasov 2014-05-14 13:02:17 +00:00
parent 63ad447f47
commit 1b53d8d898
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=354051
2 changed files with 20 additions and 30 deletions

View file

@ -3,24 +3,29 @@
PORTNAME= socklog
PORTVERSION= 2.1.0
PORTREVISION= 1
CATEGORIES= sysutils net
MASTER_SITES= http://smarden.org/socklog/
MAINTAINER= ports@FreeBSD.org
COMMENT= Small and secure replacement for syslogd
LICENSE= BSD3CLAUSE
RUN_DEPENDS= ${LOCALBASE}/sbin/chpst:${PORTSDIR}/sysutils/runit
WRKSRC= ${WRKDIR}/admin/${DISTNAME}
ALL_TARGET= default
MAN1= tryto.1 uncat.1
MAN8= socklog-check.8 socklog-conf.8 socklog.8
DOCS= package/CHANGES package/COPYING package/README doc/*.html
TEXTDOCS= CHANGES COPYING README
HTMLDOCS= *.html
PORTDOCS= ${TEXTDOCS} ${HTMLDOCS}
OPTIONS_DEFINE= DOCS
NO_STAGE= yes
do-configure:
${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/src/conf-cc
${ECHO_CMD} "${CC} -s ${LDFLAGS}" > ${WRKSRC}/src/conf-ld
do-build:
cd ${WRKSRC} && package/compile
@ -30,12 +35,11 @@ test:
cd ${WRKSRC} && package/check
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/command/* ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/man/*.1 ${MANPREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/man/*.8 ${MANPREFIX}/man/man8
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif
${INSTALL_PROGRAM} ${WRKSRC}/command/* ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/man/*.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/man/*.8 ${STAGEDIR}${MAN8PREFIX}/man/man8
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${TEXTDOCS:S,^,${WRKSRC}/package/,} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${HTMLDOCS:S,^,${WRKSRC}/doc/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View file

@ -3,22 +3,8 @@ bin/socklog-conf
bin/socklog
bin/tryto
bin/uncat
%%PORTDOCS%%%%DOCSDIR%%/CHANGES
%%PORTDOCS%%%%DOCSDIR%%/COPYING
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/benefits.html
%%PORTDOCS%%%%DOCSDIR%%/configuration.html
%%PORTDOCS%%%%DOCSDIR%%/examples.html
%%PORTDOCS%%%%DOCSDIR%%/index.html
%%PORTDOCS%%%%DOCSDIR%%/install.html
%%PORTDOCS%%%%DOCSDIR%%/network.html
%%PORTDOCS%%%%DOCSDIR%%/notify.html
%%PORTDOCS%%%%DOCSDIR%%/readme.solaris.html
%%PORTDOCS%%%%DOCSDIR%%/socklog-check.8.html
%%PORTDOCS%%%%DOCSDIR%%/socklog-conf.8.html
%%PORTDOCS%%%%DOCSDIR%%/socklog.8.html
%%PORTDOCS%%%%DOCSDIR%%/tryto.1.html
%%PORTDOCS%%%%DOCSDIR%%/uncat.1.html
%%PORTDOCS%%%%DOCSDIR%%/upgrade.html
%%PORTDOCS%%%%DOCSDIR%%/usedietlibc.html
%%PORTDOCS%%@dirrm %%DOCSDIR%%
man/man1/tryto.1.gz
man/man1/uncat.1.gz
man/man8/socklog-check.8.gz
man/man8/socklog-conf.8.gz
man/man8/socklog.8.gz