summaryrefslogtreecommitdiff
path: root/Makefile
blob: c998557479321373dd62e1d8361ace7681441516 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
ifeq "x$(KOLABRPMSRC)" "x"
  KOLABRPMSRC = /kolab/RPM/SRC
endif

PACKAGE=perl-kolab
VERSION=0.9.2
PERLVERSION=5.8.7
RELEASE=2.0_20051219

SRCDIR=$(KOLABRPMSRC)/$(PACKAGE)
RPM = /kolab/bin/openpkg rpm


all:
	test -d $(SRCDIR) || mkdir $(SRCDIR)
	tar cvzf $(SRCDIR)/Kolab-$(VERSION).tar.gz Kolab 
	tar cvzf $(SRCDIR)/Kolab-Util-$(VERSION).tar.gz Kolab-Util
	tar cvzf $(SRCDIR)/Kolab-Conf-$(VERSION).tar.gz Kolab-Conf 
	tar cvzf $(SRCDIR)/Kolab-Cyrus-$(VERSION).tar.gz Kolab-Cyrus
	tar cvzf $(SRCDIR)/Kolab-DirServ-$(VERSION).tar.gz Kolab-DirServ
	tar cvzf $(SRCDIR)/Kolab-LDAP-$(VERSION).tar.gz Kolab-LDAP
	tar cvzf $(SRCDIR)/Kolab-LDAP-Backend-$(VERSION).tar.gz Kolab-LDAP-Backend 
	tar cvzf $(SRCDIR)/Kolab-LDAP-Backend-ad-$(VERSION).tar.gz Kolab-LDAP-Backend-ad
	tar cvzf $(SRCDIR)/Kolab-LDAP-Backend-dirservd-$(VERSION).tar.gz Kolab-LDAP-Backend-dirservd
	tar cvzf $(SRCDIR)/Kolab-LDAP-Backend-slurpd-$(VERSION).tar.gz Kolab-LDAP-Backend-slurpd
	tar cvzf $(SRCDIR)/Kolab-Mailer-$(VERSION).tar.gz Kolab-Mailer
	cp perl-kolab.spec $(SRCDIR)
	cd $(SRCDIR) && $(RPM) -ba perl-kolab.spec
binary:
	$(RPM) -bB perl-kolab.spec

dist: all
	cp $(KOLABRPMSRC)/../PKG/$(PACKAGE)-$(PERLVERSION)-$(RELEASE).src.rpm ../stage/