Fix packaging when pgp5 is no installed etc. * Add pgp5 or gpg configure args explicitly * Conditional PLIST Reported by pgoyette@. Thank you.diff -r1.1.1.1 -r1.2 pkgsrc/security/pinepgp/PLIST
(ryoon)
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.1.1.1 2003/12/08 17:44:49 jschauma Exp $ | 1 | @comment $NetBSD: PLIST,v 1.2 2017/09/12 02:32:17 ryoon Exp $ | |
2 | bin/gpg-check | 2 | ${PLIST.gpg}bin/gpg-check | |
3 | bin/gpg-encrypt | 3 | ${PLIST.gpg}bin/gpg-encrypt | |
4 | bin/gpg-sign | 4 | ${PLIST.gpg}bin/gpg-sign | |
5 | bin/gpg-sign+encrypt | 5 | ${PLIST.gpg}bin/gpg-sign+encrypt | |
6 | bin/pinegpg | 6 | ${PLIST.gpg}bin/pinegpg | |
7 | bin/pinegpg-install | 7 | ${PLIST.gpg}bin/pinegpg-install | |
8 | bin/pinepgp5x | 8 | ${PLIST.pgp5}bin/pinepgp5x | |
9 | bin/pinepgp5x-install | 9 | ${PLIST.pgp5}bin/pinepgp5x-install | |
10 | bin/pinepgpgpg-install | 10 | bin/pinepgpgpg-install | |
11 | bin/pgp5x-check | 11 | ${PLIST.pgp5}bin/pgp5x-check | |
12 | bin/pgp5x-encrypt | 12 | ${PLIST.pgp5}bin/pgp5x-encrypt | |
13 | bin/pgp5x-sign | 13 | ${PLIST.pgp5}bin/pgp5x-sign | |
14 | bin/pgp5x-sign+encrypt | 14 | ${PLIST.pgp5}bin/pgp5x-sign+encrypt |
@@ -1,17 +1,25 @@ | @@ -1,17 +1,25 @@ | |||
1 | # $NetBSD: options.mk,v 1.1 2017/09/09 11:43:08 ryoon Exp $ | 1 | # $NetBSD: options.mk,v 1.2 2017/09/12 02:32:17 ryoon Exp $ | |
2 | 2 | |||
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.pinepgp | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.pinepgp | |
4 | 4 | |||
5 | PKG_SUPPORTED_OPTIONS= gpg pgp5 | 5 | PKG_SUPPORTED_OPTIONS= gpg pgp5 | |
6 | PKG_SUGGESTED_OPTIONS= gpg | 6 | PKG_SUGGESTED_OPTIONS= gpg | |
7 | PLIST_VARS= gpg pgp5 | 7 | PLIST_VARS= gpg pgp5 | |
8 | 8 | |||
9 | .include "../../mk/bsd.options.mk" | 9 | .include "../../mk/bsd.options.mk" | |
10 | 10 | |||
11 | .if !empty(PKG_OPTIONS:Mgpg) | 11 | .if !empty(PKG_OPTIONS:Mgpg) | |
12 | DEPENDS+= gnupg>=1.2.3:../../security/gnupg | 12 | DEPENDS+= gnupg>=1.2.3:../../security/gnupg | |
13 | CONFIGURE_ARGS+= --with-gpg | |||
14 | PLIST.gpg=yes | |||
15 | .else | |||
16 | CONFIGURE_ARGS+= --without-gpg | |||
13 | .endif | 17 | .endif | |
14 | 18 | |||
15 | .if !empty(PKG_OPTIONS:Mpgp5) | 19 | .if !empty(PKG_OPTIONS:Mpgp5) | |
16 | DEPENDS+= pgp5>=5.0:../../security/pgp5 | 20 | DEPENDS+= pgp5>=5.0:../../security/pgp5 | |
21 | CONFIGURE_ARGS+= --with-pgp5 | |||
22 | PLIST.pgp5=yes | |||
23 | .else | |||
24 | CONFIGURE_ARGS+= --without-pgp5 | |||
17 | .endif | 25 | .endif |