Skip to content

Commit

Permalink
Support staging
Browse files Browse the repository at this point in the history
  • Loading branch information
ehaupt committed Feb 19, 2014
1 parent ec0bdb4 commit fc1c23c
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions dns/dnsflood/Makefile
Expand Up @@ -12,27 +12,25 @@ MAINTAINER= zi@FreeBSD.org
COMMENT= DNS flood detector

LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE

WRKSRC= ${WRKDIR}/dns_flood_detector_1.2

PLIST_FILES= sbin/dns_flood_detector
USE_RC_SUBR= dnsflood
PORTDOCS= README

NO_STAGE= yes
OPTIONS_DEFINE= DOCS

pre-patch:
@${LN} -sf ${WRKSRC}/makefiles/Makefile-FreeBSD ${WRKSRC}/Makefile

do-install:
${INSTALL_PROGRAM} ${WRKSRC}/dns_flood_detector ${PREFIX}/sbin
${INSTALL_PROGRAM} ${WRKSRC}/dns_flood_detector ${STAGEDIR}${PREFIX}/sbin

post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in README
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>

0 comments on commit fc1c23c

Please sign in to comment.