Revisions of unscd

Petr Baudis's avatar Petr Baudis (pbaudis) committed (revision 9)
Petr Baudis's avatar Petr Baudis (pbaudis) committed (revision 8)
- Make the package conflict with nscd
- The executable name is now nscd; network scripts call `nscd -i`
- Fix linking to create a PIE

--This line, and those below, will be ignored--

M    init.d
A    unscd.changes
M    unscd.spec

Diff for working copy: .
Index: init.d
===================================================================

--- init.d     (revision 7) 
+++ init.d     (working copy) 
@@ -31,7 +31,7 @@
 # Source SuSE config
 . /etc/rc.status
 
-NSCD_BIN=/usr/sbin/unscd
+NSCD_BIN=/usr/sbin/nscd
 test -x $NSCD_BIN || { echo "$NSCD_BIN not installed";
     if [ "$1" = "stop" ]; then exit 0; else exit 5; fi; }
 

Index: unscd.spec
===================================================================

--- unscd.spec     (revision 7) 
+++ unscd.spec     (working copy) 
@@ -4,10 +4,10 @@
 Summary:	Alternative Name Service Caching Daemon
 Group:		System/Daemons
 License:	GPL
-Packager:	Petr Baudis <pasky@suse.cz>
 URL:		http://busybox.net/~vda/unscd/
 BuildRoot:	%_tmppath/%name-%version-%release-root-%(%__id_u -n)
 Provides:	nscd
+Conflicts:	nscd
 Source0:	nscd-%version.c
 Source1:	init.d
 Source2:	nscd.conf
@@ -26,11 +26,10 @@
 cp $RPM_SOURCE_DIR/nscd-%version.c .
 
 %build
-CFLAGS="-Wall -Os"
-cc $CFLAGS -o unscd nscd-%version.c
+cc $RPM_OPT_FLAGS -fpie -pie -o unscd nscd-%version.c
 
 %install
-install -m 0755 -D unscd $RPM_BUILD_ROOT/%_sbindir/unscd
+install -m 0755 -D unscd $RPM_BUILD_ROOT/%_sbindir/nscd
 
 install -m 0644 -D $RPM_SOURCE_DIR/nscd.conf $RPM_BUILD_ROOT/etc/nscd.conf
 

Index: unscd.changes
===================================================================

--- unscd.changes     (revision 7) 
+++ unscd.changes     (working copy) 
@@ -1,0 +1,11 @@
+-------------------------------------------------------------------
+Mon Jun 15 16:29:08 CEST 2009 - pbaudis@suse.cz
+
+- Make the package conflict with nscd
+- The executable name is now nscd; network scripts call `nscd -i`
+- Fix linking to create a PIE
+
+-------------------------------------------------------------------
+Mon Jan 26 16:28:32 CEST 2009 - pbaudis@suse.cz
+
+- Initial package, slightly based on Jon Nelson's <jnelson@boa.org>
Petr Baudis's avatar Petr Baudis (pbaudis) committed (revision 7)
Add required-stop, should-stop dependencies to init script
Petr Baudis's avatar Petr Baudis (pbaudis) committed (revision 6)
Petr Baudis's avatar Petr Baudis (pbaudis) committed (revision 5)
Petr Baudis's avatar Petr Baudis (pbaudis) committed (revision 4)
Petr Baudis's avatar Petr Baudis (pbaudis) committed (revision 3)
Petr Baudis's avatar Petr Baudis (pbaudis) committed (revision 2)
Petr Baudis's avatar Petr Baudis (pbaudis) committed (revision 1)
Displaying all 9 revisions
openSUSE Build Service is sponsored by