rpms/cwdaemon/F-8 cwdaemon.init, NONE, 1.1 cwdaemon.spec, NONE, 1.1 cwdaemon.sysconfig, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Lucian Langa
lucilanga at fedoraproject.org
Sun Aug 24 14:16:50 UTC 2008
- Previous message (by thread): rpms/cwdaemon/F-9 cwdaemon.init, NONE, 1.1 cwdaemon.spec, NONE, 1.1 cwdaemon.sysconfig, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/greylistd/F-8 .cvsignore, 1.2, 1.3 greylistd.spec, 1.1, 1.2 sources, 1.2, 1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: lucilanga
Update of /cvs/pkgs/rpms/cwdaemon/F-8
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv5996
Modified Files:
.cvsignore sources
Added Files:
cwdaemon.init cwdaemon.spec cwdaemon.sysconfig
Log Message:
initial import
--- NEW FILE cwdaemon.init ---
#!/bin/bash
#
# cwdaemon.init for version 0.9.4. starts or stops cwdaemon.
# This file should be placed in /etc/rc.d/init.d/
#
# chkconfig: - 60 50
# description: Cwdaemon is a small daemon which uses the pc parallel or serial port
# and a simple transistor switch to output morse code to a transmitter
# from a text message sent to it via the udp internet protocol.
# processname: cwdaemon
# config: /etc/sysconf/cwdaemon
# 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/cwdaemon ] || exit 0
# Source cwdaemon configuration.
[ -r /etc/sysconfig/cwdaemon ] && . /etc/sysconfig/cwdaemon
RETVAL=0
prog="cwdaemon"
# Exit if it says no start
grep -q '^START_CWDAEMON=yes' /etc/sysconfig/$NAME || exit 0
start() {
# Start daemons.
echo -n $"Starting $prog: "
daemon /usr/sbin/cwdaemon $OPTS
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/cwdaemon
echo
return $RETVAL
}
stop() {
# Stop daemons.
echo -n $"Shutting down $prog: "
killproc $prog
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/cwdaemon
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/cwdaemon ]; then
stop
start
RETVAL=$?
fi
;;
status)
status $prog
RETVAL=$?
;;
*)
echo $"Usage: $0 {start|stop|restart|condrestart|status}"
exit 1
esac
exit $RETVAL
--- NEW FILE cwdaemon.spec ---
Name: cwdaemon
Version: 0.9.4
Release: 8%{?dist}
Summary: Morse daemon for the parallel or serial port
Group: System Environment/Daemons
License: GPLv2+
URL: http://www.qsl.net/pg4i/linux/%{name}.html
Source0: http://www.qsl.net/pg4i/download/%{name}-%{version}.tar.gz
Source1: cwdaemon.sysconfig
Source2: cwdaemon.init
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: unixcw-devel pkgconfig
Requires (preun): chkconfig
Requires (preun): initscripts
Requires (post): chkconfig
Requires(postun): initscripts
%description
Cwdaemon is a small daemon which uses the pc parallel or serial port
and a simple transistor switch to output morse code to a transmitter
from a text message sent to it via the udp internet protocol.
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
#remove the test.c we don't know why it is here, if we figure it out we will fix it
rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/cwtest.*
#prevent this files to be packed twice
rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/*_circuit.*
rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/cwdaemon.png
rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/cwsetup.sh
rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/README
sed -i -e "s/schematics directory/documentation directory/g" %{_builddir}/%{name}-%{version}/README
mkdir -p %{buildroot}%{_sysconfdir}
mkdir -p %{buildroot}%{_sysconfdir}/{sysconfig,rc.d/init.d}
install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/cwdaemon
install -m 755 %{SOURCE2} %{buildroot}%{_sysconfdir}/rc.d/init.d/cwdaemon
%clean
rm -rf $RPM_BUILD_ROOT
%post
/sbin/chkconfig --add cwdaemon
%preun
if [ $1 = 0 ]; then
/sbin/service cwdaemon stop > /dev/null 2>&1
/sbin/chkconfig --del cwdaemon
fi
%postun
if [ "$1" -ge "1" ] ; then
/sbin/service cwdaemon condrestart >/dev/null 2>&1 || :
fi
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING README TODO cwdaemon.png schematics/parallelport_circuit.ps schematics/serialport_circuit.ps schematics/parallelport_circuit.jpg schematics/serialport_circuit.jpg cwsetup.sh
%{_sbindir}/%{name}
%{_sysconfdir}/rc.d/init.d/cwdaemon
%config(noreplace) %{_sysconfdir}/sysconfig/cwdaemon
%{_mandir}/man8/%{name}.8.gz
%changelog
* Wed Aug 20 2008 Lucian Langa <cooly at gnome.eu.org> - 0.9.4-8
- added postun scriptlet
* Sun Aug 10 2008 Lucian Langa <cooly at gnome.eu.org> - 0.9.4-7
- Add sysinit script and default configuration file
- Misc cleanups
* Mon Feb 18 2008 Robert 'Bob' Jensen <bob at bobjensen.com> 0.9.4-6
- fix manpage macro
- remove -devel package section and files including test.c
* Mon Feb 18 2008 Robert 'Bob' Jensen <bob at bobjensen.com> 0.9.4-5
- remove symlink from files section
* Mon Feb 18 2008 Robert 'Bob' Jensen <bob at bobjensen.com> 0.9.4-4
- Fix a few things from initial review
- Use sbin macro
- add simlink for second README location
* Sat Feb 16 2008 Robert 'Bob' Jensen <bob at bobjensen.com> 0.9.4-3
- Submit for review
* Mon Nov 19 2007 Sindre Pedersen Bjørdal <foolish at guezz.net> 0.9.4-2
- Update License tag
- Add missing doc files
- Don't package README twice
- Fix permissions for scripts
* Sun Apr 29 2007 Robert 'Bob' Jensen <bob at bobjensen.com> 0.9.4-0
- Initial spec file
--- NEW FILE cwdaemon.sysconfig ---
# specify command line arguments for cwdaemon
#
# -d Specifies device without /dev/ e.g. ttyS0, ttyS1, ttyUSB0, ttyd0 (FreeBSD), parport0,
# parport1, ... or null for no port keying.
# Default: parport0 with ppdev driver
#
# -p Specifies udp port
# Defualt: 6789
#
# -P Specifies priority -20 to +20
#
# -s Specifies CW speed in WPM
# Default: 24
#
# -t Specifies PTT delay
# Default: 0
#
# -v Specifies volume for soundcard: 0 to 100
# Default: 70
#
# -w Specifies weight -50 to 50
# Default: 0
#
# -c Spefifies sound device: c - console, s - soundcard, b - both
# Default: c
#example:
#OPTS="-d parport0 -p 6789 -P 0 -s 24 -t 0 -v 70 -w 0 -x c"
OPTS="-d parport"
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/cwdaemon/F-8/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 23 Aug 2008 18:03:24 -0000 1.1
+++ .cvsignore 24 Aug 2008 14:16:20 -0000 1.2
@@ -0,0 +1 @@
+cwdaemon-0.9.4.tar.gz
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/cwdaemon/F-8/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 23 Aug 2008 18:03:24 -0000 1.1
+++ sources 24 Aug 2008 14:16:20 -0000 1.2
@@ -0,0 +1 @@
+7c5d819588f823cdeca94f38d015c8b4 cwdaemon-0.9.4.tar.gz
- Previous message (by thread): rpms/cwdaemon/F-9 cwdaemon.init, NONE, 1.1 cwdaemon.spec, NONE, 1.1 cwdaemon.sysconfig, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/greylistd/F-8 .cvsignore, 1.2, 1.3 greylistd.spec, 1.1, 1.2 sources, 1.2, 1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list