aboutsummaryrefslogtreecommitdiffstats
path: root/security/bugs
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2014-06-10 23:20:59 +0800
committervanilla <vanilla@FreeBSD.org>2014-06-10 23:20:59 +0800
commit30257ba2f38ca51fb4d16ccc0bee3fdb3978443b (patch)
treedfe7388d1cf1693115f0b607977b293b14e0a2e6 /security/bugs
parent9939c301302b6182db273f18480d4fca1101f300 (diff)
downloadfreebsd-ports-gnome-30257ba2f38ca51fb4d16ccc0bee3fdb3978443b.tar.gz
freebsd-ports-gnome-30257ba2f38ca51fb4d16ccc0bee3fdb3978443b.tar.zst
freebsd-ports-gnome-30257ba2f38ca51fb4d16ccc0bee3fdb3978443b.zip
Stagify.
Diffstat (limited to 'security/bugs')
-rw-r--r--security/bugs/Makefile10
-rw-r--r--security/bugs/files/patch-Makefile.bsd20
2 files changed, 25 insertions, 5 deletions
diff --git a/security/bugs/Makefile b/security/bugs/Makefile
index 64b5b334b9f8..530151c88049 100644
--- a/security/bugs/Makefile
+++ b/security/bugs/Makefile
@@ -13,7 +13,6 @@ COMMENT= Great cryptographic library and sample programs
LICENSE= GPLv2
-NO_STAGE= yes
USES= gmake
MAKE_ARGS= CC="${CC}" BFLAG="${CFLAGS}" \
INSTALL_PATH="${PREFIX}/${DISTNAME}"
@@ -47,13 +46,14 @@ post-build:
@${LN} -sf ${WRKSRC}/lib/unix/*.a ${WRKSRC}/lib/
post-install:
- @${MKDIR} ${PREFIX}/${DISTNAME}/include
- ${INSTALL_DATA} ${WRKSRC}/include/*.h ${PREFIX}/${DISTNAME}/include
+ @${MKDIR} ${STAGEDIR}${PREFIX}/${DISTNAME}/include
+ ${INSTALL_DATA} ${WRKSRC}/include/*.h ${STAGEDIR}${PREFIX}/${DISTNAME}/include
.for file in bchat bcrypt bhide bkey block blogin bmore bpass bpassdel bunlock
- @${STRIP_CMD} ${PREFIX}/${DISTNAME}/${file}
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/${DISTNAME}/${file}
.endfor
.if ${PORT_OPTIONS:MDOCS}
- @(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${DOCSDIR})
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ @(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
.endif
test: build
diff --git a/security/bugs/files/patch-Makefile.bsd b/security/bugs/files/patch-Makefile.bsd
new file mode 100644
index 000000000000..6fbdc0af05c3
--- /dev/null
+++ b/security/bugs/files/patch-Makefile.bsd
@@ -0,0 +1,20 @@
+--- Makefile.bsd.orig 2014-06-10 23:16:23.285874501 +0800
++++ Makefile.bsd 2014-06-10 23:16:59.938863115 +0800
+@@ -77,13 +77,13 @@ lib: testfpost libchoice
+
+ install: instchoice all
+ @echo "Creating directory $(INSTALL_PATH) ..."
+- @mkdir $(INSTALL_PATH)
++ @mkdir $(DESTDIR)$(INSTALL_PATH)
+ @echo "Copying binaries in $(INSTALL_PATH) ..."
+- @cp -f ./bin/* $(INSTALL_PATH)/
++ @cp -f ./bin/* $(DESTDIR)$(INSTALL_PATH)/
+ @echo "Copying bugscrypt.a in $(INSTALL_PATH) ..."
+- @cp -f ./lib/bugscrypt.a $(INSTALL_PATH)/
++ @cp -f ./lib/bugscrypt.a $(DESTDIR)$(INSTALL_PATH)/
+ @echo "Copying docs in $(INSTALL_PATH) ..."
+- @cp -rf ./doc/* $(INSTALL_PATH)/
++ @cp -rf ./doc/* $(DESTDIR)$(INSTALL_PATH)/
+ @echo
+ @echo ------------------------------------------------------------
+ @echo