Changeset View
Changeset View
Standalone View
Standalone View
irc/inspircd/Makefile
# Created by: Craig Edwards <brain@mail1.chatspike.net> | |||||
mat: The created by lines are write only, unless the person in there asked you to remove the line… | |||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= inspircd | PORTNAME= inspircd | ||||
PORTVERSION= 2.0.23 | |||||
DISTVERSIONPREFIX= v | DISTVERSIONPREFIX= v | ||||
PORTREVISION= 0 | DISTVERSION= 2.0.24 | ||||
CATEGORIES= irc | CATEGORIES= irc | ||||
MAINTAINER= feld@FreeBSD.org | MAINTAINER= feld@FreeBSD.org | ||||
COMMENT= Modular C++ IRC daemon | COMMENT= Modular C++ IRC daemon | ||||
LICENSE= GPLv2 | LICENSE= GPLv2 | ||||
LICENSE_FILE= ${WRKSRC}/docs/COPYING | |||||
CONFLICTS= inspircd-1.* | CONFLICTS= inspircd-1.* | ||||
USE_GITHUB= yes | |||||
GH_ACCOUNT= inspircd | |||||
USE_RC_SUBR= ${PORTNAME} | |||||
MAKEFILE= BSDmakefile | MAKEFILE= BSDmakefile | ||||
USERS= ircd | USERS= ircd | ||||
GROUPS= ircd | GROUPS= ircd | ||||
INSPIRCD_UID= 72 | INSPIRCD_UID= 72 | ||||
INSPIRCD_RUN?= /var/run/${PORTNAME} | INSPIRCD_RUN?= /var/run/${PORTNAME} | ||||
INSPIRCD_LOG?= /var/log/${PORTNAME}/ircd.log | INSPIRCD_LOG?= /var/log/${PORTNAME}/ircd.log | ||||
SUB_LIST+= PORTNAME=${PORTNAME} \ | SUB_LIST+= PORTNAME=${PORTNAME} \ | ||||
INSPIRCD_LOG=${INSPIRCD_LOG} \ | INSPIRCD_LOG=${INSPIRCD_LOG} \ | ||||
INSPIRCD_RUN=${INSPIRCD_RUN} \ | INSPIRCD_RUN=${INSPIRCD_RUN} \ | ||||
USERS=${USERS} \ | USERS=${USERS} \ | ||||
GROUPS=${GROUPS} | GROUPS=${GROUPS} | ||||
# Configure script is written in perl | # Configure script is written in perl | ||||
USES= cpe perl5 | USES= cpe perl5 | ||||
USE_GITHUB= yes | |||||
USE_PERL5= build | USE_PERL5= build | ||||
USE_RC_SUBR= ${PORTNAME} | |||||
CPE_VENDOR= inspire_ircd | CPE_VENDOR= inspire_ircd | ||||
CPE_PRODUCT= inspircd | CPE_PRODUCT= inspircd | ||||
HAS_CONFIGURE= yes | HAS_CONFIGURE= yes | ||||
CONFIGURE_ARGS= --with-cc=${CXX} --config-dir=${ETCDIR} \ | CONFIGURE_ARGS= --with-cc=${CXX} --config-dir=${ETCDIR} \ | ||||
--module-dir=${PREFIX}/lib/${PORTNAME}/modules \ | --module-dir=${PREFIX}/lib/${PORTNAME}/modules \ | ||||
--prefix=${PREFIX}/lib/${PORTNAME} \ | --prefix=${PREFIX}/lib/${PORTNAME} \ | ||||
--binary-dir=${PREFIX}/bin --library-dir=${PREFIX}/lib/${PORTNAME} \ | --binary-dir=${PREFIX}/bin --library-dir=${PREFIX}/lib/${PORTNAME} \ | ||||
--log-dir=${INSPIRCD_LOG} --data-dir=/var/db/inspircd \ | --log-dir=${INSPIRCD_LOG} --data-dir=/var/db/inspircd \ | ||||
--enable-kqueue --disable-interactive \ | --enable-kqueue --disable-interactive \ | ||||
--uid=${INSPIRCD_UID} | --uid=${INSPIRCD_UID} | ||||
OPTIONS_DEFINE= MYSQL PGSQL SQLITE LDAPAUTH LDAPOPER GNUTLS OPENSSL PCRE POSIX | OPTIONS_DEFINE= MYSQL PGSQL SQLITE LDAPAUTH LDAPOPER GNUTLS OPENSSL PCRE POSIX GEOIP | ||||
Done Inline ActionsI think the only change here is adding GEOIP, but as you moved everything, it is hard to see. mat: I think the only change here is adding GEOIP, but as you moved everything, it is hard to see. | |||||
Done Inline Actionsadam@ asked to sort them. Should I remove sorting? yuri: adam@ asked to sort them.
Should I remove sorting?
| |||||
OPTIONS_DEFAULT= OPENSSL POSIX | OPTIONS_DEFAULT= OPENSSL POSIX | ||||
GNUTLS_DESC= Build m_ssl_gnutls module | GNUTLS_DESC= Build m_ssl_gnutls module | ||||
LDAPAUTH_DESC= Build m_ldapauth module | LDAPAUTH_DESC= Build m_ldapauth module | ||||
LDAPOPER_DESC= Build m_ldapoper module | LDAPOPER_DESC= Build m_ldapoper module | ||||
MYSQL_DESC= Build m_mysql module | MYSQL_DESC= Build m_mysql module | ||||
OPENSSL_DESC= Build m_ssl_openssl module | OPENSSL_DESC= Build m_ssl_openssl module | ||||
PGSQL_DESC= Build m_pgsql module | PGSQL_DESC= Build m_pgsql module | ||||
SQLITE_DESC= Build m_sqlite3 module | SQLITE_DESC= Build m_sqlite3 module | ||||
PCRE_DESC= Build m_regex_pcre module | PCRE_DESC= Build m_regex_pcre module | ||||
POSIX_DESC= Build m_regex_posix module | POSIX_DESC= Build m_regex_posix module | ||||
GEOIP_DESC= Build m_geoip module | |||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
.if ${PORT_OPTIONS:MLDAPAUTH} | .if ${PORT_OPTIONS:MLDAPAUTH} | ||||
USE_OPENLDAP= yes | USE_OPENLDAP= yes | ||||
EXTRAS:=${EXTRAS},m_ldapauth.cpp | EXTRAS:=${EXTRAS},m_ldapauth.cpp | ||||
PLIST_SUB+= LDAPAUTH="" | PLIST_SUB+= LDAPAUTH="" | ||||
Done Inline ActionsIt would probably be a good idea to change all those to use helpers. GEOIP_LIB_DEPENDS= libGeoIP.so:net/GeoIP GEOIP_VARS= EXTRAS+=m_geoip.cpp mat: It would probably be a good idea to change all those to use helpers.
```
GEOIP_LIB_DEPENDS=… | |||||
.else | .else | ||||
PLIST_SUB+= LDAPAUTH="@comment " | PLIST_SUB+= LDAPAUTH="@comment " | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MLDAPOPER} | .if ${PORT_OPTIONS:MLDAPOPER} | ||||
USE_OPENLDAP= yes | USE_OPENLDAP= yes | ||||
EXTRAS:=${EXTRAS},m_ldapoper.cpp | EXTRAS:=${EXTRAS},m_ldapoper.cpp | ||||
PLIST_SUB+= LDAPOPER="" | PLIST_SUB+= LDAPOPER="" | ||||
▲ Show 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | |||||
PLIST_SUB+= PCRE="@comment " | PLIST_SUB+= PCRE="@comment " | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MPOSIX} | .if ${PORT_OPTIONS:MPOSIX} | ||||
EXTRAS:=${EXTRAS},m_regex_posix.cpp | EXTRAS:=${EXTRAS},m_regex_posix.cpp | ||||
PLIST_SUB+= POSIX="" | PLIST_SUB+= POSIX="" | ||||
.else | .else | ||||
PLIST_SUB+= POSIX="@comment " | PLIST_SUB+= POSIX="@comment " | ||||
.endif | |||||
.if ${PORT_OPTIONS:MGEOIP} | |||||
LIB_DEPENDS+= libGeoIP.so:net/GeoIP | |||||
EXTRAS:=${EXTRAS},m_geoip.cpp | |||||
PLIST_SUB+= GEOIP="" | |||||
.else | |||||
PLIST_SUB+= GEOIP="@comment " | |||||
.endif | .endif | ||||
pre-configure: | pre-configure: | ||||
@if [ ${EXTRAS} ]; then \ | @if [ ${EXTRAS} ]; then \ | ||||
cd ${WRKSRC} && ${CONFIGURE_CMD} --enable-extras=${EXTRAS} ; \ | cd ${WRKSRC} && ${CONFIGURE_CMD} --enable-extras=${EXTRAS} ; \ | ||||
Done Inline ActionsAnd then change ${EXTRAS} to ${EXTRAS:S/ /,/g}. mat: And then change `${EXTRAS}` to `${EXTRAS:S/ /,/g}`. | |||||
fi | fi | ||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} -e 's|DATA_PATH "/inspircd.pid"|"/var/run/inspircd/inspircd.pid"|' ${WRKSRC}/src/inspircd.cpp | @${REINPLACE_CMD} -e 's|DATA_PATH "/inspircd.pid"|"/var/run/inspircd/inspircd.pid"|' ${WRKSRC}/src/inspircd.cpp | ||||
@${REINPLACE_CMD} -e 's|conf/examples|examples|g' ${WRKSRC}/docs/conf/inspircd.conf.example | @${REINPLACE_CMD} -e 's|conf/examples|examples|g' ${WRKSRC}/docs/conf/inspircd.conf.example | ||||
post-install: | post-install: | ||||
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/modules/*.so | @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/modules/*.so | ||||
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} | @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |
The created by lines are write only, unless the person in there asked you to remove the line, don't.