/[sandbox]/trapni/sandbox/overlay/net-misc/yacsd/yacsd-0.5.0_beta1.ebuild
Gentoo

Contents of /trapni/sandbox/overlay/net-misc/yacsd/yacsd-0.5.0_beta1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 442 - (show annotations) (download)
Fri Jul 22 20:12:13 2005 UTC (9 years ago) by trapni
File size: 1437 byte(s)
adding a postinst information and install yacsd.rc6
1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 inherit eutils
6
7 DESCRIPTION="YaCS server daemon"
8 HOMEPAGE="http://yacs.trapni-akane.org/"
9 SRC_URI="http://upstream.trapni-akane.org/yacs/yacs-${PV/_/-}.tar.gz"
10 LICENSE="GPL-2"
11 SLOT="0"
12 KEYWORDS="~x86 ~amd64"
13 IUSE="debug"
14
15 DEPEND=">=dev-libs/swl-0.4.0_rc5
16 >=dev-libs/libyacsutil-${PV}
17 >=dev-libs/libyacs-${PV}"
18
19 S="${WORKDIR}/${PN}-standalone"
20
21 src_unpack() {
22 unpack ${A} || die
23 mv -v "${WORKDIR}/yacs-${PV/_/-}/server/${PN}" "${S}" || die
24 rm -r "${WORKDIR}/yacs-${PV/_/-}" || die
25 }
26
27 src_compile() {
28 use debug && append-flags -g3
29 use debug || append-flags -DNDEBUG=1
30
31 econf || die "econf failed"
32 emake || die "emake failed"
33 }
34
35 src_install() {
36 make DESTDIR=${D} install || die
37 dodoc AUTHORS ChangeLog* COPYING* INSTALL* NEWS* README*
38
39 dodir /etc/yacs
40 insinto /etc/yacs
41 doins src/yacsd.conf-dist
42
43 newinitd "${FILESDIR}/yacsd.rc6" yacsd || die "couldn't install yacsd.rc6"
44
45 keepdir /var/log/yacs
46 }
47
48 pkg_postinst() {
49 echo
50 einfo "Please edit /etc/yacs/yacsd.conf and watch out for configuration layout updates"
51 einfo "in /etc/yacs/yacsd.conf-dist."
52 einfo
53 einfo "Use the following command (as usual) to start yacsd permanent."
54 einfo
55 einfo " /etc/init.d/yacsd start"
56 einfo " rc-update add yacsd default"
57 einfo
58 einfo "Support contact can be found at: http://yacs.mylair.de/report/1"
59 echo
60 }

  ViewVC Help
Powered by ViewVC 1.1.20