From f1ff4ebc5a67aa05d659346bfcfc8a09d9eb7ab9 Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Wed, 4 Jun 2014 18:03:35 +0000 Subject: [PATCH] Support STAGE PR: 190383 Submitted by: joe@thrallingpenguin.com --- audio/ventrilo-server/Makefile | 25 ++++++++----------------- audio/ventrilo-server/pkg-plist | 1 + 2 files changed, 9 insertions(+), 17 deletions(-) diff --git a/audio/ventrilo-server/Makefile b/audio/ventrilo-server/Makefile index db273d798aea..c3ee719af529 100644 --- a/audio/ventrilo-server/Makefile +++ b/audio/ventrilo-server/Makefile @@ -11,11 +11,8 @@ DISTNAME= ventrilo_srv-${PORTVERSION}-FreeBSD-i386 MAINTAINER= ports@FreeBSD.org COMMENT= Server side of the Ventrilo group voice chat system -LIB_DEPENDS= libstdc\\+\\+.so.3:${PORTSDIR}/misc/compat4x \ - libm.so.2:${PORTSDIR}/misc/compat4x \ - libc.so.4:${PORTSDIR}/misc/compat4x +RUN_DEPENDS= compat4x-i386>0:${PORTSDIR}/misc/compat4x -NO_STAGE= yes .include IA32_BINARY_PORT= yes @@ -34,19 +31,13 @@ IGNORE= distfile can only be fetched if you accept the license. Go to http://www .endif do-install: - @${MKDIR} ${INSTALL_DIR} - @${CHOWN} ${VENT_USER} ${INSTALL_DIR} - ${INSTALL_PROGRAM} ${WRKSRC}/ventrilo_srv ${INSTALL_DIR} - ${INSTALL_PROGRAM} ${WRKSRC}/ventrilo_status ${INSTALL_DIR} - ${INSTALL_DATA} ${WRKSRC}/ventrilo_srv.htm ${INSTALL_DIR} - ${INSTALL_DATA} ${WRKSRC}/LICENSE ${INSTALL_DIR} - ${INSTALL_DATA} ${WRKSRC}/ventrilo_srv.ini ${PREFIX}/etc/ventrilo_srv.ini.sample - @if [ ! -f ${PREFIX}/etc/ventrilo_srv.ini ]; then \ - ${CP} -p ${PREFIX}/etc/ventrilo_srv.ini.sample ${PREFIX}/etc/ventrilo_srv.ini ; \ - ${CHMOD} 0640 ${PREFIX}/etc/ventrilo_srv.ini ; \ - ${CHGRP} ${VENT_USER} ${PREFIX}/etc/ventrilo_srv.ini ; \ - fi - ${LN} -s ${PREFIX}/etc/ventrilo_srv.ini ${INSTALL_DIR}/ventrilo_srv.ini + @${MKDIR} ${STAGEDIR}${INSTALL_DIR} + ${INSTALL_PROGRAM} ${WRKSRC}/ventrilo_srv ${STAGEDIR}${INSTALL_DIR} + ${INSTALL_PROGRAM} ${WRKSRC}/ventrilo_status ${STAGEDIR}${INSTALL_DIR} + ${INSTALL_DATA} ${WRKSRC}/ventrilo_srv.htm ${STAGEDIR}${INSTALL_DIR} + ${INSTALL_DATA} ${WRKSRC}/LICENSE ${STAGEDIR}${INSTALL_DIR} + ${INSTALL_DATA} ${WRKSRC}/ventrilo_srv.ini ${STAGEDIR}${PREFIX}/etc/ventrilo_srv.ini.sample + ${LN} -s ${PREFIX}/etc/ventrilo_srv.ini ${STAGEDIR}${INSTALL_DIR}/ventrilo_srv.ini post-install: @${CAT} ${PKGMESSAGE} diff --git a/audio/ventrilo-server/pkg-plist b/audio/ventrilo-server/pkg-plist index a562a213443a..0db87edb1f99 100644 --- a/audio/ventrilo-server/pkg-plist +++ b/audio/ventrilo-server/pkg-plist @@ -6,4 +6,5 @@ ventrilo-server/ventrilo_srv ventrilo-server/ventrilo_status ventrilo-server/ventrilo_srv.htm ventrilo-server/ventrilo_srv.ini +@exec chown -R ventrilo %D/ventrilo-server @dirrm ventrilo-server