- Update to 0.1212 [1]

- Cleanup the port

PR:		ports/81835 [1]
Submitted by:	HAYASHI Yasushi <yasi@yasi.to> [1]
This commit is contained in:
Jean-Yves Lefort 2005-06-03 13:21:42 +00:00
parent 065249dddf
commit 5b8459a178
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=136726
6 changed files with 18 additions and 26 deletions

View file

@ -6,7 +6,7 @@
#
PORTNAME= peercast
PORTVERSION= 0.1211
PORTVERSION= 0.1212
CATEGORIES= net multimedia
MASTER_SITES= http://www.peercast.org/
DISTNAME= peercast-linux
@ -15,25 +15,21 @@ EXTRACT_SUFX= .tgz
MAINTAINER= jylefort@FreeBSD.org
COMMENT= A peer-to-peer network for broadcasting and listening to streams
USE_LINUX?= yes
USE_LINUX= yes
NO_WRKSUBDIR= yes
NO_BUILD= yes
STRIP= # empty: do not strip linux binaries
do-build:
${SED} -e 's|@PREFIX@|${PREFIX}|g; s|@DATADIR@|${DATADIR}|g' \
${FILESDIR}/peercast.in > ${WRKSRC}/peercast.sh
SUB_FILES= peercast.sh
do-install:
${MKDIR} ${PREFIX}/libexec
${INSTALL_SCRIPT} ${WRKDIR}/peercast.sh ${PREFIX}/bin/peercast
${INSTALL_PROGRAM} ${WRKSRC}/peercast ${PREFIX}/libexec
# rebrand binary (INSTALL_PROGRAM has stripped it)
${BRANDELF} -t Linux ${PREFIX}/libexec/peercast
.for lang in de en fr ja
${MKDIR} ${DATADIR}/html/${lang}
${INSTALL_DATA} ${WRKSRC}/html/${lang}/*.* ${DATADIR}/html/${lang}
${MKDIR} ${DATADIR}/html/${lang}/images
${INSTALL_DATA} ${WRKSRC}/html/${lang}/images/*.* ${DATADIR}/html/${lang}/images
.endfor
${MKDIR} ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/peercast.sh ${PREFIX}/bin/peercast
.include <bsd.port.mk>

View file

@ -1,2 +1,2 @@
MD5 (peercast-linux.tgz) = 896a4201a2a2e90e06779654919e1cd4
SIZE (peercast-linux.tgz) = 198726
MD5 (peercast-linux.tgz) = 3ff5efb2710fe80ed9bc3e3290141ab9
SIZE (peercast-linux.tgz) = 197079

View file

@ -2,7 +2,7 @@
if [ ! -d "$HOME/.peercast" ]; then
mkdir "$HOME/.peercast" || exit 1
ln -s "@DATADIR@/html" "@PREFIX@/libexec/peercast" "$HOME/.peercast" || exit 1
ln -s "%%DATADIR%%/html" "%%PREFIX%%/libexec/peercast" "$HOME/.peercast" || exit 1
fi
cd "$HOME/.peercast" || exit 1

View file

@ -6,7 +6,7 @@
#
PORTNAME= peercast
PORTVERSION= 0.1211
PORTVERSION= 0.1212
CATEGORIES= net multimedia
MASTER_SITES= http://www.peercast.org/
DISTNAME= peercast-linux
@ -15,25 +15,21 @@ EXTRACT_SUFX= .tgz
MAINTAINER= jylefort@FreeBSD.org
COMMENT= A peer-to-peer network for broadcasting and listening to streams
USE_LINUX?= yes
USE_LINUX= yes
NO_WRKSUBDIR= yes
NO_BUILD= yes
STRIP= # empty: do not strip linux binaries
do-build:
${SED} -e 's|@PREFIX@|${PREFIX}|g; s|@DATADIR@|${DATADIR}|g' \
${FILESDIR}/peercast.in > ${WRKSRC}/peercast.sh
SUB_FILES= peercast.sh
do-install:
${MKDIR} ${PREFIX}/libexec
${INSTALL_SCRIPT} ${WRKDIR}/peercast.sh ${PREFIX}/bin/peercast
${INSTALL_PROGRAM} ${WRKSRC}/peercast ${PREFIX}/libexec
# rebrand binary (INSTALL_PROGRAM has stripped it)
${BRANDELF} -t Linux ${PREFIX}/libexec/peercast
.for lang in de en fr ja
${MKDIR} ${DATADIR}/html/${lang}
${INSTALL_DATA} ${WRKSRC}/html/${lang}/*.* ${DATADIR}/html/${lang}
${MKDIR} ${DATADIR}/html/${lang}/images
${INSTALL_DATA} ${WRKSRC}/html/${lang}/images/*.* ${DATADIR}/html/${lang}/images
.endfor
${MKDIR} ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/peercast.sh ${PREFIX}/bin/peercast
.include <bsd.port.mk>

View file

@ -1,2 +1,2 @@
MD5 (peercast-linux.tgz) = 896a4201a2a2e90e06779654919e1cd4
SIZE (peercast-linux.tgz) = 198726
MD5 (peercast-linux.tgz) = 3ff5efb2710fe80ed9bc3e3290141ab9
SIZE (peercast-linux.tgz) = 197079

View file

@ -2,7 +2,7 @@
if [ ! -d "$HOME/.peercast" ]; then
mkdir "$HOME/.peercast" || exit 1
ln -s "@DATADIR@/html" "@PREFIX@/libexec/peercast" "$HOME/.peercast" || exit 1
ln -s "%%DATADIR%%/html" "%%PREFIX%%/libexec/peercast" "$HOME/.peercast" || exit 1
fi
cd "$HOME/.peercast" || exit 1