diff options
author | Michele Noberasco <s4t4n@gentoo.org> | 2005-07-01 06:47:29 +0000 |
---|---|---|
committer | Michele Noberasco <s4t4n@gentoo.org> | 2005-07-01 06:47:29 +0000 |
commit | 5d296181fb38e2fe18c0b3f3bf804ca62c936c27 (patch) | |
tree | cdc9cd7ca490a91d9a9e98ea654ee7f01497f932 /net-misc | |
parent | version bump (diff) | |
download | historical-5d296181fb38e2fe18c0b3f3bf804ca62c936c27.tar.gz historical-5d296181fb38e2fe18c0b3f3bf804ca62c936c27.tar.bz2 historical-5d296181fb38e2fe18c0b3f3bf804ca62c936c27.zip |
Initial import.
Package-Manager: portage-2.0.51.19
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/ksb26/ChangeLog | 9 | ||||
-rw-r--r-- | net-misc/ksb26/Manifest | 5 | ||||
-rw-r--r-- | net-misc/ksb26/files/digest-ksb26-0.0.2 | 1 | ||||
-rw-r--r-- | net-misc/ksb26/files/ksb26-kernel-Makefile | 17 | ||||
-rw-r--r-- | net-misc/ksb26/ksb26-0.0.2.ebuild | 80 | ||||
-rw-r--r-- | net-misc/ksb26/metadata.xml | 16 |
6 files changed, 128 insertions, 0 deletions
diff --git a/net-misc/ksb26/ChangeLog b/net-misc/ksb26/ChangeLog new file mode 100644 index 000000000000..aee20d719f8c --- /dev/null +++ b/net-misc/ksb26/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for net-misc/ksb26 +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/ksb26/ChangeLog,v 1.1 2005/07/01 06:47:29 s4t4n Exp $ + +*ksb26-0.0.2 (01 Jul 2005) + + 01 Jul 2005; Michele Noberasco <s4t4n@gentoo.org> ksb26-0.0.2.ebuild: + Initial import. + diff --git a/net-misc/ksb26/Manifest b/net-misc/ksb26/Manifest new file mode 100644 index 000000000000..24683a145bcb --- /dev/null +++ b/net-misc/ksb26/Manifest @@ -0,0 +1,5 @@ +MD5 e7ba969887733923f2cdf7572c3bdb83 ksb26-0.0.2.ebuild 1507 +MD5 f1896b6a7e543b08624c4def1a0e4ccf ChangeLog 319 +MD5 afc72dba8623e8e3cf89192e2dc879d9 metadata.xml 623 +MD5 913c75809106b0a9996d8ac3e2c21f30 files/ksb26-kernel-Makefile 370 +MD5 813dab5f0615b68f4271fc783965c166 files/digest-ksb26-0.0.2 62 diff --git a/net-misc/ksb26/files/digest-ksb26-0.0.2 b/net-misc/ksb26/files/digest-ksb26-0.0.2 new file mode 100644 index 000000000000..91f0c911908e --- /dev/null +++ b/net-misc/ksb26/files/digest-ksb26-0.0.2 @@ -0,0 +1 @@ +MD5 b2a7f008c95339a6618d264ed6183e4b ksb26-0.0.2.tar.gz 19064 diff --git a/net-misc/ksb26/files/ksb26-kernel-Makefile b/net-misc/ksb26/files/ksb26-kernel-Makefile new file mode 100644 index 000000000000..bcdc3f16ace0 --- /dev/null +++ b/net-misc/ksb26/files/ksb26-kernel-Makefile @@ -0,0 +1,17 @@ +KERNEL_DIR:=/lib/modules/$(shell uname -r)/build + +EXTRA_CFLAGS = -I$(obj) + +obj-m := ksb26.o + +module-dir:=${DESTDIR}/lib/modules/$(KERNEL_VER)/misc + +all: + $(MAKE) modules -C $(KERNEL_DIR) SUBDIRS=$(shell pwd) +clean: + rm -fr *.ko *.o *.mod.* +install: + install -D -m 644 ksb26.ko $(module-dir)/ksb26.ko +uninstall: + modprobe -r ksb26 ; echo -n + $(RM) $(module-dir)/ksb26.ko diff --git a/net-misc/ksb26/ksb26-0.0.2.ebuild b/net-misc/ksb26/ksb26-0.0.2.ebuild new file mode 100644 index 000000000000..fa35b1df8c7c --- /dev/null +++ b/net-misc/ksb26/ksb26-0.0.2.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/ksb26/ksb26-0.0.2.ebuild,v 1.1 2005/07/01 06:47:29 s4t4n Exp $ + +inherit linux-mod + +DESCRIPTION="A kernel SOCKS bouncer" +HOMEPAGE="http://ksb.sourceforge.net/" +SRC_URI="mirror://sourceforge/ksb/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" +S=${WORKDIR}/${PN} + +DEPEND=">=sys-apps/sed-4" + +pkg_setup() +{ + if ! kernel_is 2 6; then + die "${P} can only be built against a 2.6.x kernel!" + fi + + linux-mod_pkg_setup + + MODULE_NAMES="ksb26(misc:${S}/kernel:${S}/kernel)" + BUILD_TARGETS="all" +} + +src_unpack() +{ + unpack ${A} + + cd ${S} + cp ${FILESDIR}/${PN}-kernel-Makefile kernel/Makefile + sed -i -e "s:@gcc:\${CC} \${CFLAGS}:" user/Makefile +} + +src_compile() +{ + linux-mod_src_compile || die "Kernel module compilation failed!" + + einfo "Preparing userspace tools" + cd ${S}/user + emake || die "Userspace tools compilation failed!" +} + +src_install() +{ + linux-mod_src_install + + cd ${S} + dobin user/ksb26manager + + dodir /etc/ksb26 + insinto /etc/ksb26 + doins thosts.example + + doman ksb26.8.gz + dodoc AUTHOR README TODO +} + +pkg_postinst() +{ + linux-mod_pkg_postinst + + if [ ! -e ${ROOT}/dev/ksb26 ]; then + mknod ${ROOT}/dev/ksb26 c 254 0 + fi + + einfo "Read man page (man ksb26) for informations about the use of ksb26" + einfo "Don't forget to set target hosts in /etc/ksb26/thosts" +} + +pkg_postrm() +{ + if [ -e ${ROOT}/dev/ksb26 ]; then + rm ${ROOT}/dev/ksb26 + fi +} diff --git a/net-misc/ksb26/metadata.xml b/net-misc/ksb26/metadata.xml new file mode 100644 index 000000000000..9b17d22e360a --- /dev/null +++ b/net-misc/ksb26/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<longdescription> +ksb26 is a package that redirects tcp connection (to user-defined target hosts) +through socks 4/5 chains. It is divided into a kernel module, ksb26, that +intercepts and redirects tcp connections, and a userspace manager, ksb26manager, +that keeps updated the SOCKS list and loads target hosts list via a character +device, /dev/ksb26 +</longdescription> +<maintainer> + <email>s4t4n@gentoo.org</email> + <name>Michele Noberasco</name> +</maintainer> +</pkgmetadata> |