diff options
author | Michele Noberasco <s4t4n@gentoo.org> | 2006-01-30 11:17:50 +0000 |
---|---|---|
committer | Michele Noberasco <s4t4n@gentoo.org> | 2006-01-30 11:17:50 +0000 |
commit | 1b2a045cd7a0deab6d848e650038008ea33d436a (patch) | |
tree | 52223188b276c43fc4505395a093d3d0304e9b46 /net-misc/ksb26 | |
parent | Stable on alpha, bug 114587. (diff) | |
download | gentoo-2-1b2a045cd7a0deab6d848e650038008ea33d436a.tar.gz gentoo-2-1b2a045cd7a0deab6d848e650038008ea33d436a.tar.bz2 gentoo-2-1b2a045cd7a0deab6d848e650038008ea33d436a.zip |
Version bump.
(Portage version: 2.0.54)
Diffstat (limited to 'net-misc/ksb26')
-rw-r--r-- | net-misc/ksb26/ChangeLog | 7 | ||||
-rw-r--r-- | net-misc/ksb26/Manifest | 8 | ||||
-rw-r--r-- | net-misc/ksb26/files/digest-ksb26-0.0.4 | 1 | ||||
-rw-r--r-- | net-misc/ksb26/ksb26-0.0.4.ebuild | 80 |
4 files changed, 92 insertions, 4 deletions
diff --git a/net-misc/ksb26/ChangeLog b/net-misc/ksb26/ChangeLog index 61e79c6f5b77..231bf39d37eb 100644 --- a/net-misc/ksb26/ChangeLog +++ b/net-misc/ksb26/ChangeLog @@ -1,6 +1,11 @@ # 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.4 2005/12/20 10:56:52 s4t4n Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/ksb26/ChangeLog,v 1.5 2006/01/30 11:17:50 s4t4n Exp $ + +*ksb26-0.0.4 (30 Jan 2006) + + 30 Jan 2006; Michele Noberasco <s4t4n@gentoo.org> ksb26-0.0.4.ebuild: + Version bump. 20 Dec 2005; Michele Noberasco <s4t4n@gentoo.org> ksb26-0.0.3.ebuild: stable for x86. diff --git a/net-misc/ksb26/Manifest b/net-misc/ksb26/Manifest index 05043ff93b13..50ab7f91cbd3 100644 --- a/net-misc/ksb26/Manifest +++ b/net-misc/ksb26/Manifest @@ -1,5 +1,7 @@ -MD5 284d01ec047e0ab7517d70c259e6ea20 ksb26-0.0.3.ebuild 1511 MD5 c27095f01ae22dac74a458076fe7cf7f ChangeLog 699 -MD5 afc72dba8623e8e3cf89192e2dc879d9 metadata.xml 623 -MD5 913c75809106b0a9996d8ac3e2c21f30 files/ksb26-kernel-Makefile 370 MD5 a2c92c540a6869abaffac8a2583f799c files/digest-ksb26-0.0.3 62 +MD5 95717ae897a0248b42a2bc54dcf9bb20 files/digest-ksb26-0.0.4 62 +MD5 913c75809106b0a9996d8ac3e2c21f30 files/ksb26-kernel-Makefile 370 +MD5 284d01ec047e0ab7517d70c259e6ea20 ksb26-0.0.3.ebuild 1511 +MD5 0cefd055974334e514877a5389427d1c ksb26-0.0.4.ebuild 1418 +MD5 afc72dba8623e8e3cf89192e2dc879d9 metadata.xml 623 diff --git a/net-misc/ksb26/files/digest-ksb26-0.0.4 b/net-misc/ksb26/files/digest-ksb26-0.0.4 new file mode 100644 index 000000000000..86f96ca464ea --- /dev/null +++ b/net-misc/ksb26/files/digest-ksb26-0.0.4 @@ -0,0 +1 @@ +MD5 fd3f747f28c1ad3d65e740969068c57b ksb26-0.0.4.tar.gz 19848 diff --git a/net-misc/ksb26/ksb26-0.0.4.ebuild b/net-misc/ksb26/ksb26-0.0.4.ebuild new file mode 100644 index 000000000000..69eadc99cd59 --- /dev/null +++ b/net-misc/ksb26/ksb26-0.0.4.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/ksb26/ksb26-0.0.4.ebuild,v 1.1 2006/01/30 11:17:50 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="~ppc ~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 +} |