]> git.pld-linux.org Git - packages/dnrd.git/commitdiff
- new
authorzbyniu <zbyniu@pld-linux.org>
Tue, 20 Dec 2005 00:12:14 +0000 (00:12 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dnrd.spec -> 1.1

dnrd.spec [new file with mode: 0644]

diff --git a/dnrd.spec b/dnrd.spec
new file mode 100644 (file)
index 0000000..494a85b
--- /dev/null
+++ b/dnrd.spec
@@ -0,0 +1,63 @@
+#
+# TODO:
+# - .init
+#
+Summary:       Domain Name Relay Daemon
+Summary(pl):   -
+Name:          dnrd
+Version:       2.20.1
+Release:       0.1
+License:       GPL v2
+Group:         Applications
+Source0:       http://dl.sourceforge.net/dnrd/%{name}-%{version}.tar.gz
+# Source0-md5: cbd3657617ecb92e0fd19c5c9f1ccfd7
+URL:           http://dnrd.sourceforge.net/
+#BuildRequires:        rpmbuild(macros) >= 1.228
+#Requires(post,preun): /sbin/chkconfig
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Domain Name Relay Daemon is a caching, forwarding DNS proxy server.
+Most useful on vpn or dialup firewalls but it is also a nice DNS cache
+for minor networks and workstations.
+
+%description -l pl
+
+%prep
+%setup -q
+
+%build
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
+> $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/master
+> $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/blacklist
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+/sbin/chkconfig --add %{name}
+%service %{name} restart
+
+%preun
+if [ "$1" = "0" ]; then
+       %service -q %{name} stop
+       /sbin/chkconfig --del %{name}
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog README doc/README-cache doc/README-master doc/master.sample
+%{_mandir}/man8/*
+%attr(755,root,root) %{_sbindir}/%{name}
+%dir %{_sysconfdir}/%{name}
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*
+#%%attr(754,root,root) /etc/rc.d/init.d/%{name}
+#%%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
This page took 0.063376 seconds and 4 git commands to generate.