mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
caac6a0f79
[1] - Satisfy portlint. Suggested by: dougb [1]
58 lines
1.5 KiB
Makefile
58 lines
1.5 KiB
Makefile
# New ports collection makefile for: uhub
|
|
# Date created: 16 Oct 2009
|
|
# Whom: Yashin Dmitry <yashin.dm@gmail.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= uhub
|
|
PORTVERSION= 0.3.2
|
|
PORTREVISION= 4
|
|
CATEGORIES= net-p2p
|
|
MASTER_SITES= http://www.extatic.org/downloads/uhub/
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
|
|
|
MAINTAINER= yashin.dm@gmail.com
|
|
COMMENT= High performance peer-to-peer hub for the ADC network
|
|
|
|
USE_PERL5_BUILD=yes
|
|
USE_GMAKE= yes
|
|
|
|
USE_RC_SUBR= uhub.sh
|
|
USERS= uhub
|
|
GROUPS= uhub
|
|
SHAREGRP= uhub
|
|
SHAREMODE= 640
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
MAKEFILE= ${WRKSRC}/GNUmakefile
|
|
|
|
OPTIONS= OPENSSL "Enable SSL support (experimental)" off
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(WITH_OPENSSL)
|
|
.include "${PORTSDIR}/Mk/bsd.openssl.mk"
|
|
MAKE_ARGS= USE_SSL=YES
|
|
CFLAGS+= -I${OPENSSLINC}
|
|
LDFLAGS+= -L${OPENSSLLIB}
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|/etc/uhub/|${PREFIX}&|' ${WRKSRC}/doc/uhub.conf
|
|
@${REINPLACE_CMD} -e 's|/etc/uhub/|${PREFIX}&|' ${WRKSRC}/src/uhub.h
|
|
|
|
do-install:
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/uhub ${PREFIX}/bin/uhub
|
|
@${MKDIR} ${PREFIX}/etc/uhub
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/uhub.conf ${PREFIX}/etc/uhub/uhub.conf.sample
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/users.conf ${PREFIX}/etc/uhub/users.conf.sample
|
|
@${INSTALL_DATA} /dev/null ${PREFIX}/etc/uhub/motd.txt.sample
|
|
@${INSTALL_DATA} /dev/null ${PREFIX}/etc/uhub/rules.txt.sample
|
|
.for i in uhub.conf users.conf motd.txt rules.txt
|
|
@[ ! -f ${PREFIX}/etc/uhub/${i} ] \
|
|
&& ${CP} -p ${PREFIX}/etc/uhub/${i}.sample ${PREFIX}/etc/uhub/${i}
|
|
.endfor
|
|
|
|
.include <bsd.port.post.mk>
|