1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

Stage, and fix build without gcc.

This commit is contained in:
Adam Weinberger 2014-07-31 13:28:45 +00:00
parent 6a8f9fc236
commit 3640b7d218
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=363588
6 changed files with 25 additions and 47 deletions

1
GIDs
View File

@ -286,5 +286,6 @@ unifi:*:975:
minetest:*:976:
ums:*:979:
hbase:*:980:
uvncrep:*:981:
nogroup:*:65533:
nobody:*:65534:

1
UIDs
View File

@ -292,4 +292,5 @@ tests:*:977:65534::0:0:Unprivileged user for tests:/nonexistent:/usr/sbin/nologi
_dnscrypt-proxy:*:978:65534::0:0:dnscrypt-proxy user:/var/empty:/usr/sbin/nologin
ums:*:979:979::0:0:Universal Media Server:/nonexistent:/usr/sbin/nologin
hbase:*:980:980::0:0:HBase user:/nonexistent:/usr/sbin/nologin
uvncrep:*:981:981::0:0:UltraVNC Repeater daemon:/nonexistent:/usr/sbin/nologin
nobody:*:65534:65534::0:0:Unprivileged user:/nonexistent:/usr/sbin/nologin

View File

@ -11,30 +11,28 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= UltraVNC repeater
USES= zip
USE_RC_SUBR= repeater
USE_RC_SUBR= ${PORTNAME}
WRKSRC= ${WRKDIR}/Ver${PORTVERSION:C/\.//}
ALL_TARGET= repeater
ALL_TARGET= ${PORTNAME}
REP_USER?= uvncrep
REP_GROUP?= uvncrep
USERS= ${REP_USER}
GROUPS= ${REP_GROUP}
SUB_FILES= pkg-install pkg-message
SUB_LIST= REP_USER=${REP_USER} REP_GROUP=${REP_GROUP}
SUB_FILES= pkg-message
PLIST_FILES= sbin/repeater etc/uvncrepeater.ini.sample
PORTDOCS= changelog.txt readme.txt ultravncrepeaterlinuxport.html
NO_STAGE= yes
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/repeater ${PREFIX}/sbin/repeater
${INSTALL_DATA} ${WRKSRC}/uvncrepeater.ini ${PREFIX}/etc/uvncrepeater.ini.sample
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
OPTIONS_DEFINE= DOCS
post-install:
@${SETENV} @PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${CAT} ${PKGMESSAGE}
post-patch:
@${REINPLACE_CMD} -e 's|g++|${CXX}|' ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin
${INSTALL_DATA} ${WRKSRC}/uvncrepeater.ini ${STAGEDIR}${PREFIX}/etc/uvncrepeater.ini.sample
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>

View File

@ -1,24 +0,0 @@
#!/bin/sh
# $FreeBSD$
#
PW="/usr/sbin/pw"
CHOWN="/usr/sbin/chown"
CHMOD="/bin/chmod"
MKDIR="/bin/mkdir -p"
NOLOGIN="/usr/sbin/nologin"
REP_USER=%%REP_USER%%
REP_GROUP=%%REP_GROUP%%
case "$2" in
POST-INSTALL)
${PW} groupshow -n ${REP_GROUP} >/dev/null 2>&1 \
|| ${PW} groupadd -n ${REP_GROUP}
${PW} usershow -n ${REP_USER} >/dev/null 2>&1 \
|| ${PW} useradd ${REP_USER} -g ${REP_GROUP} -s ${NOLOGIN}
;;
esac
exit 0

View File

@ -1,7 +1,7 @@
############################################################################
# Please create a config file in %%PREFIX%%/etc #
# A sample configuration file is installed as uvncrepeater.ini.sample #
# #
# To enable UVNC Repeater, put the following to your /etc/rc.conf: #
# repeater_enable="YES" #
############################################################################
Please edit %%PREFIX%%/etc/uvncrepeater.ini before using UltraVNC
Repeater!
To enable UVNC Repeater, put the following in your /etc/rc.conf:
repeater_enable="YES"

2
net/repeater/pkg-plist Normal file
View File

@ -0,0 +1,2 @@
@sample etc/uvncrepeater.ini.sample
sbin/repeater