rpms/ssbd/F-9 ssbd.init, NONE, 1.1 ssbd.spec, NONE, 1.1 ssbd.sysconfig, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Lucian Langa
lucilanga at fedoraproject.org
Sun Dec 7 15:41:42 UTC 2008
- Previous message (by thread): rpms/ssbd/F-10 ssbd.init, NONE, 1.1 ssbd.spec, NONE, 1.1 ssbd.sysconfig, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/veusz/F-8 sources,1.5,1.6 veusz.spec,1.15,1.16
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: lucilanga
Update of /cvs/pkgs/rpms/ssbd/F-9
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv23464
Modified Files:
.cvsignore sources
Added Files:
ssbd.init ssbd.spec ssbd.sysconfig
Log Message:
initial import
--- NEW FILE ssbd.init ---
#!/bin/bash
#
# ssbd.init for version 0.10. starts or stops ssbd.
# This file should be placed in /etc/rc.d/init.d/
#
# chkconfig: - 60 50
# description: sbd is a daemon for SSB voice keying and audio recording for Tucnak
# processname: ssbd
# config: /etc/sysconf/ssbd
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0
[ -x /usr/sbin/ssbd ] || exit 0
# Source cwdaemon configuration.
[ -r /etc/sysconfig/ssbd ] && . /etc/sysconfig/ssbd
RETVAL=0
prog="ssbd"
start() {
# Start daemons.
echo -n $"Starting $prog: "
daemon /usr/sbin/ssbd $OPTS
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/ssbd
echo
return $RETVAL
}
stop() {
# Stop daemons.
echo -n $"Shutting down $prog: "
killproc $prog
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/ssbd
return $RETVAL
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
stop
start
RETVAL=$?
;;
condrestart)
if [ -f /var/lock/subsys/ssbd ]; then
stop
start
RETVAL=$?
fi
;;
status)
status $prog
RETVAL=$?
;;
*)
echo $"Usage: $0 {start|stop|restart|condrestart|status}"
exit 1
esac
exit $RETVAL
--- NEW FILE ssbd.spec ---
Name: ssbd
Version: 0.10
Release: 3%{?dist}
Summary: Voice keyer for use in hamradio
Group: Applications/Communications
License: GPL+
URL: http://tucnak.nagano.cz/ssbd0en.html
Source0: http://tucnak.nagano.cz/%{name}-%{version}.tar.gz
Source1: ssbd.sysconfig
Source2: ssbd.init
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: glib-devel
BuildRequires: libsndfile-devel
Requires (preun): chkconfig
Requires (preun): initscripts
Requires (post): chkconfig
Requires(postun): initscripts
#Requires:
%description
Ssbd (Single-Side Band daemon) is voice keyer for hamradio use.
It's written as part of Tucnak, contest log for VHF contests,
but is possible to use ssbd with any other program.
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
#prevent this to be packed twice
rm -rf $RPM_BUILD_ROOT/%{_docdir}/%{name}/*
mkdir -p %{buildroot}%{_sysconfdir}
mkdir -p %{buildroot}%{_sysconfdir}/{sysconfig,rc.d/init.d}
install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/ssbd
install -m 755 %{SOURCE2} %{buildroot}%{_sysconfdir}/rc.d/init.d/ssbd
%clean
rm -rf $RPM_BUILD_ROOT
%post
/sbin/chkconfig --add ssbd
%preun
if [ $1 = 0 ]; then
/sbin/service ssbd stop > /dev/null 2>&1
/sbin/chkconfig --del ssbd
fi
%postun
if [ "$1" -ge "1" ] ; then
/sbin/service ssbd condrestart >/dev/null 2>&1 || :
fi
%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING README TODO
%doc doc/ssbd.html
%doc doc/ssbd0cz.html
%doc doc/ssbd0en.html
%doc doc/ssbd.gif
%doc doc/ssbd.ps doc/ssbd.sch
%{_sysconfdir}/rc.d/init.d/ssbd
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%{_sbindir}/%{name}
%changelog
* Fri Nov 21 2008 Lucian Langa <cooly at gnome.eu.org> - 0.10-3
- update license
* Fri Nov 21 2008 Lucian Langa <cooly at gnome.eu.org> - 0.10-2
- update BR for scriptlets
- description fix
* Tue Sep 02 2008 Lucian Langa <cooly at gnome.eu.org> - 0.10-1
- initial specfile
--- NEW FILE ssbd.sysconfig ---
# specify command line arguments for ssbd
#
# -p Specifies udp port
# Default: 7890
#
OPTS="-p 7890"
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/ssbd/F-9/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 4 Dec 2008 00:59:24 -0000 1.1
+++ .cvsignore 7 Dec 2008 15:41:11 -0000 1.2
@@ -0,0 +1 @@
+ssbd-0.10.tar.gz
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/ssbd/F-9/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 4 Dec 2008 00:59:24 -0000 1.1
+++ sources 7 Dec 2008 15:41:11 -0000 1.2
@@ -0,0 +1 @@
+330c8c0a85f71fc531402a44206d8d4d ssbd-0.10.tar.gz
- Previous message (by thread): rpms/ssbd/F-10 ssbd.init, NONE, 1.1 ssbd.spec, NONE, 1.1 ssbd.sysconfig, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/veusz/F-8 sources,1.5,1.6 veusz.spec,1.15,1.16
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list