Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:ngncc
mydns-ng
mydns-ng.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mydns-ng.spec of Package mydns-ng
# # spec file for package mydns-ng # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define home /var/lib/mydns %define pkg mydns # Name: mydns-ng Version: 1.2.8.31 Release: 0 # # BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: libmysqlclient-devel BuildRequires: libtool BuildRequires: openssl-devel BuildRequires: postgresql-devel BuildRequires: pwdutils BuildRequires: zlib-devel %if 0%{suse_version} > 1220 BuildRequires: makeinfo %else BuildRequires: texinfo %endif PreReq: %insserv_prereq %fillup_prereq %install_info_prereq update-alternatives pwdutils Requires: mydns-ng_binary-%{version}-%{release} # Url: http://mydns-ng.com/ Source0: %{pkg}-%{version}.tar.bz2 Source1: %{pkg}.init Patch: mydns-1.0.0_libsearchpaths.patch # Summary: A secure sql based dns server (common files) License: GPL-2.0+ Group: Productivity/Networking/DNS/Servers %description MyDNS is a free DNS server for UNIX. It was implemented from scratch and is designed to serve records directly from an SQL database (currently either MySQL or PostgreSQL). This is a newer version of mydns, named mydns next generation. Its primary objectives are stability, security, interoperability, and speed, though not necessarily in that order. MyDNS does not include recursive name service, nor a resolver library. It is primarily designed for organizations with many zones and/or resource records who desire the ability to perform real-time dynamic updates on their DNS data via MySQL. MyDNS starts and is ready to answer questions immediately, no matter how much DNS data you have in the database. It is very fast and memory-efficient. It includes complete documentation, including a manual and a FAQ. MyDNS supports a few frills, including round robin DNS, dynamic load balancing, and outgoing AXFR for non-MyDNS nameservers. MyDNS is licensed under the GNU General Public License. This package holds the common files. %package mysql PreReq: mydns-ng = %{version}-%{release} Provides: mydns-ng_binary-%{version}-%{release} # Summary: A secure sql based dns server (mysql version) Group: Productivity/Networking/DNS/Servers %description mysql MyDNS is a free DNS server for UNIX. It was implemented from scratch and is designed to serve records directly from an SQL database (currently either MySQL or PostgreSQL). This is a newer version of mydns, named mydns next generation. Its primary objectives are stability, security, interoperability, and speed, though not necessarily in that order. MyDNS does not include recursive name service, nor a resolver library. It is primarily designed for organizations with many zones and/or resource records who desire the ability to perform real-time dynamic updates on their DNS data via MySQL. MyDNS starts and is ready to answer questions immediately, no matter how much DNS data you have in the database. It is very fast and memory-efficient. It includes complete documentation, including a manual and a FAQ. MyDNS supports a few frills, including round robin DNS, dynamic load balancing, and outgoing AXFR for non-MyDNS nameservers. MyDNS is licensed under the GNU General Public License. This package holds the mysql version. %package postgresql PreReq: mydns-ng = %{version}-%{release} Provides: mydns-ng_binary-%{version}-%{release} # Summary: A secure sql based dns server (postgresql version) Group: Productivity/Networking/DNS/Servers %description postgresql MyDNS is a free DNS server for UNIX. It was implemented from scratch and is designed to serve records directly from an SQL database (currently either MySQL or PostgreSQL). This is a newer version of mydns, named mydns next generation. Its primary objectives are stability, security, interoperability, and speed, though not necessarily in that order. MyDNS does not include recursive name service, nor a resolver library. It is primarily designed for organizations with many zones and/or resource records who desire the ability to perform real-time dynamic updates on their DNS data via MySQL. MyDNS starts and is ready to answer questions immediately, no matter how much DNS data you have in the database. It is very fast and memory-efficient. It includes complete documentation, including a manual and a FAQ. MyDNS supports a few frills, including round robin DNS, dynamic load balancing, and outgoing AXFR for non-MyDNS nameservers. MyDNS is licensed under the GNU General Public License. This package holds the postgresql version. %prep %setup -n %{pkg}-%{version} %patch %build autoreconf -fi export COMMON_OPTION="-bindir=%{_sbindir} --with-openssl --with-openssl-lib=%{_libdir} --enable-status" # --program-suffix="-pgsql" \ ##### Mysql version... %configure \ $COMMON_OPTION \ --with-mysql-lib=%{_libdir}/mysql \ --with-mysql --without-pgsql \ --enable-alias \ --program-suffix="-mysql" %{__make} SED=%{__sed} %{__make} install DESTDIR=`pwd`/local-install make distclean ##### Postgresql version... %configure \ $COMMON_OPTION \ --without-mysql \ --with-pgsql \ --with-pgsql-include=/usr/include/pgsql \ --enable-alias \ --program-suffix="-pgsql" %{__make} clean %{__make} SED=%{__sed} %{__make} install DESTDIR=`pwd`/local-install %install %{__install} -Dd -m 755 \ %{buildroot}%{_sysconfdir}/init.d \ %{buildroot}%{_defaultdocdir}/%{name}/contrib \ %{buildroot}%{home} cp -a local-install/* %{buildroot} %find_lang %{pkg} # %{__make} SED=%{__sed} localconf \ | sed -e 's|nobody|%{pkg}|g' \ > %{buildroot}%{_sysconfdir}/%{pkg}.conf %{__install} -m 644 \ ABOUT-NLS AUTHORS BUGS ChangeLog COPYING INSTALL NEWS \ QUICKSTART.mysql QUICKSTART.postgres README TODO \ contrib/{admin.php,MyDNS.pm,README.alias,stats.php} \ %{buildroot}%{_defaultdocdir}/%{name}/ %{__install} -m 644 contrib/README \ %{buildroot}%{_defaultdocdir}/%{name}/README.contrib %{__install} -m 755 %{S:1} \ %{buildroot}%{_sysconfdir}/init.d/%{name} ln -sf %{_sysconfdir}/init.d/%{name} %{buildroot}%{_sbindir}/rc%{name} # This block of touching is required for SLE rpm building... touch %{buildroot}%{_sbindir}/mydns touch %{buildroot}%{_sbindir}/mydns-conf touch %{buildroot}%{_sbindir}/mydnscheck touch %{buildroot}%{_sbindir}/mydnsexport touch %{buildroot}%{_sbindir}/mydnsimport touch %{buildroot}%{_sbindir}/mydnsptrconvert touch %{buildroot}%{_mandir}/man5/mydns.conf.5.gz touch %{buildroot}%{_mandir}/man8/mydns-conf.8.gz touch %{buildroot}%{_mandir}/man8/mydns.8.gz touch %{buildroot}%{_mandir}/man8/mydnscheck.8.gz touch %{buildroot}%{_mandir}/man8/mydnsexport.8.gz touch %{buildroot}%{_mandir}/man8/mydnsimport.8.gz touch %{buildroot}%{_mandir}/man8/mydnsptrconvert.8.gz %clean %{__rm} -rf %{buildroot}; %post mysql %{_sbindir}/update-alternatives --install %{_sbindir}/mydns %{name} %{_sbindir}/mydns-mysql 1 \ --slave %{_sbindir}/mydns-conf mydns-conf %{_sbindir}/mydns-conf-mysql \ --slave %{_sbindir}/mydnscheck mydnscheck %{_sbindir}/mydnscheck-mysql \ --slave %{_sbindir}/mydnsexport mydnsexport %{_sbindir}/mydnsexport-mysql \ --slave %{_sbindir}/mydnsimport mydnsimport %{_sbindir}/mydnsimport-mysql \ --slave %{_sbindir}/mydnsptrconvert mydnsptrconvert %{_sbindir}/mydnsptrconvert-mysql \ --slave %{_mandir}/man5/mydns.conf.5.gz mydns.conf.5.gz %{_mandir}/man5/mydns.conf-mysql.5.gz \ --slave %{_mandir}/man8/mydns-conf.8.gz mydns-conf.8.gz %{_mandir}/man8/mydns-conf-mysql.8.gz \ --slave %{_mandir}/man8/mydns.8.gz mydns.8.gz %{_mandir}/man8/mydns-mysql.8.gz \ --slave %{_mandir}/man8/mydnscheck.8.gz mydnscheck.8.gz %{_mandir}/man8/mydnscheck-mysql.8.gz \ --slave %{_mandir}/man8/mydnsexport.8.gz mydnsexport.8.gz %{_mandir}/man8/mydnsexport-mysql.8.gz \ --slave %{_mandir}/man8/mydnsimport.8.gz mydnsimport.8.gz %{_mandir}/man8/mydnsimport-mysql.8.gz \ --slave %{_mandir}/man8/mydnsptrconvert.8.gz mydnsptrconvert.8.gz %{_mandir}/man8/mydnsptrconvert-mysql.8.gz %post postgresql %{_sbindir}/update-alternatives --install %{_sbindir}/mydns %{name} %{_sbindir}/mydns-pgsql 1 \ --slave %{_sbindir}/mydns-conf mydns-conf %{_sbindir}/mydns-conf-pgsql \ --slave %{_sbindir}/mydnscheck mydnscheck %{_sbindir}/mydnscheck-pgsql \ --slave %{_sbindir}/mydnsexport mydnsexport %{_sbindir}/mydnsexport-pgsql \ --slave %{_sbindir}/mydnsimport mydnsimport %{_sbindir}/mydnsimport-pgsql \ --slave %{_sbindir}/mydnsptrconvert mydnsptrconvert %{_sbindir}/mydnsptrconvert-pgsql \ --slave %{_mandir}/man5/mydns.conf.5.gz mydns.conf.5.gz %{_mandir}/man5/mydns.conf-pgsql.5.gz \ --slave %{_mandir}/man8/mydns-conf.8.gz mydns-conf.8.gz %{_mandir}/man8/mydns-conf-pgsql.8.gz \ --slave %{_mandir}/man8/mydns.8.gz mydns.8.gz %{_mandir}/man8/mydns-pgsql.8.gz \ --slave %{_mandir}/man8/mydnscheck.8.gz mydnscheck.8.gz %{_mandir}/man8/mydnscheck-pgsql.8.gz \ --slave %{_mandir}/man8/mydnsexport.8.gz mydnsexport.8.gz %{_mandir}/man8/mydnsexport-pgsql.8.gz \ --slave %{_mandir}/man8/mydnsimport.8.gz mydnsimport.8.gz %{_mandir}/man8/mydnsimport-pgsql.8.gz \ --slave %{_mandir}/man8/mydnsptrconvert.8.gz mydnsptrconvert.8.gz %{_mandir}/man8/mydnsptrconvert-pgsql.8.gz %pre /usr/sbin/groupadd -r %{pkg} &>/dev/null || : /usr/sbin/useradd -o -g %{pkg} -s /bin/false -r -c "user for %{pkg}" -d %{home} %{pkg} &>/dev/null || : %post %install_info --info-dir=%{_infodir} %{_infodir}/%{pkg}.gz %fillup_and_insserv %{name} %preun %stop_on_removal %{name} %preun mysql if [ "$1" = 0 ] ; then %{_sbindir}/update-alternatives --remove %{name} %{_sbindir}/mydns-mysql fi %preun postgresql if [ "$1" = 0 ] ; then %{_sbindir}/update-alternatives --remove %{name} %{_sbindir}/mydns-pgsql fi %postun %install_info_delete --info-dir=%{_infodir} %{_infodir}/%{pkg}.info.gz %restart_on_update %{name} %{insserv_cleanup} %files -f %{pkg}.lang %defattr(-,root,root) %{_sbindir}/rc%{name}* %{_infodir}/%{pkg}.info* %config(noreplace) %attr(640,root,%{pkg}) %{_sysconfdir}/%{pkg}.conf %{_sysconfdir}/init.d/%{name} %doc %{_docdir}/%{name} %dir %attr(750,root,%{pkg}) %{home} %files mysql %defattr(-,root,root) %ghost %attr(755, root, root) %{_sbindir}/mydns %ghost %attr(755, root, root) %{_sbindir}/mydns-conf %ghost %attr(755, root, root) %{_sbindir}/mydnscheck %ghost %attr(755, root, root) %{_sbindir}/mydnsexport %ghost %attr(755, root, root) %{_sbindir}/mydnsimport %ghost %attr(755, root, root) %{_sbindir}/mydnsptrconvert %ghost %attr(644, root, root) %{_mandir}/man5/mydns.conf.5.gz %ghost %attr(644, root, root) %{_mandir}/man8/mydns-conf.8.gz %ghost %attr(644, root, root) %{_mandir}/man8/mydns.8.gz %ghost %attr(644, root, root) %{_mandir}/man8/mydnscheck.8.gz %ghost %attr(644, root, root) %{_mandir}/man8/mydnsexport.8.gz %ghost %attr(644, root, root) %{_mandir}/man8/mydnsimport.8.gz %ghost %attr(644, root, root) %{_mandir}/man8/mydnsptrconvert.8.gz %{_sbindir}/*-mysql %{_mandir}/man?/%{pkg}*mysql* %files postgresql %defattr(-,root,root) %ghost %attr(755, root, root) %{_sbindir}/mydns %ghost %attr(755, root, root) %{_sbindir}/mydns-conf %ghost %attr(755, root, root) %{_sbindir}/mydnscheck %ghost %attr(755, root, root) %{_sbindir}/mydnsexport %ghost %attr(755, root, root) %{_sbindir}/mydnsimport %ghost %attr(755, root, root) %{_sbindir}/mydnsptrconvert %ghost %attr(644, root, root) %{_mandir}/man5/mydns.conf.5.gz %ghost %attr(644, root, root) %{_mandir}/man8/mydns-conf.8.gz %ghost %attr(644, root, root) %{_mandir}/man8/mydns.8.gz %ghost %attr(644, root, root) %{_mandir}/man8/mydnscheck.8.gz %ghost %attr(644, root, root) %{_mandir}/man8/mydnsexport.8.gz %ghost %attr(644, root, root) %{_mandir}/man8/mydnsimport.8.gz %ghost %attr(644, root, root) %{_mandir}/man8/mydnsptrconvert.8.gz %{_sbindir}/*-pgsql %{_mandir}/man?/%{pkg}*pgsql* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor