summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Vroon <chainsaw@gentoo.org>2008-01-14 16:13:38 +0000
committerTony Vroon <chainsaw@gentoo.org>2008-01-14 16:13:38 +0000
commitd426b068339e4bb7bb62d575dee366e822a2af52 (patch)
tree5de409a0e87f18c87c37f4de8950bac9791a1d8c /app-mobilephone/smstools
parentVersion bump (closing bug #205713) (diff)
downloadgentoo-2-d426b068339e4bb7bb62d575dee366e822a2af52.tar.gz
gentoo-2-d426b068339e4bb7bb62d575dee366e822a2af52.tar.bz2
gentoo-2-d426b068339e4bb7bb62d575dee366e822a2af52.zip
Version bump. Incoming spool should be setgid, as pointed out by tucksonjack@gmail.com in bug #196366. Also quote a few variables.
(Portage version: 2.1.4)
Diffstat (limited to 'app-mobilephone/smstools')
-rw-r--r--app-mobilephone/smstools/ChangeLog11
-rw-r--r--app-mobilephone/smstools/files/digest-smstools-2.2.203
-rw-r--r--app-mobilephone/smstools/smstools-2.2.20.ebuild64
-rw-r--r--app-mobilephone/smstools/smstools-2.2.9.ebuild20
4 files changed, 86 insertions, 12 deletions
diff --git a/app-mobilephone/smstools/ChangeLog b/app-mobilephone/smstools/ChangeLog
index bf7b7b75affe..3b47ef521284 100644
--- a/app-mobilephone/smstools/ChangeLog
+++ b/app-mobilephone/smstools/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-mobilephone/smstools
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/smstools/ChangeLog,v 1.10 2007/11/04 08:32:52 mrness Exp $
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/smstools/ChangeLog,v 1.11 2008/01/14 16:13:37 chainsaw Exp $
+
+*smstools-2.2.20 (14 Jan 2008)
+
+ 14 Jan 2008; Tony Vroon <chainsaw@gentoo.org> smstools-2.2.9.ebuild,
+ +smstools-2.2.20.ebuild:
+ Version bump. Incoming spool should be setgid, as pointed out by
+ tucksonjack@gmail.com in bug #196366. Also quote a few variables.
04 Nov 2007; Alin Năstac <mrness@gentoo.org> smstools-2.2.9.ebuild,
smstools-2.2.13.ebuild:
diff --git a/app-mobilephone/smstools/files/digest-smstools-2.2.20 b/app-mobilephone/smstools/files/digest-smstools-2.2.20
new file mode 100644
index 000000000000..0859d5b5eb70
--- /dev/null
+++ b/app-mobilephone/smstools/files/digest-smstools-2.2.20
@@ -0,0 +1,3 @@
+MD5 6d59c3815a7bdb8d2f1b8cfa71f1258d smstools-2.2.20.tar.gz 172234
+RMD160 7cd29149f9f94ba73e25fa77b3b9aae6312e47d3 smstools-2.2.20.tar.gz 172234
+SHA256 8eee958946332580bbe314f2e839734e633db487deb43bbb5d9bbc94b8f506bb smstools-2.2.20.tar.gz 172234
diff --git a/app-mobilephone/smstools/smstools-2.2.20.ebuild b/app-mobilephone/smstools/smstools-2.2.20.ebuild
new file mode 100644
index 000000000000..8387eafb1d74
--- /dev/null
+++ b/app-mobilephone/smstools/smstools-2.2.20.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/smstools/smstools-2.2.20.ebuild,v 1.1 2008/01/14 16:13:37 chainsaw Exp $
+
+inherit eutils
+
+DESCRIPTION="Send and receive short messages through GSM modems"
+HOMEPAGE="http://smstools.meinemullemaus.de/"
+SRC_URI="http://www.meinemullemaus.de/${PN}/packages/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64 ~ppc"
+IUSE="stats"
+
+RDEPEND="sys-process/procps
+ stats? ( >=dev-libs/mm-1.4.0 )"
+
+S="${WORKDIR}"/${PN}
+
+pkg_setup() {
+ enewgroup sms
+ enewuser smsd -1 -1 /var/spool/sms sms
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/2.2.1-skip-dirlock.patch
+ epatch "${FILESDIR}"/2.2.13-sendsms-chmod.patch
+ if use stats; then
+ sed -i -e "s:CFLAGS += -D NOSTATS:#CFLAGS += -D NOSTATS:" src/Makefile
+ fi
+}
+
+src_compile() {
+ cd src
+ emake || die "emake failed"
+}
+
+src_install() {
+ dobin src/smsd
+ cd "${S}"/scripts
+ dobin sendsms sms2html sms2unicode unicode2sms
+ dobin hex2bin hex2dec email2sms
+ dodoc mysmsd smsevent smsresend sms2xml sql_demo
+
+ keepdir /var/spool/sms/incoming
+ keepdir /var/spool/sms/outgoing
+ keepdir /var/spool/sms/checked
+ chown -R smsd:sms "${D}"/var/spool/sms
+ chmod g+s "${D}"/var/spool/sms/incoming
+
+ newinitd "${FILESDIR}"/smsd.initd smsd
+ insopts -o smsd -g sms -m0644
+ insinto /etc
+ newins "${S}"/examples/smsd.conf.easy smsd.conf
+
+ dohtml "${S}"/doc/*
+}
+
+pkg_postinst() {
+ chown -f smsd:sms /var/log/smsd.log
+}
diff --git a/app-mobilephone/smstools/smstools-2.2.9.ebuild b/app-mobilephone/smstools/smstools-2.2.9.ebuild
index a77df4a5a542..b1638bee7e72 100644
--- a/app-mobilephone/smstools/smstools-2.2.9.ebuild
+++ b/app-mobilephone/smstools/smstools-2.2.9.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/smstools/smstools-2.2.9.ebuild,v 1.2 2007/11/04 08:32:52 mrness Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/smstools/smstools-2.2.9.ebuild,v 1.3 2008/01/14 16:13:37 chainsaw Exp $
inherit eutils
@@ -22,9 +22,9 @@ pkg_setup() {
}
src_unpack() {
- unpack ${A}
- cd ${S}
- epatch ${FILESDIR}/2.2.1-skip-dirlock.patch
+ unpack "${A}"
+ cd "${S}"
+ epatch "${FILESDIR}/2.2.1-skip-dirlock.patch"
if use stats; then
sed -i -e "s:CFLAGS += -D NOSTATS:#CFLAGS += -D NOSTATS:" src/Makefile
fi
@@ -37,7 +37,7 @@ src_compile() {
src_install() {
dobin src/smsd
- cd ${S}/scripts
+ cd "${S}"/scripts
dobin sendsms sms2html sms2unicode unicode2sms
dobin hex2bin hex2dec email2sms
dodoc mysmsd smsevent smsresend sms2xml sql_demo
@@ -45,14 +45,14 @@ src_install() {
keepdir /var/spool/sms/incoming
keepdir /var/spool/sms/outgoing
keepdir /var/spool/sms/checked
- chown -R smsd:sms ${D}/var/spool/sms
+ chown -R smsd:sms "${D}"/var/spool/sms
- newinitd ${FILESDIR}/smsd.initd smsd
+ newinitd "${FILESDIR}"/smsd.initd smsd
insopts -o smsd -g sms -m0644
insinto /etc
- newins ${S}/examples/smsd.conf.easy smsd.conf
+ newins "${S}"/examples/smsd.conf.easy smsd.conf
- dohtml ${S}/doc/*
+ dohtml "${S}"/doc/*
}
pkg_postinst() {