Major infrastructure changes, part 2.

* Moved helpers, common and triggers dirs into xbps-src, where
  they belong.
* Renamed the templates dir to srcpkgs, it was so redundant before.
* Make it possible to add subpkgs with no restriction in names, for
  example udev now has a subpkgs called "libgudev". Previously
  subpkgs were named "${sourcepkg}-${pkgname}".
* xbps-src: changed to look for template files in current directory.
  That means that most arguments from the targets have been removed.
* xbps-src: added a reinstall target, to remove + install.
* xbps-src: do not overwrite binpkgs by default, skip them.

And more that I forgot because it's a mega-commit that I've been
working for some days already...

--HG--
extra : convert_revision : 0f466878584d1e6895d2a234f07ea1b2d1e61b3e
This commit is contained in:
Juan RP
2009-11-22 08:31:44 +01:00
parent 3c58e3ad40
commit 85cc462e1d
1305 changed files with 719 additions and 654 deletions

2
srcpkgs/gnutls/depends Normal file
View File

@@ -0,0 +1,2 @@
abi_depends=">=2.6.6"
api_depends="${abi_depends}"

View File

@@ -0,0 +1,23 @@
# Template file for 'libgrypt-devel'.
#
short_desc="${short_desc} (development files)"
long_desc="${long_desc}
This package contains files for development, headers, static libs, etc."
Add_dependency run gnutls
do_install()
{
mkdir -p ${DESTDIR}/usr/lib ${DESTDIR}/usr/share/man
mkdir -p ${DESTDIR}/usr/bin
mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr
mv ${SRCPKGDESTDIR}/usr/lib/*.*a ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/lib/*.so ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/share/man/man3 ${DESTDIR}/usr/share/man
mv ${SRCPKGDESTDIR}/usr/share/info ${DESTDIR}/usr/share
mv ${SRCPKGDESTDIR}/usr/share/aclocal ${DESTDIR}/usr/share
mv ${SRCPKGDESTDIR}/usr/bin/libgnutls* ${DESTDIR}/usr/bin
}

View File

@@ -0,0 +1,15 @@
# Template file for 'gnutls-tools'.
#
short_desc="${short_desc} (bundled tools)"
long_desc="${long_desc}
This package contains the tools that come with gnutls."
Add_dependency run gnutls
do_install()
{
mkdir -p ${DESTDIR}/usr/share/man
mv ${SRCPKGDESTDIR}/usr/bin ${DESTDIR}/usr
mv ${SRCPKGDESTDIR}/usr/share/man/man1 ${DESTDIR}/usr/share/man
}

35
srcpkgs/gnutls/template Normal file
View File

@@ -0,0 +1,35 @@
# Template build file for 'gnutls'.
pkgname=gnutls
version=2.6.6
distfiles="ftp://ftp.gnutls.org/pub/gnutls/gnutls-$version.tar.bz2"
build_style=gnu_configure
configure_args="--with-lzo --with-zlib --disable-guile"
short_desc="GNU Transport Layer Security library"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=03d85b8b51ca7885740c69b87663963c58fe7c9672da0a43e45732078fabdc9e
long_desc="
GnuTLS is a portable ANSI C based library which implements the TLS 1.0 and
SSL 3.0 protocols. The library does not include any patented algorithms and
is available under the GNU Lesser GPL license.
Important features of the GnuTLS library include:
- Thread safety
- Support for both TLS 1.0 and SSL 3.0 protocols
- Support for both X.509 and OpenPGP certificates
- Support for basic parsing and verification of certificates
- Support for SRP for TLS authentication
- Support for TLS Extension mechanism
- Support for TLS Compression Methods
Additionally GnuTLS provides an emulation API for the widely used OpenSSL
library, to ease integration with existing applications."
subpackages="$pkgname-devel $pkgname-tools"
Add_dependency full glibc
Add_dependency full zlib
Add_dependency full readline
Add_dependency full libtasn1
Add_dependency full libgcrypt
Add_dependency full lzo
Add_dependency build gettext
Add_dependency build texinfo