Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 327851
Collapse All | Expand All

(-)bitlbee-1.2.7.ebuild (-13 / +8 lines)
Lines 1-8 Link Here
1
# Copyright 1999-2010 Gentoo Foundation
1
# Copyright 1999-2010 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/net-im/bitlbee/bitlbee-1.2.7.ebuild,v 1.1 2010/05/19 19:17:43 cedk Exp $
3
# $Header: $
4
4
5
EAPI="1"
5
EAPI="2"
6
inherit eutils toolchain-funcs confutils
6
inherit eutils toolchain-funcs confutils
7
7
8
DESCRIPTION="irc to IM gateway that support multiple IM protocols"
8
DESCRIPTION="irc to IM gateway that support multiple IM protocols"
Lines 65-74 Link Here
65
	enewuser bitlbee -1 -1 /var/lib/bitlbee bitlbee
65
	enewuser bitlbee -1 -1 /var/lib/bitlbee bitlbee
66
}
66
}
67
67
68
src_unpack() {
68
src_prepare() {
69
	unpack ${A}
70
	cd "${S}"
71
72
	sed -i \
69
	sed -i \
73
		-e "s@/usr/local/sbin/bitlbee@/usr/sbin/bitlbee@" \
70
		-e "s@/usr/local/sbin/bitlbee@/usr/sbin/bitlbee@" \
74
		-e "s/nobody/bitlbee/" \
71
		-e "s/nobody/bitlbee/" \
Lines 80-86 Link Here
80
		configure || die "sed failed in configure"
77
		configure || die "sed failed in configure"
81
}
78
}
82
79
83
src_compile() {
80
src_configure() {
84
	# ldap hard-disabled for now
81
	# ldap hard-disabled for now
85
	local myconf="--ldap=0"
82
	local myconf="--ldap=0"
86
83
Lines 116-130 Link Here
116
	sed -i \
113
	sed -i \
117
		-e "s/CFLAGS=.*$/CFLAGS=${CFLAGS}/" \
114
		-e "s/CFLAGS=.*$/CFLAGS=${CFLAGS}/" \
118
		Makefile.settings || die "sed failed"
115
		Makefile.settings || die "sed failed"
119
120
	emake || die "make failed"
121
}
116
}
122
117
123
src_install() {
118
src_install() {
124
	make install DESTDIR="${D}" || die "install failed"
119
	emake install DESTDIR="${D}" || die "install failed"
125
	make install-etc DESTDIR="${D}" || die "install failed"
120
	emake install-etc DESTDIR="${D}" || die "install failed"
126
	make install-doc DESTDIR="${D}" || die "install failed"
121
	emake install-doc DESTDIR="${D}" || die "install failed"
127
	make install-dev DESTDIR="${D}" || die "install failed"
122
	emake install-dev DESTDIR="${D}" || die "install failed"
128
	keepdir /var/lib/bitlbee
123
	keepdir /var/lib/bitlbee
129
	fperms 700 /var/lib/bitlbee
124
	fperms 700 /var/lib/bitlbee
130
	fowners bitlbee:bitlbee /var/lib/bitlbee
125
	fowners bitlbee:bitlbee /var/lib/bitlbee

Return to bug 327851