/[gentoo-x86]/app-admin/qpage/qpage-3.3.ebuild
Gentoo

Contents of /app-admin/qpage/qpage-3.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sat Dec 18 04:38:04 2010 UTC (3 years, 9 months ago) by chutzpah
Branch: MAIN
Changes since 1.5: +4 -3 lines
Make sure that CC environment variable is being properly respected (bug #243324).

(Portage version: 2.1.9.25/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-admin/qpage/qpage-3.3.ebuild,v 1.5 2009/10/11 23:44:46 halcy0n Exp $
4
5 inherit eutils toolchain-funcs
6
7 DESCRIPTION="Sends messages to an alphanumeric pager via TAP protocol."
8 HOMEPAGE="http://www.qpage.org/"
9 SRC_URI="http://www.qpage.org/download/${P}.tar.Z"
10
11 LICENSE="qpage"
12 SLOT="0"
13 KEYWORDS="alpha amd64 x86"
14 IUSE="tcpd"
15
16 DEPEND="tcpd? ( sys-apps/tcp-wrappers )"
17 RDEPEND="${DEPEND}
18 virtual/mta"
19
20 src_unpack() {
21 unpack ${A}
22 cd "${S}"
23
24 epatch "${FILESDIR}"/${P}-gentoo.patch
25 epatch "${FILESDIR}"/${P}-fix-warning.patch
26 }
27
28 src_compile() {
29 tc-export CC
30 econf || die "econf failed"
31
32 # There doesn't seem to be a clean way to disable tcp wrappers in
33 # this package if you have it installed, but don't want to use it.
34 if ! use tcpd ; then
35 sed -i 's/-lwrap//g; s/-DTCP_WRAPPERS//g' Makefile
36 echo '#undef TCP_WRAPPERS' >> config.h
37 fi
38
39 emake || die "emake failed"
40 }
41
42 src_install() {
43 einstall || die "einstall failed"
44
45 dodir /var/spool/qpage
46 fowners daemon:daemon /var/spool/qpage
47 fperms 770 /var/spool/qpage
48
49 dodir /var/lock/subsys/qpage
50 fowners daemon:daemon /var/lock/subsys/qpage
51 fperms 770 /var/lock/subsys/qpage
52
53 insinto /etc/qpage
54 doins example.cf || die "doins example.cf failed"
55
56 doinitd "${FILESDIR}"/qpage
57 }
58
59 pkg_postinst() {
60 elog
61 elog "Post-installation tasks:"
62 elog
63 elog "1. Create /etc/qpage/qpage.cf (see example.cf in that dir)."
64 elog "2. Insure that the serial port selected in qpage.cf"
65 elog " is writable by user or group daemon."
66 elog "3. Set automatic startup with rc-update add qpage default"
67 elog "4. Send mail to tomiii@qpage.org telling him how"
68 elog " you like qpage! :-)"
69 elog
70 }

  ViewVC Help
Powered by ViewVC 1.1.20