| 1 | # Copyright 2009 OpenCSW |
|---|
| 2 | # Distributed under the terms of the GNU General Public License v2 |
|---|
| 3 | # $Id$ |
|---|
| 4 | |
|---|
| 5 | NAME = gnupg |
|---|
| 6 | VERSION = 2.0.18 |
|---|
| 7 | CATEGORIES = apps |
|---|
| 8 | GARTYPE = v2 |
|---|
| 9 | |
|---|
| 10 | DESCRIPTION = GnuPG is a complete and free replacement for PGP |
|---|
| 11 | define BLURB |
|---|
| 12 | RFC 2440 compliant tool for secure communication and data storage |
|---|
| 13 | endef |
|---|
| 14 | |
|---|
| 15 | MASTER_SITES = ftp://ftp.gnupg.org/gcrypt/gnupg/ |
|---|
| 16 | DISTFILES = $(DISTNAME).tar.bz2 |
|---|
| 17 | |
|---|
| 18 | PATCHFILES += 0001-Fix-mutex-stream-return-args-in-macro.patch |
|---|
| 19 | |
|---|
| 20 | VENDOR_URL = http://www.gnupg.org/ |
|---|
| 21 | |
|---|
| 22 | BUILD_DEP_PKGS += $(RUNTIME_DEP_PKGS_common) |
|---|
| 23 | BUILD_DEP_PKGS += $(RUNTIME_DEP_PKGS_CSWgnupg2) |
|---|
| 24 | |
|---|
| 25 | BUILD_DEP_PKGS += CSWggettext-dev |
|---|
| 26 | BUILD_DEP_PKGS += CSWlibiconv-dev |
|---|
| 27 | BUILD_DEP_PKGS += CSWlibgpg-error-dev |
|---|
| 28 | BUILD_DEP_PKGS += CSWlibgcrypt-dev |
|---|
| 29 | BUILD_DEP_PKGS += CSWlibassuan-dev |
|---|
| 30 | BUILD_DEP_PKGS += CSWlibksba-dev |
|---|
| 31 | BUILD_DEP_PKGS += CSWlibreadline-dev |
|---|
| 32 | BUILD_DEP_PKGS += CSWoldapdevel |
|---|
| 33 | |
|---|
| 34 | PACKAGES += CSWgnupg2 |
|---|
| 35 | SPKG_DESC_CSWgnupg2 = GnuPG is a complete and free replacement for PGP |
|---|
| 36 | # PKGFILES is catchall |
|---|
| 37 | RUNTIME_DEP_PKGS_CSWgnupg2 += CSWlibksba8 |
|---|
| 38 | RUNTIME_DEP_PKGS_CSWgnupg2 += CSWlibbz2-1-0 |
|---|
| 39 | RUNTIME_DEP_PKGS_CSWgnupg2 += CSWlibiconv2 |
|---|
| 40 | RUNTIME_DEP_PKGS_CSWgnupg2 += CSWlibgcrypt11 |
|---|
| 41 | RUNTIME_DEP_PKGS_CSWgnupg2 += CSWlibz1 |
|---|
| 42 | RUNTIME_DEP_PKGS_CSWgnupg2 += CSWlibintl8 |
|---|
| 43 | RUNTIME_DEP_PKGS_CSWgnupg2 += CSWlibgpg-error0 |
|---|
| 44 | RUNTIME_DEP_PKGS_CSWgnupg2 += CSWlibpth20 |
|---|
| 45 | RUNTIME_DEP_PKGS_CSWgnupg2 += CSWlibreadline6 |
|---|
| 46 | RUNTIME_DEP_PKGS_CSWgnupg2 += CSWlibassuan0 |
|---|
| 47 | RUNTIME_DEP_PKGS_CSWgnupg2 += CSWoldaprt |
|---|
| 48 | |
|---|
| 49 | # Documentation overrides |
|---|
| 50 | CHECKPKG_OVERRIDES_CSWgnupg2 += file-with-bad-content|/usr/share|root/opt/csw/share/gnupg/help.txt |
|---|
| 51 | CHECKPKG_OVERRIDES_CSWgnupg2 += file-with-bad-content|/usr/local|root/opt/csw/share/man/man1/gpgconf.1 |
|---|
| 52 | CHECKPKG_OVERRIDES_CSWgnupg2 += file-with-bad-content|/usr/share|root/opt/csw/share/info/gnupg.info-1 |
|---|
| 53 | CHECKPKG_OVERRIDES_CSWgnupg2 += file-with-bad-content|/usr/local|root/opt/csw/share/info/gnupg.info-1 |
|---|
| 54 | CHECKPKG_OVERRIDES_CSWgnupg2 += file-with-bad-content|/usr/local|root/opt/csw/share/info/gnupg.info-2 |
|---|
| 55 | CHECKPKG_OVERRIDES_CSWgnupg2 += file-with-bad-content|/usr/share|root/opt/csw/share/man/man1/gpgsm.1 |
|---|
| 56 | CHECKPKG_OVERRIDES_CSWgnupg2 += file-with-bad-content|/usr/local|root/opt/csw/share/man/man1/gpgsm.1 |
|---|
| 57 | |
|---|
| 58 | PACKAGES += CSWgnupg-agent |
|---|
| 59 | SPKG_DESC_CSWgnupg-agent = GNU privacy guard - password agent |
|---|
| 60 | PKGFILES_CSWgnupg-agent += .*gpg-agent.* |
|---|
| 61 | PKGFILES_CSWgnupg-agent += .*gpg-connect-agent.* |
|---|
| 62 | PKGFILES_CSWgnupg-agent += .*gpgkey2ssh.* |
|---|
| 63 | PKGFILES_CSWgnupg-agent += .*symcryptrun.* |
|---|
| 64 | RUNTIME_DEP_PKGS_CSWgnupg-agent += CSWlibiconv2 |
|---|
| 65 | RUNTIME_DEP_PKGS_CSWgnupg-agent += CSWlibgcrypt11 |
|---|
| 66 | RUNTIME_DEP_PKGS_CSWgnupg-agent += CSWlibintl8 |
|---|
| 67 | RUNTIME_DEP_PKGS_CSWgnupg-agent += CSWlibgpg-error0 |
|---|
| 68 | RUNTIME_DEP_PKGS_CSWgnupg-agent += CSWlibpth20 |
|---|
| 69 | RUNTIME_DEP_PKGS_CSWgnupg-agent += CSWlibreadline6 |
|---|
| 70 | RUNTIME_DEP_PKGS_CSWgnupg-agent += CSWlibassuan0 |
|---|
| 71 | # Pinentry is not because of shared libraries. |
|---|
| 72 | RUNTIME_DEP_PKGS_CSWgnupg-agent += CSWpinentry |
|---|
| 73 | CHECKPKG_OVERRIDES_CSWgnupg-agent += surplus-dependency|CSWpinentry |
|---|
| 74 | |
|---|
| 75 | # Documentation overrides |
|---|
| 76 | CHECKPKG_OVERRIDES_CSWgnupg-agent += file-with-bad-content|/usr/local|root/opt/csw/share/man/man1/gpg-agent.1 |
|---|
| 77 | |
|---|
| 78 | NOISALIST = 1 |
|---|
| 79 | |
|---|
| 80 | # Unfortunately GNU PTH does not handle 64 bit sanely: |
|---|
| 81 | # "/opt/csw/include/pth.h", line 93: #error: "FD_SETSIZE is larger than what GNU Pth can handle." |
|---|
| 82 | #BUILD64_LIBS_ONLY = 1 |
|---|
| 83 | |
|---|
| 84 | CONFIGURE_ARGS = $(DIRPATHS) |
|---|
| 85 | CONFIGURE_ARGS += --with-libcurl=$(prefix) |
|---|
| 86 | CONFIGURE_ARGS += --with-ldap=$(prefix) |
|---|
| 87 | CONFIGURE_ARGS += --with-zlib=$(prefix) |
|---|
| 88 | CONFIGURE_ARGS += --with-bzip2=$(prefix) |
|---|
| 89 | CONFIGURE_ARGS += --with-readline=$(prefix) |
|---|
| 90 | CONFIGURE_ARGS += --with-pinentry-pgm=$(prefix)/bin/pinentry-curses |
|---|
| 91 | CONFIGURE_ARGS += --with-pth-prefix=$(prefix) |
|---|
| 92 | |
|---|
| 93 | PROTOTYPE_MODIFIERS = suid |
|---|
| 94 | PROTOTYPE_FILES_suid = .*/gpg2 |
|---|
| 95 | PROTOTYPE_PERMS_suid = 4755 |
|---|
| 96 | |
|---|
| 97 | include gar/category.mk |
|---|