# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # assaultcube-enet # assaultcube-enet/Makefile # echo c - assaultcube-enet mkdir -p assaultcube-enet > /dev/null 2>&1 echo x - assaultcube-enet/Makefile sed 's/^X//' >assaultcube-enet/Makefile << 'b6d4bbd3d84004994d271e9477871f71' X# Created by: lightside X# $FreeBSD$ X XPKGNAMESUFFIX= -enet X XOPTIONS_SET+= PORT_ENET X XMASTERDIR= ${.CURDIR}/../assaultcube X XRUN_DEPENDS+= ${PORTNAME}>=${PORTVERSION}:${PORTSDIR}/games/${PORTNAME} X XPOST_PLIST+= do-post-changes XSLASH_RE= S|/|\\&|g X Xdo-post-changes: .SILENT X# Remove specified directories X (${RM} -r ${STAGEDIR}${PREFIX}/share/pixmaps \ X ${STAGEDIR}${_LICENSE_DIR} ${STAGEDIR}${DATADIR} ${STAGEDIR}${DOCSDIR}) X# Change TMPPLIST X ${SED} -i '' -e '/${_LICENSE_DIR:${SLASH_RE}}/d ; \ X /${DATADIR:${SLASH_RE}}/d ; \ X /${DOCSDIR:${SLASH_RE}}/d ; \ X /share\/pixmaps/d ; \ X s|${PORTNAME}_|&enet_|' \ X ${TMPPLIST} X# Change desktop entry file(s) X ${FIND} ${STAGEDIR}${PREFIX}/share/applications -type f -exec \ X ${SED} -i '' -e 's|${PORTNAME}_|&enet_| ; /^Name=/s|$$| (Enet)|' {} \; X# Rename PORTNAME files for scripts X ${FIND} ${STAGEDIR}${PREFIX}/bin -type f -exec \ X ${SED} -i '' -e 's|libexec/${PORTNAME}_|&enet_|' {} \; X# Rename PORTNAME files X.for d in bin libexec share/applications X (cd ${STAGEDIR}/${PREFIX}/${d}; \ X for f in `${FIND} * -type f -name '${PORTNAME}_*'`; do \ X c=`${ECHO_CMD} $$f | ${SED} -e 's|${PORTNAME}_|&enet_|'`; \ X ${MV} -f $$f $$c; \ X done) X.endfor X X.include "${MASTERDIR}/Makefile" b6d4bbd3d84004994d271e9477871f71 exit