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:
2
srcpkgs/tcp_wrappers/depends
Normal file
2
srcpkgs/tcp_wrappers/depends
Normal file
@@ -0,0 +1,2 @@
|
||||
abi_depends=">=7.6"
|
||||
api_depends="${abi_depends}"
|
||||
10
srcpkgs/tcp_wrappers/files/hosts.allow
Normal file
10
srcpkgs/tcp_wrappers/files/hosts.allow
Normal 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
|
||||
#
|
||||
18
srcpkgs/tcp_wrappers/files/hosts.deny
Normal file
18
srcpkgs/tcp_wrappers/files/hosts.deny
Normal 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!
|
||||
#
|
||||
10
srcpkgs/tcp_wrappers/patches/fix_build_scaffold.c.diff
Normal file
10
srcpkgs/tcp_wrappers/patches/fix_build_scaffold.c.diff
Normal 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. */
|
||||
|
||||
1025
srcpkgs/tcp_wrappers/patches/shared_lib_plus_plus-1.diff
Normal file
1025
srcpkgs/tcp_wrappers/patches/shared_lib_plus_plus-1.diff
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1 @@
|
||||
-Np1
|
||||
19
srcpkgs/tcp_wrappers/tcp_wrappers-devel.template
Normal file
19
srcpkgs/tcp_wrappers/tcp_wrappers-devel.template
Normal 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
|
||||
}
|
||||
19
srcpkgs/tcp_wrappers/tcp_wrappers-libs.template
Normal file
19
srcpkgs/tcp_wrappers/tcp_wrappers-libs.template
Normal 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
|
||||
}
|
||||
30
srcpkgs/tcp_wrappers/template
Normal file
30
srcpkgs/tcp_wrappers/template
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user