auto-import changelog data from openslp-1.0.11-0.fdr.6.rh80.src.rpm
1.0.11-0.fdr.6 - -server: Requires(preun,postun): /sbin/service - add a few more %doc files to base pkg. - initscript: add (real) 'reload' action. - initscript: use $prog instead of hardcoded slpd. 1.0.11-0.fdr.5 - -server: fix %postun on uninstall 1.0.11-0.fdr.4 - *really* do %config(noreplace) slp.conf 1.0.11-0.fdr.3 - capitalize Summary's. - %config(noreplace) slp.conf 1.0.11-0.fdr.2 - docs: remove CVS files, include rfc, move ProgrammersGuide to -devel. - improve sub-pkg descriptions. - improve server %preun,%postun scripts: condrestart on upgrade, suppress output of server shutdown,restarts. 1.0.11-0.fdr.1 - specfile cleanups for fedora packaging. 1.0.11-0.fdr.0 - 1.0.11 release. - fedorize things 1.0.10-1.0 - sanitize specfile - -devel,-server subpkgs.
This commit is contained in:
parent
9c96bb50d6
commit
4f57eb9581
@ -0,0 +1 @@
|
||||
openslp-1.0.11.tar.gz
|
86
openslp.init
Executable file
86
openslp.init
Executable file
@ -0,0 +1,86 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# $Id: openslp.init,v 1.2 2003/05/30 12:59:30 rexdieter Exp $
|
||||
#
|
||||
# chkconfig: 345 40 60
|
||||
# description: OpenSLP daemon for the Service Location Protocol
|
||||
# processname: slpd
|
||||
|
||||
# Source function library.
|
||||
. /etc/rc.d/init.d/functions
|
||||
|
||||
# Source networking configuration.
|
||||
. /etc/sysconfig/network
|
||||
|
||||
if [ -f /etc/sysconfig/slpd ]; then
|
||||
. /etc/sysconfig/slpd
|
||||
fi
|
||||
|
||||
# Check that networking is up.
|
||||
[ ${NETWORKING} = "no" ] && exit 0
|
||||
|
||||
RETVAL=0
|
||||
|
||||
prog="slpd"
|
||||
|
||||
start () {
|
||||
echo -n $"Starting $prog: "
|
||||
daemon $prog
|
||||
RETVAL=$?
|
||||
echo
|
||||
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
|
||||
return $RETVAL
|
||||
}
|
||||
|
||||
stop () {
|
||||
echo -n $"Stopping $prog: "
|
||||
killproc $prog
|
||||
RETVAL=$?
|
||||
echo
|
||||
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
|
||||
return $RETVAL
|
||||
}
|
||||
|
||||
reload(){
|
||||
echo -n $"Reloading configuration: "
|
||||
killproc $prog -HUP
|
||||
RETVAL=$?
|
||||
echo
|
||||
return $RETVAL
|
||||
}
|
||||
|
||||
restart () {
|
||||
stop
|
||||
start
|
||||
}
|
||||
|
||||
condrestart(){
|
||||
[ -e /var/lock/subsys/$prog ] && restart
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
start
|
||||
;;
|
||||
stop)
|
||||
stop
|
||||
;;
|
||||
reload)
|
||||
reload
|
||||
;;
|
||||
restart)
|
||||
restart
|
||||
;;
|
||||
condrestart)
|
||||
condrestart
|
||||
;;
|
||||
status)
|
||||
status $prog
|
||||
RETVAL=$?
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit $RETVAL
|
161
openslp.spec
Normal file
161
openslp.spec
Normal file
@ -0,0 +1,161 @@
|
||||
# $Id: openslp.spec,v 1.1 2004/11/08 04:56:10 cvsextras Exp $
|
||||
|
||||
## kde-redhat macros
|
||||
%define rhversion %(perl -pe '/(\\d+)\\.?(\\d)?/; $_="$1".($2||0)' /etc/redhat-release)
|
||||
|
||||
Summary: OpenSLP implementation of Service Location Protocol V2
|
||||
Name: openslp
|
||||
Epoch: 0
|
||||
Version: 1.0.11
|
||||
Release: 0.fdr.6.rh%{rhversion}
|
||||
Group: System Environment/Libraries
|
||||
License: Caldera Systems (BSD)
|
||||
URL: http://www.openslp.org/
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||
|
||||
Source0: ftp://openslp.org/pub/openslp/%{name}-%{version}/%{name}-%{version}.tar.gz
|
||||
Source1: %{name}.init
|
||||
|
||||
%description
|
||||
Service Location Protocol is an IETF standards track protocol that
|
||||
provides a framework to allow networking applications to discover the
|
||||
existence, location, and configuration of networked services in
|
||||
enterprise networks.
|
||||
|
||||
OpenSLP is an open source implementation of the SLPv2 protocol as defined
|
||||
by RFC 2608 and RFC 2614. This package include the daemon, libraries, header
|
||||
files and documentation
|
||||
|
||||
%package devel
|
||||
Summary: OpenSLP headers and libraries
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{epoch}:%{version}-%{release}
|
||||
%description devel
|
||||
OpenSLP header files and libraries.
|
||||
|
||||
$Revision: 1.1 $
|
||||
|
||||
%package server
|
||||
Summary: OpenSLP server daemon
|
||||
Group: System Environment/Daemons
|
||||
Requires: %{name} = %{epoch}:%{version}-%{release}
|
||||
Requires(preun,post): chkconfig
|
||||
Requires(preun,postun): /sbin/service
|
||||
%description server
|
||||
OpenSLP server daemon to dynamically register services.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
# remove CVS leftovers...
|
||||
find . -name "CVS" | xargs rm -rf
|
||||
|
||||
# remove hard-coded compiler flags: -O3 -Wall
|
||||
perl -pi -e "s@-O3@@g" configure
|
||||
perl -pi -e "s@-Wall@@g" configure
|
||||
|
||||
|
||||
%build
|
||||
|
||||
%configure \
|
||||
--disable-static
|
||||
# --enable-slpv2-security
|
||||
# --enable-async-api
|
||||
|
||||
make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%makeinstall
|
||||
|
||||
install -D -m755 %{SOURCE1} \
|
||||
$RPM_BUILD_ROOT%{_initrddir}/slpd
|
||||
|
||||
# nuke unpackaged/unwanted files
|
||||
rm -rf $RPM_BUILD_ROOT/usr/doc
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%post server
|
||||
/sbin/chkconfig --add slpd
|
||||
|
||||
%preun server
|
||||
if [ "$1" == "0" ]; then
|
||||
/sbin/service slpd stop >/dev/null 2>&1 ||:
|
||||
/sbin/chkconfig --del slpd
|
||||
fi
|
||||
|
||||
%postun server
|
||||
if [ "$1" -ge "1" ]; then
|
||||
/sbin/service slpd condrestart >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc AUTHORS COPYING FAQ NEWS README THANKS
|
||||
%doc doc/html/IntroductionToSLP
|
||||
%doc doc/html/UsersGuide
|
||||
%doc doc/html/faq*
|
||||
%config(noreplace) %{_sysconfdir}/slp.conf
|
||||
%{_bindir}/*
|
||||
%{_libdir}/lib*.so.*
|
||||
|
||||
%files server
|
||||
%defattr(-,root,root)
|
||||
%{_sbindir}/*
|
||||
%config(noreplace) %{_sysconfdir}/slp.reg
|
||||
%config(noreplace) %{_sysconfdir}/slp.spi
|
||||
%config(noreplace) %{_initrddir}/slpd
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%doc doc/html/ProgrammersGuide
|
||||
%doc doc/rfc
|
||||
%{_includedir}/*
|
||||
%{_libdir}/lib*.so
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri May 30 2003 Rex Dieter <rexdieter at users.sf.net> 0:1.0.11-0.fdr.6
|
||||
- -server: Requires(preun,postun): /sbin/service
|
||||
- add a few more %%doc files to base pkg.
|
||||
- initscript: add (real) 'reload' action.
|
||||
- initscript: use $prog instead of hardcoded slpd.
|
||||
|
||||
* Fri May 16 2003 Rex Dieter <rexdieter at users.sf.net> 0:1.0.11-0.fdr.5
|
||||
- -server: fix %postun on uninstall
|
||||
|
||||
* Thu May 2 2003 Rex Dieter <rexdieter at users.sf.net> 0:1.0.11-0.fdr.4
|
||||
- *really* do %%config(noreplace) slp.conf
|
||||
|
||||
* Thu May 1 2003 Rex Dieter <rexdieter at users.sf.net> 0:1.0.11-0.fdr.3
|
||||
- capitalize Summary's.
|
||||
- %%config(noreplace) slp.conf
|
||||
|
||||
* Thu May 1 2003 Rex Dieter <rexdieter at users.sf.net> 0:1.0.11-0.fdr.2
|
||||
- docs: remove CVS files, include rfc, move ProgrammersGuide to -devel.
|
||||
- improve sub-pkg descriptions.
|
||||
- improve server %%preun,%%postun scripts: condrestart on upgrade,
|
||||
suppress output of server shutdown,restarts.
|
||||
|
||||
* Thu May 1 2003 Rex Dieter <rexdieter at users.sf.net> 0:1.0.11-0.fdr.1
|
||||
- specfile cleanups for fedora packaging.
|
||||
|
||||
* Tue Apr 29 2003 Rex Dieter <rexdieter at users.sf.net> 0:1.0.11-0.fdr.0
|
||||
- 1.0.11 release.
|
||||
- fedorize things
|
||||
|
||||
* Mon Feb 03 2003 Rex Dieter <rexdieter at users.sf.net> 0:1.0.10-1.0
|
||||
- sanitize specfile
|
||||
- -devel,-server subpkgs.
|
Loading…
Reference in New Issue
Block a user