]> TLD Linux GIT Repositories - packages/rc-scripts.git/commitdiff
- misc fixes, cleanup
authorMarcin Krol <hawk@tld-linux.org>
Mon, 14 Sep 2015 07:04:43 +0000 (07:04 +0000)
committerMarcin Krol <hawk@tld-linux.org>
Mon, 14 Sep 2015 07:04:43 +0000 (07:04 +0000)
misc_fixes.patch [new file with mode: 0644]
rc-scripts.spec

diff --git a/misc_fixes.patch b/misc_fixes.patch
new file mode 100644 (file)
index 0000000..66e3a27
--- /dev/null
@@ -0,0 +1,13 @@
+diff --git a/lib/functions b/lib/functions
+index ced6e97..fac4c46 100644
+--- a/lib/functions
++++ b/lib/functions
+@@ -607,7 +607,7 @@ _daemon_set_ulimits() {
+ # A function to start a program (now it's useful on read-only filesystem too)
+ daemon() {
+-      local errors="" prog="" end="" waitname="" waittime=""
++      local errors="" prog="" end="" waitname="" waittime=0
+       local exit_code=0
+       local nice=$SERVICE_RUN_NICE_LEVEL
+       local fork user closefds redirfds pidfile makepid chdir=/
index dfa70e4932fe0cd4fa47733ce3d68ebfc7cd2a33..7ca36c07ad2065b45f406ac91369fc2f7197fdb0 100644 (file)
@@ -8,11 +8,12 @@ Summary(pl.UTF-8):    inittab i skrypty startowe z katalogu /etc/rc.d
 Summary(tr.UTF-8):     inittab ve /etc/rc.d dosyaları
 Name:          rc-scripts
 Version:       0.5.0
-Release:       1
+Release:       2
 License:       GPL v2
 Group:         Base
 Source0:       %{name}-%{version}.tar.gz
 # Source0-md5: bb0901b490dc9c6b47d2ae6a5fd3cd5c
+Patch0:                misc_fixes.patch
 URL:           http://svn.pld-linux.org/trac/svn/wiki/packages/rc-scripts
 BuildRequires: autoconf
 BuildRequires: automake
@@ -26,9 +27,6 @@ BuildRequires:        pkgconfig
 BuildRequires: popt-devel
 BuildRequires: rpm >= 4.4.9-56
 Requires(post):        fileutils
-%ifarch sparc sparcv9 sparc64
-Requires:      agetty
-%endif
 Requires:      /bin/awk
 Requires:      /bin/basename
 Requires:      /bin/gettext
@@ -104,6 +102,7 @@ programcıklar içerir.
 
 %prep
 %setup -q
+%patch0 -p1
 
 # hack, currently this results in errno@@GLIBC_PRIVATE symbol in ppp-watch:
 #GLIB_LIBS="-Wl,-static `$PKG_CONFIG --libs --static glib-2.0` -Wl,-Bdynamic"