SPECS: mydns.spec (NEW) - raw from Darek Moszkowicz

qboosh qboosh at pld-linux.org
Sat Apr 28 10:47:56 CEST 2007


Author: qboosh                       Date: Sat Apr 28 08:47:56 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- raw from Darek Moszkowicz

---- Files affected:
SPECS:
   mydns.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/mydns.spec
diff -u /dev/null SPECS/mydns.spec:1.1
--- /dev/null	Sat Apr 28 10:47:56 2007
+++ SPECS/mydns.spec	Sat Apr 28 10:47:51 2007
@@ -0,0 +1,109 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_with	mysql		# enable MySQL support
+%bcond_with	pgsql		# enable PostgreSQL support
+%bcond_with	ssl		# enable TLS/SSL support
+#
+Summary:	MyDNS is a free Database Driven Nameserver
+Summary(pl):	MyDNS to darmowy serwer nazw wykorzystuj±cy relacyjne bazy danych
+Name:		mydns
+Version:	1.1.0
+Release:	1
+License:	GPL v2
+Group:		Networking/Daemons
+Source0:	http://mydns.bboy.net/download/%{name}-%{version}.tar.gz
+Source1:	%{name}.conf
+Source2:	%{name}.init
+Source3:	%{name}.sysconfig
+Patch0:		%{name}-configure.patch
+URL:		http://mydns.bboy.net/
+BuildRequires:	autoconf >= 2.59
+BuildRequires:	automake >= 1.96
+BuildRequires:	awk
+%{?with_mysql:BuildRequires:		mysql-devel}
+%{?with_ssl:BuildRequires:	openssl-devel >= 0.9.7i}
+%{?with_pgsql:BuildRequires:		postgresql-devel}
+BuildRequires:	rpmbuild(macros) >= 1.310
+BuildRequires:	texinfo
+BuildRequires:	zlib-devel
+Requires(post,preun):	/sbin/chkconfig
+Requires:	rc-scripts
+Provides:	nameserver
+Obsoletes:	mydns
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+MyDNS is a free DNS server implemented from scratch and is designed to
+serve records directly from an SQL database, either MySQL or
+PostgreSQL.
+
+%description -l pl
+MyDNS to darmowy serwer nazw zimplementowany od podstaw i
+zaprojektowany aby udostêpniaæ rekordy bezpo¶rednio z bazy SQL,
+obecnie MySQL lub PostgreSQL.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+
+%configure \
+	--disable-nls \
+	--with-confdir=%{_sysconfdir}/%{name} \
+	--with%{?with_mysql:out}-pgsql \
+	--with%{?with_pgsql:out}-mysql \
+	--with%{!?with_ssl:out}-openssl
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_initrddir},%{_sysconfdir}/%{name},/etc/sysconfig}
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+rm -rf $RPM_BUILD_ROOT%{_infodir}/dir*
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/%{name}.conf
+install %{SOURCE2} $RPM_BUILD_ROOT%{_initrddir}/%{name}
+install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/mydns
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+/sbin/chkconfig --add %{name}
+%service %{name} restart
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+
+%preun
+if [ "$1" = "0" ]; then
+	%service -q %{name} stop
+	/sbin/chkconfig --del %{name}
+fi
+
+%postun
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog AUTHORS BUGS README README.mysql INSTALL NEWS TODO QUICKSTART.*
+%attr(754,root,root) %{_initrddir}/%{name}
+%dir %{_sysconfdir}/%{name}
+%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mydns
+%attr(755,root,root) %{_sbindir}/*
+%attr(755,root,root) %{_bindir}/*
+%{_infodir}/*.info*
+%{_mandir}/man*/**
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2007/04/28 08:47:51  qboosh
+- raw from Darek Moszkowicz
================================================================


More information about the pld-cvs-commit mailing list