mirror of
https://github.com/bklang/ldap2dns.git
synced 2025-10-27 14:24:15 -04:00
* Renamed Specfile to ldap2dns.spec.in
* Updated make to build RPMs for SuSE and RedHat * Updated ldap2dns.spec.in * Added INSTALL file git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@126 06cd67b6-e706-0410-b29e-9de616bca6e9
This commit is contained in:
@@ -6,7 +6,7 @@ Version ?.?.? (next)
|
||||
Version 0.3.6 (latest)
|
||||
+ Fixed bug with duplicate OIDs in dns.schema from partially applied patch
|
||||
+ Renamed schema file to ldap2dns.schema
|
||||
+ Updated RPM specfile (UNTESTED, may need editing)
|
||||
+ Updated RPM specfile
|
||||
+ Removed already merged patchfiles
|
||||
+ Restructured file layout, created doc directory
|
||||
+ Deprecated unfinished webadmin work. Will be replaced with Beatnik
|
||||
|
||||
22
INSTALL
Normal file
22
INSTALL
Normal file
@@ -0,0 +1,22 @@
|
||||
Make sure you have the OpenLDAP version 2 include files installed.
|
||||
|
||||
For Red Hat, this would be the openldap-devel package
|
||||
for SuSE, this would be the openldap2-devel package
|
||||
|
||||
Type "make" in the current directory. If all goes well follow up with a
|
||||
"make install"
|
||||
|
||||
To create an RPM, use one of the following commands:
|
||||
|
||||
sudo make DISTRIBUTION=redhat rpm
|
||||
sudo make DISTRIBUTION=suse rpm
|
||||
|
||||
if you are running Red Hat or SuSE respectively.
|
||||
|
||||
For updates and changes see http://projects.alkaloid.net
|
||||
|
||||
Please send any problem or success reports to the maintainer.
|
||||
|
||||
--
|
||||
Ben Klang <ben@alkaloid.net>
|
||||
Alkaloid Networks
|
||||
27
Makefile
27
Makefile
@@ -13,6 +13,19 @@ LDAPCONFDIR=$(INSTALL_PREFIX)/etc/openldap
|
||||
SPECFILE=ldap2dns.spec
|
||||
DISTRIBUTION=redhat
|
||||
|
||||
ifeq "$(DISTRIBUTION)" "redhat"
|
||||
RPMBASE=/usr/src/redhat
|
||||
RPMGROUP=Daemons/DNS
|
||||
OPENLDAPPKG=openldap
|
||||
endif
|
||||
|
||||
ifeq "$(DISTRIBUTION)" "suse"
|
||||
RPMBASE=/usr/src/packages
|
||||
RPMGROUP=Productivity/Networking/DNS/Servers
|
||||
OPENLDAPPKG=openldap2
|
||||
endif
|
||||
|
||||
|
||||
all: ldap2dns ldap2dnsd
|
||||
|
||||
debug: ldap2dns-dbg
|
||||
@@ -51,21 +64,11 @@ tar: clean
|
||||
cd ldap2dns
|
||||
|
||||
rpm: tar
|
||||
ifeq "$(DISTRIBUTION)" "redhat"
|
||||
RPMBASE=/usr/src/redhat
|
||||
RPMGROUP=Daemons/DNS
|
||||
endif
|
||||
|
||||
ifeq "$(DISTRIBUTION)" "suse"
|
||||
RPMBASE=/usr/src/packages
|
||||
RPMGROUP=Productivity/Networking/DNS/Servers
|
||||
endif
|
||||
|
||||
|
||||
sed -e 's#%VERSION%#$(VERSION)#g' \
|
||||
-e 's#%RELEASE%#$(RELEASE)#g' \
|
||||
-e 's#%RPMGROUP%#$(RPMGROUP)#g' \
|
||||
-e 's#%OPENLDAPPKG%#$(OPENLDAPPKG)#g' \
|
||||
< $(SPECFILE).in > $(SPECFILE)
|
||||
|
||||
mv ../ldap2dns-$(VERSION).tar.gz $(RPMBASE)
|
||||
mv ../ldap2dns-$(VERSION).tar.gz $(RPMBASE)/SOURCES
|
||||
rpmbuild -ba $(SPECFILE)
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
# neededforbuild openldap-devel
|
||||
BuildRequires: openldap-devel
|
||||
# neededforbuild %OPENLDAPPKG%-devel
|
||||
BuildRequires: %OPENLDAPPKG%-devel
|
||||
|
||||
Summary: LDAP to DNS gateway
|
||||
Packager: Ben Klang <ben@alkaloid.net>
|
||||
@@ -22,6 +22,7 @@ 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
|
||||
@@ -36,6 +37,7 @@ 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.
|
||||
|
||||
%debugpackage
|
||||
%prep
|
||||
%setup
|
||||
|
||||
@@ -64,4 +66,3 @@ make INSTALL_PREFIX=$RPM_BUILD_ROOT install
|
||||
- Updated Specfile to version 0.3.6
|
||||
* Wed Dec 06 2000 Jacob Rief <jacob.rief@tiscover.com>
|
||||
- initial revision for version 0.2.0
|
||||
|
||||
Reference in New Issue
Block a user