OPTIONS_DEFINE= DOCS
post-patch:
#post-patch:
@${REINPLACE_CMD} -e 's|stable\/12|stable\/${OSREL:R}| ; \
# @${REINPLACE_CMD} -e 's|stable\/12|stable\/${OSREL:R}| ; \
s|releng\/11.4|releng\/${OSREL}|' \
# s|releng\/11.4|releng\/${OSREL}|' \
${WRKSRC}/gitup.conf
# ${WRKSRC}/gitup.conf
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
#!/bin/sh -
osrel=$(${PKG_ROOTDIR}/bin/freebsd-version -u)
releng=${osrel%%-*}
stable=${osrel%%.*}
echo "Configuring ${PKG_PREFIX}/etc/gitup.conf for $osrel:"
sed -i '' -E -e "s,stable/[0-9]+,stable/${stable}," -e "s,releng/[0-9].+,releng/${releng}," ${PKG_PREFIX}/etc/gitup.conf
echo
echo "$(egrep '(release|releng)|stable' ${PKG_PREFIX}/etc/gitup.conf)"
# debug
echo ---
echo osrel=${osrel}
echo releng=${releng}
echo stable=${stable}
echo prefix=${PKG_PREFIX}
# end debug