rpms/maradns/devel maradns.init, NONE, 1.1 maradns.spec, NONE, 1.1 zoneserver.init, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Brandon Holbrook (static)
fedora-extras-commits at redhat.com
Mon Mar 10 03:42:08 UTC 2008
- Previous message (by thread): rpms/perl-JSON/devel .cvsignore, 1.6, 1.7 perl-JSON.spec, 1.7, 1.8 sources, 1.6, 1.7
- Next message (by thread): rpms/xorg-x11-drv-s3virge/devel s3v-pciaccess.patch, NONE, 1.1 xorg-x11-drv-s3virge.spec, 1.16, 1.17
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: static
Update of /cvs/extras/rpms/maradns/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv17963
Modified Files:
.cvsignore sources
Added Files:
maradns.init maradns.spec zoneserver.init
Log Message:
Initial checkin
--- NEW FILE maradns.init ---
#!/bin/bash
# MaraDNS This shell script takes care of starting and stopping MaraDNS
# chkconfig: - 55 45
# description: MaraDNS is secure Domain Name Server (DNS)
# probe: true
# Copyright 2005-2006 Sam Trenholme
# TERMS
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# This software is provided 'as is' with no guarantees of correctness or
# fitness for purpose.
# This is a script which stops and starts the MaraDNS process
# The first line points to bash because I don't have a true Solaris /bin/sh
# to test this against.
# The following is a pointer to the MaraDNS program
if [ -x "/usr/sbin/maradns" ] ; then
MARADNS="/usr/sbin/maradns"
elif [ -x "/usr/sbin/maradns.authonly" ] ; then
MARADNS="/usr/sbin/maradns.authonly"
elif [ -x "/usr/local/sbin/maradns" ] ; then
MARADNS="/usr/local/sbin/maradns"
elif [ -x "/usr/local/sbin/maradns.authonly" ] ; then
MARADNS="/usr/local/sbin/maradns.authonly"
else
echo unable to find maradns
exit 1
fi
# The following is a pointer to the duende daemonizer
if [ -x "/usr/sbin/duende" ] ; then
DUENDE="/usr/sbin/duende"
elif [ -x "/usr/local/sbin/duende" ] ; then
DUENDE="/usr/local/sbin/duende"
elif [ -x "/usr/local/bin/duende" ] ; then
DUENDE="/usr/local/bin/duende"
elif [ -x "/usr/bin/duende" ] ; then
DUENDE="/usr/bin/duende"
else
echo unable to find duende
exit 1
fi
# The following is the directory we place MaraDNS log entries in
LOGDIR="/var/log"
# The following is a list of all mararc files which we will load or
# unload;
# Simple case: Only one MaraDNS process, using the /etc/mararc file
MARARCS="/etc/mararc"
# Case two: Three MaraDNS processes, one using /etc/mararc.1, the second one
# using /etc/mararc.2, and the third one using /etc/mararc.3
# (this is not as essential as it was in the 1.0 days; MaraDNS can now bind
# to multiple IPs)
#MARARCS="/etc/mararc.1 /etc/mararc.2 /etc/mararc.3"
# source function library
. /etc/rc.d/init.d/functions
RETVAL=0
start() {
echo -n $"Starting all MaraDNS processes: "
for rcfile in $MARARCS ; do
echo -n $"$rcfile "
# Duende syslogs MaraDNS' output messages and daemonizes MaraDNS
daemon $DUENDE $MARADNS -f $rcfile || RETVAL=$?
done
echo
[ $RETVAL -eq 0 ] && echo `pidof maradns` > /var/run/maradns.pid && touch /var/lock/subsys/maradns
}
stop() {
echo -n $"Stopping MaraDNS: "
killproc maradns
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/maradns
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
stop
start
;;
condrestart)
[ -f /var/lock/subsys/maradns ] && restart
;;
status)
status maradns
RETVAL=$?
;;
*)
echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
exit 1
esac
exit $RETVAL
--- NEW FILE maradns.spec ---
Name: maradns
Version: 1.3.07.08
Release: 1%{?dist}
Summary: Authoritative and recursive DNS server made with security in mind
Source0: http://www.maradns.org/download/1.3/%{version}/%{name}-%{version}.tar.bz2
Source1: maradns.init
Source2: zoneserver.init
Group: System Environment/Daemons
License: BSD
URL: http://www.maradns.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires(pre): shadow-utils
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
Requires(preun): /sbin/service
Requires: initscripts
%description
MaraDNS is a package that implements the Domain Name Service (DNS), an
essential internet service. MaraDNS has the following advantages:
* Secure.
* Supported.
* Easy to use.
* Small.
* Open Source.
%prep
%setup -q
# wrong permissions
chmod 0644 doc/en/man/make.pdf
chmod 0644 doc/en/tutorial/make.index
chmod 0644 doc/en/webpage/make.page
# wrong EOL encoding
pushd doc
sed -i 's/\r//' pt_br/source/compile.ej
sed -i 's/\r//' pt_br/source/authoritative.ej
sed -i 's/\r//' pt_br/source/dangling.ej
sed -i 's/\r//' pt_br/source/zoneserver.ej
sed -i 's/\r//' pt_br/source/csv2.ej
popd
# wrong char encoding
pushd doc/pt_br/source
for file in *; do
iconv -f iso8859-1 -t utf-8 $file > $file.new && mv $file.new $file
done
popd
%build
# We don't use %%configure here because this is a homebrew configure not generated by autoconf
./configure
%{__make} %{?_smp_mflags} FLAGS="%{optflags} -DSELECT_PROBLEM"
%install
%{__rm} -rf %{buildroot}
# create /etc/maradns and /etc/mararc first
%{__install} -d -m 0755 %{buildroot}%{_sysconfdir}/maradns/logger/
%{__install} -D -m 0644 build/rpm.mararc %{buildroot}%{_sysconfdir}/mararc
# sbin files
%{__install} -D -m 0755 server/maradns %{buildroot}%{_sbindir}/maradns
%{__install} -D -m 0755 tcp/zoneserver %{buildroot}%{_sbindir}/zoneserver
# bin files
%{__install} -D -m 0755 tcp/getzone %{buildroot}%{_bindir}/getzone
%{__install} -D -m 0755 tcp/fetchzone %{buildroot}%{_bindir}/fetchzone
%{__install} -D -m 0755 tools/askmara %{buildroot}%{_bindir}/askmara
%{__install} -D -m 0755 tools/duende %{buildroot}%{_bindir}/duende
# man pages
%{__install} -d -m 0755 %{buildroot}%{_mandir}/man{1,5,8}
%{__install} -D -m 0644 -t %{buildroot}%{_mandir}/man1/ \
doc/en/man/askmara.1 \
doc/en/man/getzone.1 \
doc/en/man/fetchzone.1
%{__install} -D -m 0644 -t %{buildroot}%{_mandir}/man5/ \
doc/en/man/csv1.5 \
doc/en/man/csv2.5 \
doc/en/man/csv2_txt.5 \
doc/en/man/mararc.5
%{__install} -D -m 0644 -t %{buildroot}%{_mandir}/man8/ \
doc/en/man/maradns.8 \
doc/en/man/zoneserver.8 \
doc/en/man/duende.8
# init files
%{__install} -D -m 0755 %{SOURCE1} %{buildroot}%{_sysconfdir}/init.d/maradns
%{__install} -D -m 0755 %{SOURCE2} %{buildroot}%{_sysconfdir}/init.d/maradns-zoneserver
%{__rm} CHANGELOG CREDITS FAQ
ln -fs en/changelog.txt CHANGELOG
ln -fs en/credits.txt CREDITS
ln -fs en/faq.txt FAQ
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc CHANGELOG COPYING CREDITS FAQ doc/*
%doc maradns.gpg.key
%config(noreplace) %{_sysconfdir}/mararc
%attr(-,maradns,maradns) %{_sysconfdir}/maradns/
%{_sysconfdir}/init.d/maradns
%{_sysconfdir}/init.d/maradns-zoneserver
%{_bindir}/askmara
%{_bindir}/duende
%{_bindir}/fetchzone
%{_bindir}/getzone
%{_sbindir}/maradns
%{_sbindir}/zoneserver
%{_mandir}/man1/askmara.1*
%{_mandir}/man1/getzone.1*
%{_mandir}/man1/fetchzone.1*
%{_mandir}/man5/csv1.5*
%{_mandir}/man5/csv2.5*
%{_mandir}/man5/csv2_txt.5*
%{_mandir}/man5/mararc.5*
%{_mandir}/man8/maradns.8*
%{_mandir}/man8/zoneserver.8*
%{_mandir}/man8/duende.8*
%pre
if [ $1 -eq 1 ]; then
getent group maradns >/dev/null || groupadd -r maradns
getent passwd maradns >/dev/null || \
useradd -r -g maradns -d /etc/maradns -s /sbin/nologin \
-c "MaraDns chroot user" maradns
exit 0
fi
%post
if [ $1 -eq 1 ]; then
echo maradns_uid=$(id -u maradns) >> %{_sysconfdir}/mararc
echo maradns_gid=$(id -g maradns) >> %{_sysconfdir}/mararc
/sbin/chkconfig --add maradns
/sbin/chkconfig --add maradns-zoneserver
fi
%preun
if [ $1 -eq 0 ]; then
/sbin/service maradns stop &>/dev/null || :
/sbin/chkconfig --del maradns
/sbin/service maradns-zoneserver stop &>/dev/null || :
/sbin/chkconfig --del maradns-zoneserver
fi
%postun
if [ $1 -eq 1 ]; then
/sbin/service maradns condrestart &>/dev/null || :
/sbin/service maradns-zoneserver condrestart &>/dev/null || :
fi
%changelog
* Mon Jan 28 2008 Brandon Holbrook <fedora at theholbrooks.org> - 1.3.07.08-1
- Updated to 1.3.07.08
* Mon Oct 1 2007 Brandon Holbrook <fedora at theholbrooks.org> - 1.2.12.08-1
- Updated to 1.2.12.08
- Converted non-UTF8-encoded files to UTF8
* Thu Aug 23 2007 Brandon Holbrook <fedora at theholbrooks.org> - 1.2.12.07-1
- Updated to 1.2.12.07
- Added a maradns user/group for chroot
* Thu Jun 28 2007 Brandon Holbrook <fedora at theholbrooks.org> - 1.2.12.06-3
- fix some tarball permissions and line endings
- Created new init scripts with more functions
* Sun Jun 24 2007 Brandon Holbrook <fedora at theholbrooks.org> - 1.2.12.06-2
- manually run ./configure and make rather than the included ./compile.sh
to preserve optflags
- Add dependency on chkconfig and initscripts
* Sat Jun 23 2007 Brandon Holbrook <fedora at theholbrooks.org> - 1.2.12.06-1
- Release 1.2.12.06
- Rewritten to call install manually instead of 'make install'
--- NEW FILE zoneserver.init ---
#!/bin/bash
# MaraDNS Zoneserver This shell script takes care of starting and stopping MaraDNS' Zone Server daemon
# chkconfig: - 55 45
# description: MaraDNS Zoneserver is responsible for handling DNS zone transfers as well as any TCP DNS queries
# probe: true
# Copyright 2005-2006 Sam Trenholme
# TERMS
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# This software is provided 'as is' with no guarantees of correctness or
# fitness for purpose.
# This is a script which stops and starts the MaraDNS zoneserver process
# The first line points to bash because I don't have a true Solaris /bin/sh
# to test this against.
# The following is a pointer to the MaraDNS program
if [ -x "/usr/sbin/zoneserver" ] ; then
ZONESERVER="/usr/sbin/zoneserver"
elif [ -x "/usr/local/sbin/zoneserver" ] ; then
ZONESERVER="/usr/local/sbin/zoneserver"
else
echo unable to find zoneserver
exit 1
fi
# The following is a pointer to the duende daemonizer
if [ -x "/usr/sbin/duende" ] ; then
DUENDE="/usr/sbin/duende"
elif [ -x "/usr/local/sbin/duende" ] ; then
DUENDE="/usr/local/sbin/duende"
elif [ -x "/usr/bin/duende" ] ; then
DUENDE="/usr/bin/duende"
elif [ -x "/usr/local/bin/duende" ] ; then
DUENDE="/usr/local/bin/duende"
else
echo unable to find duende
exit 1
fi
# The following is the directory we place MaraDNS log entries in
LOGDIR="/var/log"
# The following is a list of all mararc files which we will load or
# unload;
# Simple case: Only one MaraDNS zoneserver process, using the /etc/mararc file
MARARCS="/etc/mararc"
# Case two: Three MaraDNS processes, one using /etc/mararc.1, the second one
# using /etc/mararc.2, and the third one using /etc/mararc.3
#MARARCS="/etc/mararc.1 /etc/mararc.2 /etc/mararc.3"
# source function library
. /etc/rc.d/init.d/functions
RETVAL=0
start() {
echo -n $"Starting all MaraDNS-Zoneserver processes: "
for rcfile in $MARARCS ; do
echo -n $"$rcfile "
# Duende syslogs MaraDNS' output messages and daemonizes MaraDNS
daemon $DUENDE $ZONESERVER -f $rcfile || RETVAL=$?
done
echo
[ $RETVAL -eq 0 ] && echo `pidof zoneserver` > /var/run/zoneserver.pid && touch /var/lock/subsys/maradns-zoneserver
}
stop() {
echo -n $"Stopping MaraDNS-Zoneserver: "
killproc zoneserver
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/maradns-zoneserver
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
stop
start
;;
condrestart)
[ -f /var/lock/subsys/maradns-zoneserver ] && restart
;;
status)
status zoneserver
RETVAL=$?
;;
*)
echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
exit 1
esac
exit $RETVAL
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/maradns/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 8 Mar 2008 19:33:28 -0000 1.1
+++ .cvsignore 10 Mar 2008 03:41:34 -0000 1.2
@@ -0,0 +1 @@
+maradns-1.3.07.08.tar.bz2
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/maradns/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 8 Mar 2008 19:33:28 -0000 1.1
+++ sources 10 Mar 2008 03:41:34 -0000 1.2
@@ -0,0 +1 @@
+d44d7e1309c7c05654e62b52c6ab6822 maradns-1.3.07.08.tar.bz2
- Previous message (by thread): rpms/perl-JSON/devel .cvsignore, 1.6, 1.7 perl-JSON.spec, 1.7, 1.8 sources, 1.6, 1.7
- Next message (by thread): rpms/xorg-x11-drv-s3virge/devel s3v-pciaccess.patch, NONE, 1.1 xorg-x11-drv-s3virge.spec, 1.16, 1.17
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list