summaryrefslogtreecommitdiff
blob: d64a0d18100ebf4686c5af9a104a0a12761d215d (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
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit perl-module

MY_P=${PN}-1.001

DESCRIPTION="Dialup alphapaging software"
HOMEPAGE="https://www.sendpage.org/"
SRC_URI="https://www.sendpage.org/download/${MY_P}.tar.gz"
S="${WORKDIR}/${MY_P}"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"

DEPEND="
	acct-group/sms
	acct-user/sendpage
	dev-perl/DBI
	dev-perl/Device-SerialPort
	dev-perl/MailTools
	dev-perl/Net-SNPP
	virtual/perl-libnet
"
RDEPEND="${DEPEND}"

PATCHES=( "${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
	docompress -x /usr/share/doc/${PF}/text/
	docinto text/
	dodoc docs/*
}