aboutsummaryrefslogtreecommitdiff
path: root/security/bugs
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2014-06-10 15:20:59 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2014-06-10 15:20:59 +0000
commit86d86063ee7b34a8336bcfa638b82fc599cdf40a (patch)
treedfe7388d1cf1693115f0b607977b293b14e0a2e6 /security/bugs
parent9ce750757ff8584f2e3217dceaebe461b7026bc1 (diff)
downloadports-86d86063ee7b34a8336bcfa638b82fc599cdf40a.tar.gz
ports-86d86063ee7b34a8336bcfa638b82fc599cdf40a.zip
Notes
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