diff --git a/srcpkgs/libnetpgp b/srcpkgs/libnetpgp new file mode 120000 index 0000000000..a53a261b21 --- /dev/null +++ b/srcpkgs/libnetpgp @@ -0,0 +1 @@ +netpgp \ No newline at end of file diff --git a/srcpkgs/libnetpgp-devel b/srcpkgs/libnetpgp-devel new file mode 120000 index 0000000000..a53a261b21 --- /dev/null +++ b/srcpkgs/libnetpgp-devel @@ -0,0 +1 @@ +netpgp \ No newline at end of file diff --git a/srcpkgs/netpgp/depends b/srcpkgs/netpgp/depends new file mode 100644 index 0000000000..a0a76cbae9 --- /dev/null +++ b/srcpkgs/netpgp/depends @@ -0,0 +1,2 @@ +abi_depends=">=20100313" +api_depends="${abi_depends}" diff --git a/srcpkgs/netpgp/libnetpgp-devel.template b/srcpkgs/netpgp/libnetpgp-devel.template new file mode 100644 index 0000000000..d01faf5801 --- /dev/null +++ b/srcpkgs/netpgp/libnetpgp-devel.template @@ -0,0 +1,25 @@ +# Template file for 'libnetpgp'. +# +short_desc="BSD licensed library for PGP tasks - development files" +long_desc=" + The netpgp library is a BSD-licensed library for managing PGP keys. + + On top of the library, the netpgp command can digitally sign files and + verify that the signatures attached to files were signed by a given user + identifier. netpgp can also encrypt files using the public or private + keys of users and, in the same manner, decrypt files which were encrypted. + + This packages includes development files: headers, static libs, etc." + +Add_dependency run zlib-devel +Add_dependency run bzip2-devel +Add_dependency run openssl-devel +Add_dependency run libnetpgp + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib ${DESTDIR}/usr/share/man + mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/lib/*.a ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/share/man/man3 ${DESTDIR}/usr/share/man +} diff --git a/srcpkgs/netpgp/libnetpgp.template b/srcpkgs/netpgp/libnetpgp.template new file mode 100644 index 0000000000..65395bfb44 --- /dev/null +++ b/srcpkgs/netpgp/libnetpgp.template @@ -0,0 +1,22 @@ +# Template file for 'libnetpgp'. +# +short_desc="BSD licensed library for PGP tasks" +long_desc=" + + The netpgp library is a BSD-licensed library for managing PGP keys. + + On top of the library, the netpgp command can digitally sign files and + verify that the signatures attached to files were signed by a given user + identifier. netpgp can also encrypt files using the public or private + keys of users and, in the same manner, decrypt files which were encrypted." + +Add_dependency run glibc +Add_dependency run zlib +Add_dependency run bzip2 +Add_dependency run openssl + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/*.so* ${DESTDIR}/usr/lib +} diff --git a/srcpkgs/netpgp/template b/srcpkgs/netpgp/template new file mode 100644 index 0000000000..8cecd39153 --- /dev/null +++ b/srcpkgs/netpgp/template @@ -0,0 +1,40 @@ +# Template file for 'netpgp' +pkgname=netpgp +version=20100313 +distfiles="http://ftp.gnu.org/gnu/$pkgname/$pkgname-$version.tar.gz" +build_style=gnu_configure +short_desc="PGP signing, verification, encryption and decryption program" +maintainer="Juan RP " +checksum=e358f000962f0bad2b93a9eda0b34271afd8a78daccd6ed51b77ba4ea07ddcca +long_desc=" + The netpgp library is a BSD-licensed library for managing PGP keys. + + On top of the library, the netpgp command can digitally sign files and + verify that the signatures attached to files were signed by a given + user identifier. netpgp can also encrypt files using the public or + private keys of users and, in the same manner, decrypt files which + were encrypted. + + The netpgpkeys utility can also be used to generate a new key-pair for + a user. This key is in two parts, the public key (which can be used + by other people) and a private key. + + In addition to these primary uses, the third way of using netpgp is to + maintain keyrings. Keyrings are collections of public keys belonging + to other users. By using other means of identification, it is + possible to establish the bona fides of other users. Once trust has + been established, the public key of the other user will be signed. + The other user's public key can be added to our keyring. The other + user will add our public key to their keyring." + +CFLAGS="-Wno-error" +subpackages="libnetpgp libnetpgp-devel" + +Add_dependency run glibc +Add_dependency run zlib +Add_dependency run bzip2 +Add_dependency run openssl +Add_dependency run libnetpgp +Add_dependency build zlib-devel +Add_dependency build bzip2-devel +Add_dependency build openssl-devel diff --git a/xbps-src/common/mapping_shlib_binpkg.txt b/xbps-src/common/mapping_shlib_binpkg.txt index 13f6a69d75..72ddc56c7f 100644 --- a/xbps-src/common/mapping_shlib_binpkg.txt +++ b/xbps-src/common/mapping_shlib_binpkg.txt @@ -629,3 +629,4 @@ libLTO.so llvm llvm-devel libprofile_rt.so llvm llvm-devel libapr-1.so apr apr-devel libaprutil-1.so apr-util apr-util-devel +libnetpgp.so libnetpgp libnetpgp-devel