pax -rw, the destination directory must exist. pax in NetBSD creates it if not, pax in MirBSD complains. I read through all pkgsrc Makefiles that use pax and added an entry to INSTALLATION_DIRS, or an INSTALL_DATA_DIR invocation. I did not test all the changes but they should be fairly safe. If you notice any breakage because of this change, please contact me.
68 lines
2.2 KiB
Makefile
68 lines
2.2 KiB
Makefile
# $NetBSD: Makefile,v 1.15 2013/10/18 11:41:18 bsiegert Exp $
|
|
|
|
GLVER= 3.5.2
|
|
DISTNAME= gitolite-${GLVER}
|
|
CATEGORIES= devel net
|
|
MASTER_SITES= -https://github.com/sitaramc/gitolite/archive/v${GLVER}.tar.gz
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://github.com/sitaramc/gitolite/wiki
|
|
COMMENT= Gitolite allows you to host Git repositories easily and securely
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
DEPENDS+= git-base>=1.6.6:../../devel/git-base
|
|
|
|
USE_LANGUAGES= # none
|
|
USE_TOOLS+= pax perl:run
|
|
|
|
# Force using "curl" for fetching the distribution file. It is only available
|
|
# over HTTPS and "curl" is the only fetch program which always supports HTTPS.
|
|
FETCH_USING= curl
|
|
|
|
NO_BUILD= yes
|
|
|
|
REPLACE_PERL= src/lib/* src/VREF/* src/triggers/* src/triggers/*/* \
|
|
src/commands/* src/gitolite* src/lib/Gitolite/*/*
|
|
REPLACE_SH= src/VREF/* src/triggers/* src/triggers/post-compile/* \
|
|
src/commands/*
|
|
|
|
SUBST_CLASSES+= perl
|
|
SUBST_STAGE.perl= pre-configure
|
|
SUBST_MESSAGE.perl= Set PERL5
|
|
SUBST_FILES.perl= src/gitolite
|
|
SUBST_FILES.perl+= src/lib/Gitolite/Hooks/*
|
|
SUBST_SED.perl= -e 's,/usr/bin/perl,${PERL5},g'
|
|
|
|
INSTALLATION_DIRS+= bin lib \
|
|
share/doc/gitolite \
|
|
libexec/gitolite \
|
|
${PERL5_INSTALLVENDORARCH}
|
|
|
|
pre-install:
|
|
${FIND} ${WRKSRC} -type f \
|
|
-name "*.orig" -exec ${RM} -f {} \;
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/src/gitolite ${DESTDIR}${PREFIX}/libexec/gitolite
|
|
${INSTALL_SCRIPT} ${WRKSRC}/src/gitolite-shell ${DESTDIR}${PREFIX}/libexec/gitolite
|
|
|
|
cd ${DESTDIR}${PREFIX}/bin && ${LN} -s ../libexec/gitolite/gitolite gitolite
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/CHANGELOG ${DESTDIR}${PREFIX}/share/gitolite
|
|
${INSTALL_DATA} ${WRKSRC}/COPYING ${DESTDIR}${PREFIX}/share/gitolite
|
|
${INSTALL_DATA} ${WRKSRC}/README.txt ${DESTDIR}${PREFIX}/share/gitolite
|
|
|
|
cd ${WRKSRC}/src/lib && pax -rw -pmp Gitolite \
|
|
${DESTDIR}${PERL5_INSTALLVENDORARCH}
|
|
|
|
cd ${WRKSRC}/src && pax -rw -pmp triggers \
|
|
${DESTDIR}${PREFIX}/libexec/gitolite
|
|
cd ${WRKSRC}/src && pax -rw -pmp syntactic-sugar \
|
|
${DESTDIR}${PREFIX}/libexec/gitolite
|
|
cd ${WRKSRC}/src && pax -rw -pmp VREF \
|
|
${DESTDIR}${PREFIX}/libexec/gitolite
|
|
cd ${WRKSRC}/src && pax -rw -pmp commands \
|
|
${DESTDIR}${PREFIX}/libexec/gitolite
|
|
|
|
.include "../../lang/perl5/dirs.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|