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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Mar 26 09:22:08 2007 UTC (7 years, 5 months ago) by mrness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Remove obsolete revision.
(Portage version: 2.1.2.2)

1 # Copyright 1999-2006 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 }
21
22 src_compile() {
23 rm .configured && ./configure || die "Configure failed"
24 make || die "Make failed"
25 }
26
27 src_install() {
28 make DESTDIR="${D}" install || die "Install failed"
29 dosym sms_client /usr/bin/smsclient
30 dosym sms_address /usr/bin/smsaddress
31
32 diropts -g dialout -m 0770
33 keepdir /var/lock/sms
34 diropts
35
36 doman docs/sms_client.1
37 dodoc Authors Changelog* FAQ README* TODO docs/sms_protocol
38 }
39
40 pkg_postinst() {
41 local MY_LOGFILE="${ROOT}/var/log/smsclient.log"
42 [ -f "${MY_LOGFILE}" ] || touch "${MY_LOGFILE}"
43 chgrp dialout "${MY_LOGFILE}"
44 chmod g+rwx,o-rwx "${MY_LOGFILE}"
45
46 einfo "If you run sms_client as normal user, make sure you are member of dialout group."
47 }

  ViewVC Help
Powered by ViewVC 1.1.20