blob: df8d8fc1024fe36d96d32f61ceb0c5f5ebbf465f (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# sync this with Rpmdrake/init.pm:
VERSION = 3.82
NAME = rpmdrake
DIRS = grpmi po data
PREFIX = /usr/local
DATADIR = $(PREFIX)/share
BINDIR = $(PREFIX)/bin
SBINDIR = $(PREFIX)/sbin
RELATIVE_SBIN = ../sbin
RPM=$(shell rpm --eval %_topdir)
PERL_VENDORLIB=$(DESTDIR)/$(shell perl -V:installvendorlib | perl -pi -e "s/.*=//; s/[;']//g")
PERL_VENDORARCH=$(DESTDIR)/$(shell perl -V:installvendorarch | perl -pi -e "s/.*=//; s/[;']//g")
all: dirs
dirs:
@for n in . $(DIRS); do \
[ "$$n" = "." ] || make -C $$n || exit 1 ;\
done
install: $(ALL)
@for n in $(DIRS); do \
(cd $$n; $(MAKE) install) \
done
install -d $(SBINDIR)
install rpmdrake park-rpmdrake MandrivaUpdate edit-urpm-sources.pl gurpmi.addmedia $(SBINDIR)
ln -sf rpmdrake $(SBINDIR)/rpmdrake-remove
install -d $(BINDIR)
ln -sf $(RELATIVE_SBIN)/rpmdrake $(BINDIR)/rpmdrake
ln -sf $(RELATIVE_SBIN)/rpmdrake-remove $(BINDIR)/rpmdrake-remove
ln -sf $(RELATIVE_SBIN)/MandrivaUpdate $(BINDIR)/MandrivaUpdate
ln -sf $(RELATIVE_SBIN)/edit-urpm-sources.pl $(BINDIR)/edit-urpm-sources.pl
ln -sf edit-urpm-sources.pl $(SBINDIR)/drakrpm-edit-media
ln -sf $(RELATIVE_SBIN)/drakrpm-edit-media $(BINDIR)/drakrpm-edit-media
ln -sf $(RELATIVE_SBIN)/gurpmi.addmedia $(BINDIR)/gurpmi.addmedia
ln -sf $(RELATIVE_SBIN)/rpmdrake $(BINDIR)/drakrpm
ln -sf $(RELATIVE_SBIN)/rpmdrake-remove $(BINDIR)/drakrpm-remove
ln -sf $(RELATIVE_SBIN)/MandrivaUpdate $(SBINDIR)/drakrpm-update
ln -sf $(RELATIVE_SBIN)/drakrpm-update $(BINDIR)/drakrpm-update
install -d $(DATADIR)/rpmdrake/icons
install -m644 icons/*.png $(DATADIR)/rpmdrake/icons
install -m644 compssUsers.flat.default $(DATADIR)/rpmdrake
mkdir -p $(PERL_VENDORLIB)/Rpmdrake
install -m 644 rpmdrake.pm $(PERL_VENDORLIB)
install -m 644 Rpmdrake/*.pm $(PERL_VENDORLIB)/Rpmdrake
perl -pi -e "s/version = 1/version=$(VERSION)/" $(PERL_VENDORLIB)/Rpmdrake/init.pm
clean:
@for n in $(DIRS); do \
(cd $$n; make clean) \
done
tar:
mkdir ../t; \
cd ../t; \
cp -a ../rpmdrake .; \
mv rpmdrake rpmdrake-$(VERSION); \
find -name ".svn" | xargs rm -rf; \
tar jcvf ../rpmdrake-$(VERSION).tar.bz2 rpmdrake-$(VERSION); \
cd ..; \
rm -rf t
dis: clean
rm -rf $(NAME)-$(VERSION) ../$(NAME)-$(VERSION).tar*
svn export -q -rBASE . $(NAME)-$(VERSION)
find $(NAME)-$(VERSION) -name .cvsignore |xargs rm -rf
tar cf ../$(NAME)-$(VERSION).tar $(NAME)-$(VERSION)
bzip2 -9f ../$(NAME)-$(VERSION).tar
rm -rf $(NAME)-$(VERSION)
.PHONY: ChangeLog log changelog
log: ChangeLog
changelog: ChangeLog
ChangeLog:
svn2cl --accum --authors ../../soft/common/username.xml
rm -f *.bak
|