| 
									
										
										
										
											2005-12-05 03:19:12 +00:00
										 |  |  | #
 | 
					
						
							|  |  |  | # 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
 | 
					
						
							|  |  |  | #
 | 
					
						
							| 
									
										
										
										
											2005-12-08 20:39:34 +00:00
										 |  |  | # $Id$
 | 
					
						
							| 
									
										
										
										
											2005-12-08 20:35:34 +00:00
										 |  |  | #
 | 
					
						
							| 
									
										
										
										
											2005-12-05 03:19:12 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | # norootforbuild
 | 
					
						
							| 
									
										
										
										
											2005-12-05 03:32:56 +00:00
										 |  |  | # neededforbuild  %OPENLDAPPKG%-devel
 | 
					
						
							|  |  |  | BuildRequires: %OPENLDAPPKG%-devel
 | 
					
						
							| 
									
										
										
										
											2005-12-05 03:19:12 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | Summary:	LDAP to DNS gateway
 | 
					
						
							|  |  |  | Packager:	Ben Klang <ben@alkaloid.net>
 | 
					
						
							|  |  |  | Vendor:		Alkaloid Networks
 | 
					
						
							| 
									
										
										
										
											2005-12-22 20:46:51 +00:00
										 |  |  | Name:		ldap2dns
 | 
					
						
							| 
									
										
										
										
											2005-12-05 03:19:12 +00:00
										 |  |  | Version:	%VERSION%
 | 
					
						
							|  |  |  | Release:	%RELEASE%
 | 
					
						
							|  |  |  | License:	GPL
 | 
					
						
							|  |  |  | Group:		%RPMGROUP%
 | 
					
						
							|  |  |  | Source:		ldap2dns-%{version}.tar.gz
 | 
					
						
							|  |  |  | BuildRoot:	%{_tmppath}/%{name}-%{version}-build
 | 
					
						
							| 
									
										
										
										
											2005-12-05 03:32:56 +00:00
										 |  |  | Autoreqprov:	 on
 | 
					
						
							| 
									
										
										
										
											2005-12-02 04:09:15 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %description
 | 
					
						
							| 
									
										
										
										
											2006-10-19 18:36:25 +00:00
										 |  |  | ldap2dns is a program to read DNS (Domain Name Service) records from an LDAP
 | 
					
						
							|  |  |  | directory and format them into flat files suitable for TinyDNS (or Bind).
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ldap2dns reduces all kind of administration overhead: No more flat file editing,
 | 
					
						
							|  |  |  | no more zone file editing. After having installed ldap2dns, the administrator
 | 
					
						
							|  |  |  | only has to modify the data stored in the LDAP directory.
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Optionally access control can be configured for each zone, GUIs can be more
 | 
					
						
							|  |  |  | easily implemented, and add all other kind of zone and resource record
 | 
					
						
							|  |  |  | information can be managed without interfering with the DNS server.
 | 
					
						
							| 
									
										
										
										
											2005-12-02 04:09:15 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-06-17 19:57:07 +00:00
										 |  |  | # RedHat defaults to building the debug_package while SuSE does not
 | 
					
						
							| 
									
										
										
										
											2006-06-17 20:00:24 +00:00
										 |  |  | # If we detect SuSE then build the debug_package
 | 
					
						
							|  |  |  | %if 0%{?suse_version}
 | 
					
						
							| 
									
										
										
										
											2005-12-06 22:47:52 +00:00
										 |  |  | %debug_package
 | 
					
						
							| 
									
										
										
										
											2006-06-17 19:57:07 +00:00
										 |  |  | %endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-12-02 04:09:15 +00:00
										 |  |  | %prep
 | 
					
						
							| 
									
										
										
										
											2005-12-02 04:17:15 +00:00
										 |  |  | %setup
 | 
					
						
							| 
									
										
										
										
											2005-12-02 04:09:15 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %build
 | 
					
						
							| 
									
										
										
										
											2005-12-02 04:17:15 +00:00
										 |  |  | make VERSION=%{version} RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
 | 
					
						
							| 
									
										
										
										
											2005-12-02 04:09:15 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %install
 | 
					
						
							|  |  |  | [ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}
 | 
					
						
							| 
									
										
										
										
											2005-12-02 04:17:15 +00:00
										 |  |  | make INSTALL_PREFIX=$RPM_BUILD_ROOT install
 | 
					
						
							| 
									
										
										
										
											2005-12-02 04:09:15 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %clean
 | 
					
						
							|  |  |  | [ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %files
 | 
					
						
							|  |  |  | %defattr(-,root,root)
 | 
					
						
							|  |  |  | /usr/bin/ldap2dns
 | 
					
						
							|  |  |  | /usr/bin/ldap2dnsd
 | 
					
						
							|  |  |  | /usr/bin/ldap2tinydns-conf
 | 
					
						
							| 
									
										
										
										
											2005-12-05 03:19:12 +00:00
										 |  |  | %doc doc/README.html 
 | 
					
						
							|  |  |  | %doc doc/example.ldif
 | 
					
						
							| 
									
										
										
										
											2005-12-08 19:08:05 +00:00
										 |  |  | %doc scripts/axfr2ldap.pl
 | 
					
						
							| 
									
										
										
										
											2006-06-13 16:51:59 +00:00
										 |  |  | %doc scripts/data2ldif.pl
 | 
					
						
							| 
									
										
										
										
											2005-12-05 02:39:30 +00:00
										 |  |  | %config /etc/openldap/schema/ldap2dns.schema
 | 
					
						
							| 
									
										
										
										
											2008-01-21 20:39:55 +00:00
										 |  |  | %MANDIR%/man1/ldap2dns.1.gz
 | 
					
						
							| 
									
										
										
										
											2005-12-02 04:09:15 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-12-08 00:03:54 +00:00
										 |  |  | %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 || :
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-12-02 04:09:15 +00:00
										 |  |  | %changelog
 | 
					
						
							| 
									
										
										
										
											2005-12-08 00:03:54 +00:00
										 |  |  | * Wed Dec 07 2005 Ben Klang <ben@alkaloid.net>
 | 
					
						
							|  |  |  | - Added user and group creation
 | 
					
						
							| 
									
										
										
										
											2005-12-05 02:39:30 +00:00
										 |  |  | * Sun Dec 04 2005 Ben Klang <ben@alkaloid.net>
 | 
					
						
							|  |  |  | - Updated Specfile to version 0.3.6
 | 
					
						
							| 
									
										
										
										
											2005-12-02 04:09:15 +00:00
										 |  |  | * Wed Dec 06 2000 Jacob Rief <jacob.rief@tiscover.com>
 | 
					
						
							|  |  |  | - initial revision for version 0.2.0
 |