diff options
Diffstat (limited to 'security/PortableSigner/Makefile')
-rw-r--r-- | security/PortableSigner/Makefile | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/security/PortableSigner/Makefile b/security/PortableSigner/Makefile new file mode 100644 index 00000000000..3420db3a0ce --- /dev/null +++ b/security/PortableSigner/Makefile @@ -0,0 +1,36 @@ +# $NetBSD: Makefile,v 1.1 2014/04/23 11:27:58 wiz Exp $ + +DISTNAME= PortableSigner-Generic-2.0.38c0573 +PKGNAME= ${DISTNAME:S/-Generic//} +CATEGORIES= security +MASTER_SITES= http://sourceforge.net/projects/portablesigner/files/portablesigner/2.0-Release/ +EXTRACT_SUFX= .zip + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://portablesigner.sourceforge.net/ +COMMENT= Tool for digital signing (with X.509 certificates) of PDF files +LICENSE= eupl-v1.1 + +WRKSRC= ${WRKDIR} +USE_LANGUAGES= # none +USE_JAVA= run +USE_JAVA2= yes + +INSTALLATION_DIRS= bin lib/PortableSigner/lib share/applications share/doc/PortableSigner + +do-build: + ${ECHO} '#!/bin/sh' > ${WRKDIR}/PortableSigner.sh + ${ECHO} "exec ${JAVA_BINPREFIX}-java -cp \"${PREFIX}/lib/PortableSigner/lib/*\" -jar ${PREFIX}/lib/PortableSigner/PortableSigner.jar "'"$$@"' >> ${WRKDIR}/PortableSigner.sh + +do-install: + cd ${WRKSRC} && cp PortableSigner.jar ${DESTDIR}${PREFIX}/lib/PortableSigner + # must be lib, hardcoded in PortableSigner.jar + cd ${WRKSRC} && cp lib/* ${DESTDIR}${PREFIX}/lib/PortableSigner/lib + ${INSTALL_SCRIPT} ${WRKDIR}/PortableSigner.sh ${DESTDIR}${PREFIX}/bin + ${INSTALL_DATA} ${WRKDIR}/linux/PortableSignerLogo.png ${DESTDIR}${PREFIX}/share/doc/PortableSigner + ${INSTALL_DATA} ${WRKDIR}/linux/Readme.txt ${DESTDIR}${PREFIX}/share/doc/PortableSigner + ${INSTALL_DATA} ${WRKDIR}/linux/portablesigner.desktop ${DESTDIR}${PREFIX}/share/applications + +.include "../../sysutils/desktop-file-utils/desktopdb.mk" +.include "../../mk/java-vm.mk" +.include "../../mk/bsd.pkg.mk" |