# # Makefile for djbdns Slackware package # Copyright (c) 2003 by Robert Stan # PROGNAME = djbdns VERSION = 1.05 ARCH = i686 BUILD = 2rob SOURCE = http://cr.yp.to/$(PROGNAME)/$(PROGNAME)-$(VERSION).tar.gz DOCS = CHANGES README TINYDNS TODO CUSTNAME = $(PROGNAME) PKGNAME = $(CUSTNAME)-$(VERSION)-$(ARCH)-$(BUILD) MAINTAINER = Robert Stan CFLAGS = "-O2 -pipe -march=$(ARCH) -mtune=pentium4" CXXFLAGS = $(CFLAGS) STRIPLIB = y STRIPBIN = y TMP = /var/tmp PKG = $(TMP)/package-$(PROGNAME)-$(VERSION) build: prep echo "gcc $(CFLAGS)" > $(PROGNAME)-$(VERSION)/conf-cc cd $(PROGNAME)-$(VERSION); \ patch -p1 < ../jumbo-p13.patch; \ patch -p1 < ../djbdns-1.05.errno.patch; \ make package: build mkdir -p $(PKG)/usr/doc/$(PROGNAME)-$(VERSION) $(PKG)/usr/local cd $(PROGNAME)-$(VERSION); \ cp -a $(DOCS) $(PKG)/usr/doc/$(PROGNAME)-$(VERSION); \ echo $(PKG)/usr/local > conf-home; \ rm install instcheck; \ make install instcheck; \ ./install; ./instcheck mkdir -p $(PKG)/etc cp /etc/dnsroots.global $(PKG)/etc/dnsroots.global cat slack-desc > ../$(PKGNAME).txt cat slack-desc > $(PKG)/install/slack-desc STRIPLIB=$(STRIPLIB) STRIPBIN=$(STRIPBIN) ../../preparepkg $(PKG) cd $(PKG) ; makepkg -l y -c n $(PKGNAME).tgz mv $(PKG)/$(PKGNAME).tgz .. include ../../Makefile.global