diff options
-rwxr-xr-x | debuginfofs.init | 7 | ||||
-rw-r--r-- | debuginfofs.spec | 5 |
2 files changed, 7 insertions, 5 deletions
diff --git a/debuginfofs.init b/debuginfofs.init index 3114e28..b77f17a 100755 --- a/debuginfofs.init +++ b/debuginfofs.init @@ -6,7 +6,6 @@ # Required-Stop: $local_fs $network $named $remote_fs $syslog # Short-Description: Remote debuginfo filesystem # Description: Mount a remote debuginfo filesystem for use with debugging tools -# ### END INIT INFO # debuginfofs This shell script takes care of mounting and unmounting the @@ -47,7 +46,7 @@ start() { -o intr $BUILDID_ARGS RETVAL=$? - [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog + [ $RETVAL -eq 0 ] && touch /var/lock/subsys/debuginfofs [ $RETVAL -eq 0 ] && success $"$prog startup" || failure $"$prog startup" echo return $RETVAL @@ -57,7 +56,7 @@ stop() { echo -n $"Stopping debuginfofs: " fusermount -u "$BUILDID_MOUNTPOINT" RETVAL=$? - rm -f /var/lock/subsys/$prog + rm -f /var/lock/subsys/debuginfofs [ $RETVAL -eq 0 ] && success $"$prog shutdown" || failure $"$prog shutdown" echo return $RETVAL @@ -77,7 +76,7 @@ case "$1" in RETVAL=$? ;; condrestart) - if [ -f /var/lock/subsys/$prog ]; then + if [ -f /var/lock/subsys/debuginfofs ]; then stop start RETVAL=$? diff --git a/debuginfofs.spec b/debuginfofs.spec index b737cbf..e7087c4 100644 --- a/debuginfofs.spec +++ b/debuginfofs.spec @@ -49,6 +49,8 @@ install -m 0644 debuginfofs.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/debuginfofs mkdir -p $RPM_BUILD_ROOT{/etc/httpd/conf.d,/usr/sbin} mkdir -p $RPM_BUILD_ROOT/var/{www,cache}/debuginfofs install -m 0755 debuginfofs-mirror $RPM_BUILD_ROOT/usr/sbin +#uncomment when this is ready +#install -m 0755 repofs.py $RPM_BUILD_ROOT/usr/sbin install -m 0644 debuginfofs.conf $RPM_BUILD_ROOT/etc install -m 0644 dav-debuginfo.conf $RPM_BUILD_ROOT/etc/httpd/conf.d @@ -79,12 +81,13 @@ fi #%{python_sitelib}/* %files server +%defattr(-,root,root,-) %doc README TODO %dir /var/www/debuginfofs %dir /var/cache/debuginfofs %config(noreplace) /etc/debuginfofs.conf /usr/sbin/debuginfofs-mirror -/etc/httpd/conf.d/dav-debuginfo.conf +%config /etc/httpd/conf.d/dav-debuginfo.conf %changelog * Mon Feb 23 2009 Will Woods <wwoods@redhat.com> - 0.1-1 |