/[gentoo-x86]/app-mobilephone/smsclient/smsclient-2.0.9a-r1.ebuild
Gentoo

Contents of /app-mobilephone/smsclient/smsclient-2.0.9a-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sun Aug 10 18:12:50 2014 UTC (3 years, 10 months ago) by slyfox
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +3 -3 lines
QA: drop trailing '.' from DESCRIPTION

(Portage version: 2.2.11_p9/cvs/Linux x86_64, signed Manifest commit with key 611FF3AA)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-mobilephone/smsclient/smsclient-2.0.9a-r1.ebuild,v 1.4 2013/08/21 18:58:44 creffett Exp $
4
5 EAPI="5"
6
7 inherit eutils user
8
9 DESCRIPTION="Utility to send SMS messages to mobile phones and pagers"
10 HOMEPAGE="http://www.smsclient.org"
11 SRC_URI="http://www.smsclient.org/download/${PN}-${PV%?}/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE=""
17
18 pkg_setup() {
19 enewgroup dialout
20 }
21
22 src_prepare() {
23 epatch "${FILESDIR}/${P}-gentoo.patch"
24 epatch "${FILESDIR}/${P}-sender.patch"
25 sed -i -e \
26 "s:\$(CFLAGS) -o:\$(CFLAGS) \$(LDFLAGS) -o:g" \
27 src/client/Makefile
28 }
29
30 src_configure() {
31 rm .configured && ./configure
32 }
33
34 src_compile() {
35 emake \
36 CC="$(tc-getCC)" \
37 AR="$(tc-getAR) rc" \
38 RANLIB="$(tc-getRANLIB)" \
39 LDFLAGS="${LDFLAGS}"
40 }
41
42 src_install() {
43 emake DESTDIR="${D}" install
44 dosym sms_client /usr/bin/smsclient
45 dosym sms_address /usr/bin/smsaddress
46
47 diropts -g dialout -m 0770
48 keepdir /var/lock/sms
49 diropts
50
51 doman docs/sms_client.1
52 dodoc AUTHORS Changelog* FAQ README* TODO docs/sms_protocol
53 }
54
55 pkg_config() {
56 local MY_LOGFILE="${ROOT}/var/log/smsclient.log"
57 [ -f "${MY_LOGFILE}" ] || touch "${MY_LOGFILE}"
58 fowners :dialout "${MY_LOGFILE}"
59 fperms g+rwx,o-rwx "${MY_LOGFILE}"
60 }
61
62 pkg_postinst() {
63 einfo "If you run sms_client as normal user, make sure you are member of dialout group."
64 }

  ViewVC Help
Powered by ViewVC 1.1.20