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

View File

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

View File

@@ -0,0 +1,10 @@
#
# hosts.allow This file contains access rules which are used to
# allow or deny connections to network services that
# either use the tcp_wrappers library or that have been
# started through a tcp_wrappers-enabled xinetd.
#
# See 'man 5 hosts_options' and 'man 5 hosts_access'
# for information on rule syntax.
# See 'man tcpd' for information on tcp_wrappers
#

View File

@@ -0,0 +1,18 @@
#
# hosts.deny This file contains access rules which are used to
# deny connections to network services that either use
# the tcp_wrappers library or that have been
# started through a tcp_wrappers-enabled xinetd.
#
# The rules in this file can also be set up in
# /etc/hosts.allow with a 'deny' option instead.
#
# See 'man 5 hosts_options' and 'man 5 hosts_access'
# for information on rule syntax.
# See 'man tcpd' for information on tcp_wrappers
#
#
# The portmap line is redundant, but it is left to remind you that
# the new secure portmap uses hosts.deny and hosts.allow. In particular
# you should know that NFS uses portmap!
#

View File

@@ -0,0 +1,10 @@
--- scaffold.c 1997-03-21 10:27:24.000000000 -0800
+++ scaffold.c 2004-05-07 19:44:50.000000000 -0700
@@ -25,7 +25,6 @@
#define INADDR_NONE (-1) /* XXX should be 0xffffffff */
#endif
-extern char *malloc();
/* Application-specific. */

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1 @@
-Np1

View File

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

View File

@@ -0,0 +1,19 @@
# Template file for 'tcp_wrappers-libs'.
#
short_desc="${short_desc} (shared libraries)"
long_desc="${long_desc}
This package contains the ${pkgname} shared libraries."
conf_files="/etc/hosts.allow /etc/hosts.deny"
Add_dependency run glibc
do_install()
{
mkdir -p ${DESTDIR}/usr/lib
mkdir -p ${DESTDIR}/usr/share/man
mv ${SRCPKGDESTDIR}/usr/lib/lib*.so.* ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/etc ${DESTDIR}
mv ${SRCPKGDESTDIR}/usr/share/man/man5 ${DESTDIR}/usr/share/man
}

View File

@@ -0,0 +1,30 @@
# Template file for 'tcp_wrappers'
pkgname=tcp_wrappers
version=7.6
wrksrc="${pkgname}_${version}"
distfiles="ftp://ftp.porcupine.org/pub/security/${pkgname}_${version}.tar.gz"
build_style=gnu_makefile
make_build_target="REAL_DAEMON_DIR=/usr/sbin STYLE=-DSYS_ERRLIST_DEFINED linux"
short_desc="A security tool which acts as a wrapper for TCP daemons"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=9543d7adedf78a6de0b221ccbbd1952e08b5138717f4ade814039bb489a4315d
long_desc="
The $pkgname package provides small daemon programs which can
monitor and filter incoming requests for systat, finger, FTP, telnet,
rlogin, rsh, exec, tftp, talk and other network services."
subpackages="$pkgname-devel $pkgname-libs"
Add_dependency run glibc
Add_dependency run tcp_wrappers-libs
pre_install()
{
install -d ${DESTDIR}/usr/lib
install -d ${DESTDIR}/usr/sbin
install -d ${DESTDIR}/usr/include
for f in 3 5 8; do
install -d ${DESTDIR}/usr/share/man/man${f}
done
install -D -m644 ${FILESDIR}/hosts.allow ${DESTDIR}/etc/hosts.allow
install -m644 ${FILESDIR}/hosts.deny ${DESTDIR}/etc/hosts.deny
}