blob: a7dafc95fd1d4f908bb6a956d5be5966bf138b9c (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/howl/howl-1.0.0.ebuild,v 1.18 2007/07/11 03:59:52 compnerd Exp $
inherit eutils flag-o-matic
DESCRIPTION="cross-platform implementation of the Zeroconf networking standard"
HOMEPAGE="http://www.porchdogsoft.com/products/howl/"
SRC_URI="http://www.porchdogsoft.com/download/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 arm ~hppa ia64 ~mips ppc ~ppc-macos ppc64 s390 sh sparc x86 ~x86-fbsd"
IUSE=""
DEPEND=""
# sys-devel/automake - needed if we remove the html docs from /usr/share
# sw_log is unprovided (Bug #87436)
RESTRICT="test"
src_unpack() {
unpack ${A}
cd "${S}"
# patch fixes #84030 (missing linux/types.h include)
epatch "${FILESDIR}"/${PN}-0.9.8-types.patch
}
src_compile() {
# If we wanted to remove the html docs in /usr/share/howl....
#einfo "Removing html docs from build process...."
#sed -e 's/ docs//' < Makefile.am > Makefile.am.new || die "sed failed"
#mv Makefile.am.new Makefile.am || die "move failed"
#aclocal || die "aclocal failed"
#automake || die "automake failed"
econf || die "econf failed"
emake || die "emake failed"
}
pkg_preinst() {
# howl-0.9.8 introduces a change in library naming,
# preserve old libraries to not break things
preserve_old_lib /usr/$(get_libdir)/libhowl-[0-9].[0-9].[0-9].so.[0-9].[0-9].[0-9]
preserve_old_lib /usr/$(get_libdir)/libmDNSResponder-[0-9].[0-9].[0-9].so.[0-9].[0-9].[0-9]
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc AUTHORS COPYING ChangeLog INSTALL README TODO
dohtml -r docs/
# Install conf files
newconfd "${FILESDIR}"/nifd.conf.d nifd
newconfd "${FILESDIR}"/mDNSResponder.conf.d mDNSResponder
# Install init scripts
newinitd "${FILESDIR}"/nifd.init.d nifd
newinitd "${FILESDIR}"/mDNSResponder.init.d mDNSResponder
}
pkg_postinst() {
# inform user about library changes
preserve_old_lib_notify /usr/$(get_libdir)/libhowl-[0-9].[0-9].[0-9].so.[0-9].[0-9].[0-9]
preserve_old_lib_notify /usr/$(get_libdir)/libmDNSResponder-[0-9].[0-9].[0-9].so.[0-9].[0-9].[0-9]
ewarn
ewarn "You should run revdep-rebuild to ensure that any applications which"
ewarn "use howl use the new version."
ewarn
ebeep 5
}
|