summaryrefslogtreecommitdiff
blob: 2e05291670c2b475d6f6d070c2fc75f762726776 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/ucspi-unix/ucspi-unix-0.36-r1.ebuild,v 1.1 2004/01/07 22:14:55 robbat2 Exp $

S=${WORKDIR}/${P}
DESCRIPTION="A ucspi implementation for unix sockets."
SRC_URI="http://untroubled.org/ucspi-unix/${P}.tar.gz"

DEPEND=">=dev-libs/bglibs-1.009-r1"
HOMEPAGE="http://untroubled.org/ucspi-unix/"
KEYWORDS="x86 amd64 ~sparc"
SLOT="0"
LICENSE="GPL-2"

src_unpack() {
	unpack ${A}

	# Fix for head syntax in Makefile
	cd ${S}
	epatch ${FILESDIR}/${PN}-gentoo-head.patch
}

src_compile() {
	echo "${CC} ${CFLAGS} -I/usr/lib/bglibs/include" > conf-cc
	echo "${CC} -s -L/usr/lib/bglibs/lib" > conf-ld
	make || die  #don't use emake b/c of jobserver
}

src_install () {
	exeinto /usr/bin
	doexe unixserver unixclient unixcat
	doman unixserver.1 unixclient.1

	dodoc ANNOUNCEMENT ChangeLog NEWS PROTOCOL README TODO
}