/[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.1 - (hide annotations) (download)
Sat Feb 3 06:49:06 2007 UTC (11 years, 4 months ago) by mrness
Branch: MAIN
Add optional sender number, thanks to Andreas Bollhalder <bolle at geodb dot org> (#164954).
(Portage version: 2.1.1-r2)

1 mrness 1.1 # Copyright 1999-2007 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.ebuild,v 1.2 2006/02/25 11:03:12 mrness Exp $
4    
5     inherit eutils
6    
7     DESCRIPTION="Utility to send SMS messages to mobile phones and pagers."
8     HOMEPAGE="http://www.smsclient.org"
9     SRC_URI="http://www.smsclient.org/download/${PN}-${PV%?}/${P}.tar.gz"
10    
11     LICENSE="GPL-2"
12     SLOT="0"
13     KEYWORDS="~x86"
14     IUSE=""
15    
16     src_unpack() {
17     unpack ${A}
18    
19     epatch "${FILESDIR}/${P}-gentoo.patch"
20     epatch "${FILESDIR}/${P}-sender.patch"
21     }
22    
23     src_compile() {
24     rm .configured && ./configure || die "Configure failed"
25     make || die "Make failed"
26     }
27    
28     src_install() {
29     make DESTDIR="${D}" install || die "Install failed"
30     dosym sms_client /usr/bin/smsclient
31     dosym sms_address /usr/bin/smsaddress
32    
33     diropts -g dialout -m 0770
34     keepdir /var/lock/sms
35     diropts
36    
37     doman docs/sms_client.1
38     dodoc Authors Changelog* FAQ README* TODO docs/sms_protocol
39     }
40    
41     pkg_postinst() {
42     local MY_LOGFILE="${ROOT}/var/log/smsclient.log"
43     [ -f "${MY_LOGFILE}" ] || touch "${MY_LOGFILE}"
44     chgrp dialout "${MY_LOGFILE}"
45     chmod g+rwx,o-rwx "${MY_LOGFILE}"
46    
47     einfo "If you run sms_client as normal user, make sure you are member of dialout group."
48     }

  ViewVC Help
Powered by ViewVC 1.1.20