pkgsrc/security/PortableSigner/Makefile
wiz 67ecc5031b Import PortableSigner-2.0.38c0573 as security/PortableSigner.
PortableSigner is a signing (with X.509 certificates) program for
PDF files. It's platform independent and runs (tested) under
Windows (2000, XP, ...), Linux and Mac OS X.

It's possible to sign PDF documents digital with X.509 certificates.
This signed documents are read only. Therefore it's possible to
implement "electronic paper".
2014-04-23 11:27:58 +00:00

36 lines
1.5 KiB
Makefile

# $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"