Changeset View
Changeset View
Standalone View
Standalone View
Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= opentracker | PORTNAME= opentracker | ||||
PORTVERSION= 0.2017.08.13 | PORTVERSION= 0.2017.08.13 | ||||
PORTREVISION= 1 | |||||
CATEGORIES= net | CATEGORIES= net | ||||
MASTER_SITES= http://www.bayofrum.net/dist/${PORTNAME}/ \ | MASTER_SITES= http://www.bayofrum.net/dist/${PORTNAME}/ \ | ||||
MAINTAINER= crees@FreeBSD.org | MAINTAINER= crees@FreeBSD.org | ||||
COMMENT= Free lightweight bittorrent tracker using libowfat | COMMENT= Free lightweight bittorrent tracker using libowfat | ||||
BUILD_DEPENDS= ${LOCALBASE}/lib/libowfat.a:devel/libowfat | BUILD_DEPENDS= ${LOCALBASE}/lib/libowfat.a:devel/libowfat | ||||
USES= tar:bzip2 | USES= tar:bzip2 | ||||
USE_RC_SUBR= ${PORTNAME} | USE_RC_SUBR= ${PORTNAME} | ||||
OPTIONS_DEFINE= COMPRESSION_GZIP DEBUG_HTTPERROR FULLSCRAPE RESTRICT_STATS IPV6 | FLAVORS= ipv4 ipv6 | ||||
ipv6_PKGNAMESUFFIX= -ipv6 | |||||
ipv4_CONFLICTS= ${PORTNAME}-ipv6 | |||||
ipv6_CONFLICTS= ${PORTNAME} | |||||
mat: It should be changed to not conflict with each other. | |||||
creesAuthorUnsubmitted Done Inline ActionsThanks for the review! Do you mean, install with a different name? crees: Thanks for the review!
Do you mean, install with a different name? | |||||
matUnsubmitted Not Done Inline ActionsI mean that it would be nice if they could be installable at the same time. mat: I mean that it would be nice if they could be installable at the same time.
I guess that if… | |||||
OPTIONS_DEFINE= COMPRESSION_GZIP DEBUG_HTTPERROR FULLSCRAPE RESTRICT_STATS | |||||
OPTIONS_SINGLE= ACCESSLIST | OPTIONS_SINGLE= ACCESSLIST | ||||
OPTIONS_SINGLE_ACCESSLIST= ACCESSLIST_OPEN ACCESSLIST_BLACK \ | OPTIONS_SINGLE_ACCESSLIST= ACCESSLIST_OPEN ACCESSLIST_BLACK \ | ||||
ACCESSLIST_WHITE | ACCESSLIST_WHITE | ||||
OPTIONS_DEFAULT= FULLSCRAPE RESTRICT_STATS ACCESSLIST_OPEN | OPTIONS_DEFAULT= FULLSCRAPE RESTRICT_STATS ACCESSLIST_OPEN | ||||
ACCESSLIST_OPEN_DESC= Disable black/whitelisting | ACCESSLIST_OPEN_DESC= Disable black/whitelisting | ||||
ACCESSLIST_BLACK_DESC= Enable client blacklisting | ACCESSLIST_BLACK_DESC= Enable client blacklisting | ||||
Show All 18 Lines | |||||
.if ${PORT_OPTIONS:MDEBUG_HTTPERROR} | .if ${PORT_OPTIONS:MDEBUG_HTTPERROR} | ||||
FEATURES+=-D_DEBUG_HTTPERROR | FEATURES+=-D_DEBUG_HTTPERROR | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MFULLSCRAPE} | .if ${PORT_OPTIONS:MFULLSCRAPE} | ||||
FEATURES+=-DWANT_FULLSCRAPE | FEATURES+=-DWANT_FULLSCRAPE | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MIPV6} | |||||
FEATURES+=-DWANT_V6 | |||||
.endif | |||||
.if ${PORT_OPTIONS:MRESTRICT_STATS} | .if ${PORT_OPTIONS:MRESTRICT_STATS} | ||||
FEATURES+=-DWANT_RESTRICT_STATS | FEATURES+=-DWANT_RESTRICT_STATS | ||||
.endif | |||||
.if ${FLAVOR:U} == ipv6 | |||||
FEATURES+=-DWANT_V6 | |||||
.endif | .endif | ||||
MAKE_ENV+=FEATURES="${FEATURES}" | MAKE_ENV+=FEATURES="${FEATURES}" | ||||
post-patch: | post-patch: | ||||
@${FIND} ${WRKSRC} -name "*.orig" -delete | @${FIND} ${WRKSRC} -name "*.orig" -delete | ||||
do-install: | do-install: | ||||
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin | ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin | ||||
${MKDIR} ${STAGEDIR}${ETCDIR} | ${MKDIR} ${STAGEDIR}${ETCDIR} | ||||
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf.sample \ | ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf.sample \ | ||||
${STAGEDIR}${ETCDIR}/${PORTNAME}.conf.sample | ${STAGEDIR}${ETCDIR}/${PORTNAME}.conf.sample | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |
It should be changed to not conflict with each other.