Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 1559

Summary: slidentd ebuild (new)
Product: Gentoo Linux Reporter: Thilo Bangert (RETIRED) (RETIRED) <bangert>
Component: New packagesAssignee: Thilo Bangert (RETIRED) (RETIRED) <bangert>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
URL: http://www.fizzelpark.com/portage/net-misc/slidentd/slidentd-0.0.15.ebuild
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 1557, 1558    
Bug Blocks:    

Description Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2002-04-05 16:12:09 UTC
here is an ebuild for slidentd, a secure (and thus not 100% RFC compatible)
identd implementation. this ebuild needs and is only tested with a recent
dietlibc (bug #1557) and the libowfat (bug #1558)
http://www.fizzelpark.com/portage/net-misc/slidentd/slidentd-0.0.15.ebuild
---
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2
# Author: Thilo Bangert <thilo.bangert@gmx.net>
# /space/gentoo/cvsroot/gentoo-x86/skel.ebuild,v 1.3 2002/02/04 15:46:51 gbevin Exp

S=${WORKDIR}/${P}
DESCRIPTION="A secure, lightweight ident daemon."
SRC_URI="http://www.uncarved.com/slidentd/${P}.tar.gz"
HOMEPAGE="http://www.uncarved.com/slidentd/"

DEPEND="dev-libs/dietlibc
	dev-libs/libowfat"

RDEPEND="sys-apps/daemontools
	sys-apps/ucspi-tcp"

src_unpack() {
	unpack ${A} ; cd ${S}
	mv Makefile Makefile.orig
	sed -e "s:^\tCFLAGS=\$(diet_cflag.*:\tCFLAGS=${CFLAGS} \${diet_cflags}:" \
		-e "s:^\tCC\:=diet -Os \$(CC):\tCC\:=diet -Os gcc:" \
		Makefile.orig > Makefile
}

src_compile() {
	make build_mode=diet INCLUDES=-I/usr/include/libowfat LIBDIRS=-L/usr/lib || die
}

src_install () {
	make DESTDIR=${D} install || die

	exeinto /var/lib/supervise/slidentd
	newexe ${FILESDIR}/run run
}

pkg_postinst() {
	echo -e "\e[32;01m You need to start your supervise service:\033[0m"
	echo ' # ln -s /var/lib/supervise/slidentd/ /service'
	echo
}