mirror of
				https://github.com/bklang/ldap2dns.git
				synced 2025-10-30 23:53:12 -04:00 
			
		
		
		
	git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@218 06cd67b6-e706-0410-b29e-9de616bca6e9
		
			
				
	
	
		
			83 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			RPMSpec
		
	
	
	
	
	
			
		
		
	
	
			83 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			RPMSpec
		
	
	
	
	
	
| #
 | |
| # spec file for package ldap2dns
 | |
| #
 | |
| # Copyright (c) 2005 Ben Klang, Alkaloid Networks
 | |
| # This file and all modifications and additions to the pristine
 | |
| # package are under the same license as the package itself.
 | |
| #
 | |
| # Please submit bugfixes or comments via http://projects.alkaloid.net
 | |
| #
 | |
| # $Id$
 | |
| #
 | |
| 
 | |
| # norootforbuild
 | |
| # neededforbuild  %OPENLDAPPKG%-devel
 | |
| BuildRequires: %OPENLDAPPKG%-devel
 | |
| 
 | |
| Summary:	LDAP to DNS gateway
 | |
| Packager:	Ben Klang <ben@alkaloid.net>
 | |
| Vendor:		Alkaloid Networks
 | |
| Name:		ldap2dns
 | |
| Version:	%VERSION%
 | |
| Release:	%RELEASE%
 | |
| License:	GPL
 | |
| Group:		%RPMGROUP%
 | |
| Source:		ldap2dns-%{version}.tar.gz
 | |
| BuildRoot:	%{_tmppath}/%{name}-%{version}-build
 | |
| Autoreqprov:	 on
 | |
| 
 | |
| %description
 | |
| ldap2dns is a program to create DNS records directly from an LDAP database. It
 | |
| can be be used to replace the secondary name-server by a second primary one.
 | |
| ldap2dns helps to reduce all kind of administration overhead. No more flat file
 | |
| editing, no more zone file editing. After having installed ldap2dns, the
 | |
| administrator only has to access the LDAP database.
 | |
| If he desires he can add access control for each zone, create a webbased GUI
 | |
| and add all other kind of zone and resource record information without
 | |
| interfering with the DNS server.
 | |
| 
 | |
| ldap2dns is designed to write the text data files used by tinydns, but also
 | |
| may be used to write zone files used by Bind.
 | |
| 
 | |
| %debug_package
 | |
| %prep
 | |
| %setup
 | |
| 
 | |
| %build
 | |
| make VERSION=%{version} RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
 | |
| 
 | |
| %install
 | |
| [ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}
 | |
| make INSTALL_PREFIX=$RPM_BUILD_ROOT install
 | |
| 
 | |
| %clean
 | |
| [ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}
 | |
| 
 | |
| %files
 | |
| %defattr(-,root,root)
 | |
| /usr/bin/ldap2dns
 | |
| /usr/bin/ldap2dnsd
 | |
| /usr/bin/ldap2tinydns-conf
 | |
| %doc doc/README.html 
 | |
| %doc doc/example.ldif
 | |
| %doc scripts/axfr2ldap.pl
 | |
| %doc scripts/data2ldap.pl
 | |
| %config /etc/openldap/schema/ldap2dns.schema
 | |
| 
 | |
| %pre
 | |
| /usr/sbin/groupadd -g 161 -r ldap2dns >/dev/null 2>/dev/null || :
 | |
| /usr/sbin/groupadd -g 162 -r l2dnslog >/dev/null 2>/dev/null || :
 | |
| /usr/sbin/useradd -r -o -g ldap2dns -u 161 -c "LDAP2DNS Daemon" \
 | |
|                   -s /bin/false -d /nonexistant ldap2dns 2> /dev/null || :
 | |
| 
 | |
| /usr/sbin/useradd -r -o -g l2dnslog -u 162 -c "LDAP2DNS Logging Daemon" \
 | |
|                   -s /bin/false -d /nonexistant l2dnslog 2> /dev/null || :
 | |
| 
 | |
| %changelog
 | |
| * Wed Dec 07 2005 Ben Klang <ben@alkaloid.net>
 | |
| - Added user and group creation
 | |
| * Sun Dec 04 2005 Ben Klang <ben@alkaloid.net>
 | |
| - Updated Specfile to version 0.3.6
 | |
| * Wed Dec 06 2000 Jacob Rief <jacob.rief@tiscover.com>
 | |
| - initial revision for version 0.2.0
 |