Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:code933k
skvm
skvm+hg-paths.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File skvm+hg-paths.patch of Package skvm
diff -uNr skvm/init/skvm skvm.new/init/skvm --- skvm/init/skvm 2009-07-28 04:17:00.000000000 -0500 +++ skvm.new/init/skvm 2009-08-02 01:21:39.229661058 -0500 @@ -1,9 +1,24 @@ #!/bin/bash +### BEGIN INIT INFO +# Provides: skvm volume_manager +# Required-Start: boot.localfs $syslog +# Required-Stop: $null +# Should-Start: $remote_fs resmgr +# Should-Stop: $null +# X-Start-Before: $null +# X-Stop-After: $null +# Default-Start: 3 5 +# Default-Stop: 0 1 2 6 +# Short-Description: skvm, light volume manager +# Description: Starts skvm, for handling new disks and various volumes +### END INIT INFO . /etc/rc.conf . /etc/rc.d/functions PID=`pidof -o %PPID /usr/bin/skvm` +rc_reset + case "$1" in start) stat_busy "Starting SKVM Daemon" @@ -14,6 +29,7 @@ add_daemon skvm stat_done fi + rc_status -v ;; stop) stat_busy "Stopping SKVM Daemon" @@ -25,13 +41,23 @@ rm_daemon skvm stat_done fi + rc_status -v + ;; + status) + if [ -z "$PID" ]; then + rc_failed 0 + else + rc_failed 3 + fi + rc_status -v ;; - restart) + restart|reload) $0 stop sleep 3 $0 start + rc_status -v ;; *) - echo "usage: $0 {start|stop|restart}" + echo "usage: $0 {start|stop|status|restart|reload}" esac exit 0 diff -uNr skvm/Makefile skvm.new/Makefile --- skvm/Makefile 2009-07-28 04:17:00.000000000 -0500 +++ skvm.new/Makefile 2009-07-28 16:09:09.680141141 -0500 @@ -26,23 +26,23 @@ @rm -rf skvm-$(ver) install: all - @echo installing executable file to /usr/bin - @cp -f $(bin) /usr/bin - @chmod 755 /usr/bin/$(bin) - @echo installing init script to /etc/rc.d - @cp -f init/$(bin) /etc/rc.d - @chmod 755 /etc/rc.d/$(bin) - @echo installing manpage at /usr/local/share/man/man1 - @mkdir -p /usr/local/share/man/man1 - @sed "s/VERSION/$(ver)/g" < skvm.1 > /usr/local/share/man/man1/skvm.1 - @chmod 644 /usr/local/share/man/man1/skvm.1 + @echo installing executable file to ${DESTDIR}/usr/bin + @cp -f $(bin) ${DESTDIR}/usr/bin + @chmod 755 ${DESTDIR}/usr/bin/$(bin) + @echo installing init script to ${DESTDIR}/etc/init.d + @cp -f init/$(bin) ${DESTDIR}/etc/init.d + @chmod 755 ${DESTDIR}/etc/init.d/$(bin) + @echo installing manpage at ${DESTDIR}/usr/share/man/man1 + @mkdir -p ${DESTDIR}/usr/share/man/man1 + @sed "s/VERSION/$(ver)/g" < skvm.1 > ${DESTDIR}/usr/share/man/man1/skvm.1 + @chmod 644 ${DESTDIR}/usr/share/man/man1/skvm.1 uninstall: - @echo removing /usr/bin/$(bin) - @rm -f /usr/bin/$(bin) - @echo removing /etc/rc.d/$(bin) - @rm -f /etc/rc.d/$(bin) - @echo removing /usr/local/share/man/man1/skvm.1 - @rm -f /usr/local/share/man/man1/skvm.1 + @echo removing ${DESTDIR}/usr/bin/$(bin) + @rm -f ${DESTDIR}/usr/bin/$(bin) + @echo removing ${DESTDIR}/etc/init.d/$(bin) + @rm -f ${DESTDIR}/etc/init.d/$(bin) + @echo removing ${DESTDIR}/usr/share/man/man1/skvm.1 + @rm -f ${DESTDIR}/usr/share/man/man1/skvm.1 .PHONY: all clean dist install uninstall
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor