aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2015-03-04 23:51:13 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2015-03-04 23:51:13 +0000
commitc308c6517d8b9185adb47de946c1df820b27def5 (patch)
tree1e33e6804b76df563140b824bc1b0845e332a9d7
parentaa8374f74578b6e690bd85b6192bc3083b1683ad (diff)
downloadports-c308c6517d8b9185adb47de946c1df820b27def5.tar.gz
ports-c308c6517d8b9185adb47de946c1df820b27def5.zip
MFH: r380205
- Pet portlint - Add LICENSE - Fix references to stagedir from installed files Approved by: ports-secteam (delphij)
Notes
Notes: svn path=/branches/2015Q1/; revision=380466
-rw-r--r--mail/ez-pine-gpg/Makefile10
-rw-r--r--mail/ez-pine-gpg/files/patch-install46
2 files changed, 52 insertions, 4 deletions
diff --git a/mail/ez-pine-gpg/Makefile b/mail/ez-pine-gpg/Makefile
index 4b38b56592cf..ca94060d57fb 100644
--- a/mail/ez-pine-gpg/Makefile
+++ b/mail/ez-pine-gpg/Makefile
@@ -3,24 +3,26 @@
PORTNAME= ez-pine-gpg
DISTVERSION= 0.4h
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= mail
MASTER_SITES= http://business-php.com/opensource/ez-pine-gpg/
DISTNAME= ${PORTNAME}_v${DISTVERSION}
-EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= Set of scripts to use gpg with Pine
+LICENSE= GPLv2 # or later
+
RUN_DEPENDS= gpg:${PORTSDIR}/security/gnupg
-WRKSRC= ${WRKDIR}/${PORTNAME}
+USES= tar:tgz
+WRKSRC= ${WRKDIR}/${PORTNAME}
NO_BUILD= yes
OPTIONS_DEFINE= DOCS
do-install:
- (cd ${WRKSRC} && ./install ${STAGEDIR}${PREFIX}/bin)
+ (cd ${WRKSRC} && ${SETENV} DESTDIR="${STAGEDIR}" ./install ${PREFIX}/bin)
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
diff --git a/mail/ez-pine-gpg/files/patch-install b/mail/ez-pine-gpg/files/patch-install
new file mode 100644
index 000000000000..d4dd325fccef
--- /dev/null
+++ b/mail/ez-pine-gpg/files/patch-install
@@ -0,0 +1,46 @@
+--- install.orig 2004-11-15 23:23:31.000000000 +0300
++++ install 2015-02-26 03:47:23.000000000 +0300
+@@ -60,18 +60,18 @@
+
+ #####################################################
+ ## make sure that "install_dir" really is a directory
+-if [ ! -d "${install_dir}" ]
++if [ ! -d "${DESTDIR}${install_dir}" ]
+ then
+- echo "\"${install_dir}\" - That's not a directory!" 1>&2
++ echo "\"${DESTDIR}${install_dir}\" - That's not a directory!" 1>&2
+ echo "I can't install anything there!" 1>&2
+ exit 2
+ fi
+
+ #########################################################
+ ## make sure we have permission to write to "install_dir"
+-if [ ! -w "${install_dir}" ]
++if [ ! -w "${DESTDIR}${install_dir}" ]
+ then
+- echo "I can't write to \"${install_dir}\"" 1>&2
++ echo "I can't write to \"${DESTDIR}${install_dir}\"" 1>&2
+ echo "I can't install anything there!" 1>&2
+ exit 3
+ fi
+@@ -86,15 +86,15 @@
+ for n in ez-pine-gpg-sign ez-pine-gpg-encrypt ez-pine-gpg-sign-and-encrypt ez-pine-gpg-symmetric ez-pine-gpg-incoming ez-pine-gpg-helper-recipient ez-pine-gpg-helper-sender
+ do
+ ## remove any file of the same name, if it exists
+- rm -f ${install_dir}/${n}
++ rm -f ${DESTDIR}${install_dir}/${n}
+ ## make sure we can create a file there, by creating a file there
+- echo > ${install_dir}/${n}
++ echo > ${DESTDIR}${install_dir}/${n}
+ ## while the file is still empty give it reasonable permissions
+- chmod 0755 ${install_dir}/${n}
++ chmod 0755 ${DESTDIR}${install_dir}/${n}
+ ## place the script into the file while specifying the PATH
+- sed "s!^PATH=.*\$!PATH=${path}!" $n > ${install_dir}/${n}
++ sed "s!^PATH=.*\$!PATH=${path}!" $n > ${DESTDIR}${install_dir}/${n}
+ ## notify user what just happened
+- echo "installing: ${install_dir}/${n}"
++ echo "installing: ${DESTDIR}${install_dir}/${n}"
+ done
+
+ #############