- Support STAGEDIR

This commit is contained in:
Bryan Drewery 2013-09-23 11:24:41 +00:00
parent 87d3f71d6d
commit 4a3f119f1a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=327978
3 changed files with 58 additions and 6 deletions

View File

@ -13,15 +13,13 @@ COMMENT= Port build and test system
LICENSE= BSD
MANCOMPRESSED= yes
MAN8= poudriere.8
OPTIONS_DEFINE= ZSH
CONFLICTS_INSTALL= poudriere-devel
PLIST_FILES= etc/poudriere.conf.sample \
bin/poudriere \
man/man8/poudriere.8.gz \
libexec/poudriere/dirwatch \
libexec/poudriere/dirempty \
libexec/poudriere/make_index \
@ -52,7 +50,6 @@ PLIST_DIRS= libexec/poudriere \
share/poudriere/html \
share/poudriere
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MZSH}
@ -63,8 +60,9 @@ PLIST_DIRSTRY+= share/zsh/
post-install:
.if ${PORT_OPTIONS:MZSH}
@${MKDIR} ${PREFIX}/share/zsh/site-functions/
@${INSTALL_DATA} ${WRKSRC}/zsh-completions ${PREFIX}/share/zsh/site-functions/_poudriere
@${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions/
@${INSTALL_DATA} ${WRKSRC}/zsh-completions \
${STAGEDIR}${PREFIX}/share/zsh/site-functions/_poudriere
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,34 @@
--- ./Makefile.orig 2013-09-22 20:24:45.271132014 -0500
+++ ./Makefile 2013-09-22 20:26:48.067130247 -0500
@@ -5,17 +5,22 @@
${MAKE} -C src/libexec/poudriere
install:
- install -m 755 -o root -g wheel src/bin/poudriere.sh ${PREFIX}/bin/poudriere
- mkdir -p ${PREFIX}/share/poudriere
- mkdir -p ${PREFIX}/share/poudriere/awk
- mkdir -p ${PREFIX}/share/poudriere/html
- install -m 755 -o root -g wheel src/share/poudriere/*.sh ${PREFIX}/share/poudriere/
- install -m 644 -o root -g wheel src/share/poudriere/awk/* ${PREFIX}/share/poudriere/awk/
- install -m 644 -o root -g wheel src/share/poudriere/html/* ${PREFIX}/share/poudriere/html/
- install -m 644 -o root -g wheel conf/poudriere.conf.sample ${PREFIX}/etc/
+ install -m 755 -o root -g wheel src/bin/poudriere.sh \
+ ${DESTDIR}${PREFIX}/bin/poudriere
+ mkdir -p ${DESTDIR}${PREFIX}/share/poudriere
+ mkdir -p ${DESTDIR}${PREFIX}/share/poudriere/awk
+ mkdir -p ${DESTDIR}${PREFIX}/share/poudriere/html
+ install -m 755 -o root -g wheel src/share/poudriere/*.sh \
+ ${DESTDIR}${PREFIX}/share/poudriere/
+ install -m 644 -o root -g wheel src/share/poudriere/awk/* \
+ ${DESTDIR}${PREFIX}/share/poudriere/awk/
+ install -m 644 -o root -g wheel src/share/poudriere/html/* \
+ ${DESTDIR}${PREFIX}/share/poudriere/html/
+ install -m 644 -o root -g wheel conf/poudriere.conf.sample \
+ ${DESTDIR}${PREFIX}/etc/
if [ -f poudriere.8.gz ]; then rm -f poudriere.8.gz; fi
gzip -k -9 poudriere.8
- install -m 644 poudriere.8.gz ${MAN8DIR}
+ install -m 644 poudriere.8.gz ${DESTDIR}${MAN8DIR}
${MAKE} -C src/libexec/poudriere install
clean:

View File

@ -0,0 +1,20 @@
--- ./src/libexec/poudriere/Makefile.orig 2013-09-22 20:26:56.291128390 -0500
+++ ./src/libexec/poudriere/Makefile 2013-09-22 20:27:15.594134042 -0500
@@ -12,10 +12,13 @@
${CC} -Wall -Werror ${CFLAGS} make_index.c -o make_index -lsbuf
install: dirwatch make_index dirempty
- mkdir -p ${PREFIX}/libexec/poudriere
- install -m 755 -o root -g wheel dirwatch ${PREFIX}/libexec/poudriere
- install -m 755 -o root -g wheel make_index ${PREFIX}/libexec/poudriere
- install -m 755 -o root -g wheel dirempty ${PREFIX}/libexec/poudriere
+ mkdir -p ${DESTDIR}${PREFIX}/libexec/poudriere
+ install -m 755 -o root -g wheel dirwatch \
+ ${DESTDIR}${PREFIX}/libexec/poudriere
+ install -m 755 -o root -g wheel make_index \
+ ${DESTDIR}${PREFIX}/libexec/poudriere
+ install -m 755 -o root -g wheel dirempty \
+ ${DESTDIR}${PREFIX}/libexec/poudriere
clean:
rm -f dirwatch make_index dirempty