app-mobilephone/smstools: remove unused patches/files
authorMichael Mair-Keimberger (asterix) <m.mairkeimberger@gmail.com>
Sun, 10 Jul 2016 20:20:38 +0000 (22:20 +0200)
committerPatrice Clement <monsieurp@gentoo.org>
Mon, 11 Jul 2016 12:07:54 +0000 (12:07 +0000)
Closes: https://github.com/gentoo/gentoo/pull/1863

Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
app-mobilephone/smstools/files/2.2.1-skip-dirlock.patch [deleted file]
app-mobilephone/smstools/files/2.2.13-sendsms-chmod.patch [deleted file]
app-mobilephone/smstools/files/smsd.initd [deleted file]
app-mobilephone/smstools/files/smsd.initd2 [deleted file]

diff --git a/app-mobilephone/smstools/files/2.2.1-skip-dirlock.patch b/app-mobilephone/smstools/files/2.2.1-skip-dirlock.patch
deleted file mode 100644 (file)
index 64336ee..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
---- src/extras.c.orig  2006-06-15 10:45:59.000000000 +0100
-+++ src/extras.c       2006-06-15 10:45:39.000000000 +0100
-@@ -178,20 +178,21 @@
-       stat(filename,&statbuf);
-       if (S_ISDIR(statbuf.st_mode)==0) /* Is this a directory? */
-       {
--        /* File found, check for lock file  */
--      if (strstr(filename,".LOCK")==0) /* Is the file a lock file itself? */
--        if (!islocked(filename)) /* no, is there a lock file for this file? */
--        {
--          /* check if the file grows at the moment (another program writes to it) */
--          int groesse1;
--          int groesse2;
--          groesse1=statbuf.st_size;
--          sleep(1);
--          stat(filename,&statbuf);
--          groesse2=statbuf.st_size;
--          if (groesse1==groesse2)
--            found=1;
--        }
-+        /* File found, check for lock file and skip portage directory locks */
-+      if (strstr(filename,".keep")==0) /* Is it a portage directory lock? */
-+        if (strstr(filename,".LOCK")==0) /* Is the file a lock file itself? */
-+          if (!islocked(filename)) /* no, is there a lock file for this file? */
-+          {
-+            /* check if the file grows at the moment (another program writes to it) */
-+            int groesse1;
-+            int groesse2;
-+            groesse1=statbuf.st_size;
-+            sleep(1);
-+            stat(filename,&statbuf);
-+            groesse2=statbuf.st_size;
-+            if (groesse1==groesse2)
-+              found=1;
-+          }
-       }       
-     }
-     closedir(dirdata);
diff --git a/app-mobilephone/smstools/files/2.2.13-sendsms-chmod.patch b/app-mobilephone/smstools/files/2.2.13-sendsms-chmod.patch
deleted file mode 100644 (file)
index 716e316..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-diff -uNr smstools.ORIG/scripts/sendsms smstools/scripts/sendsms
---- smstools.ORIG/scripts/sendsms      2006-12-02 15:26:09.000000000 +0000
-+++ smstools/scripts/sendsms   2006-12-02 15:26:52.000000000 +0000
-@@ -26,3 +26,5 @@
- echo "" >> $FILE
- echo -n "$TEXT" >> $FILE
-+chmod 660 $FILE
-+
diff --git a/app-mobilephone/smstools/files/smsd.initd b/app-mobilephone/smstools/files/smsd.initd
deleted file mode 100644 (file)
index 31bb9f8..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-depend() {
-       need localmount
-}
-
-start() {
-       ebegin "Starting smsd"
-       start-stop-daemon -b -m -p /var/run/smsd.pid -c smsd:sms --start --exec /usr/bin/smsd -- \
-               -c /etc/smsd.conf
-       eend ${?}
-}
-
-stop() {
-       ebegin "Stopping smsd"
-       start-stop-daemon --stop -p /var/run/smsd.pid
-       eend ${?}
-}
diff --git a/app-mobilephone/smstools/files/smsd.initd2 b/app-mobilephone/smstools/files/smsd.initd2
deleted file mode 100644 (file)
index c2c9d4c..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-depend() {
-       need localmount
-}
-
-start() {
-       chown smsd:sms /var/log/smsd.log
-       ebegin "Starting smsd"
-       start-stop-daemon -b -u smsd:sms --start --exec /usr/bin/smsd -- \
-               -c /etc/smsd.conf
-       eend ${?}
-}
-
-stop() {
-       ebegin "Stopping smsd"
-       start-stop-daemon --stop -n smsd
-       eend ${?}
-}