blob: eade6a6c7c2c6871523dab2b4ab14919cc2ccab1 (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dialup/sendpage/sendpage-1.1.0-r1.ebuild,v 1.2 2006/11/22 15:03:22 josejx Exp $
inherit perl-module eutils
MY_P=${PN}-1.001
DESCRIPTION="Dialup alphapaging software."
HOMEPAGE="http://www.sendpage.org/"
SRC_URI="http://www.sendpage.org/download/${MY_P}.tar.gz"
S=${WORKDIR}/${MY_P}
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
DEPEND=">=dev-perl/Device-SerialPort-0.13
>=dev-perl/MailTools-1.44
>=virtual/perl-libnet-1.11
>=dev-perl/Net-SNPP-1.13
dev-perl/DBI"
mydoc="FEATURES THANKS TODO email2page.conf sendpage.cf snpp.conf docs/*"
pkg_setup() {
enewgroup sms
enewuser sendpage -1 -1 /var/spool/sendpage sms
}
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${PV}-makefile.patch
}
src_install() {
perl-module_src_install
insinto /etc
doins sendpage.cf
newinitd ${FILESDIR}/sendpage.initd sendpage
diropts -o sendpage -g sms -m0770
keepdir /var/spool/sendpage
}
pkg_preinst() {
pkg_setup
}
|