summaryrefslogtreecommitdiff
blob: 32cc45a38c080299f001c9049c63cd2888ade894 (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
EBUILDS=app-admin/webapp-config/webapp-config-1.50.4.package \
        app-backup/sarab/sarab-0.2.2-r1.package \
        app-emacs/muse/muse-3.02.02.package \
	app-emacs/muse/muse-3.02.5.package \
        app-emacs/delicious/delicious-20051023.package \
        app-emacs/else-mode/else-mode-1.20.package \
        app-emacs/smtpmail/smtpmail-1.77.package \
        app-emacs/planner/planner-3.99.package \
        app-emacs/rnc-mode/rnc-mode-1.0.3_beta.package \
        app-emacs/ssh-login/ssh-login-1.9.package \
        app-misc/scripts-gw/scripts-gw-1.2.4.package \
        app-office/ledger/ledger-2.4.package \
        app-office/libgeier/libgeier-0.3.package \
        app-office/taxbird/taxbird-0.4.package \
        dev-java/jdbm/jdbm-1.0.package \
        dev-lang/R/R-2.999.package \
	dev-python/python-fuse/python-fuse-2.3.package \
        net-fs/flickrfs/flickrfs-1.1.9.package \
        net-news/nntprss/nntprss-0.5.2_beta.package \
	net-zope/zpkg/zpkg-1.0.0.package \
	net-zope/contentprovider/contentprovider-20051102.package \
	net-zope/viewlet/viewlet-20051102.package \
	sys-libs/pam_exim/pam_exim-0.77-r1.package \
        www-apps/aeromail/aeromail-2.41.package \
        www-apps/pyblosxom-plugins/pyblosxom-plugins-1.2.1.package \
	www-apps/zina/zina-0.11.20.package \
	sci-biology/ensembl-perl/ensembl-perl-33.package \
	sci-biology/repbase/repbase-10.07.package \
	sci-biology/autoprime/autoprime-2.0.1.package 

EBUILD_REPOSITORY=/usr/portage/local/ebuilds/
TAR=tar cvfj 
TAREX=--exclude="CVS" --exclude=".svn" --exclude=*~
RSYNCEX=--exclude="Makefile" --exclude="local" --exclude="dist"
DOWNLOAD_DIR=/var/www/www.gunnarwrobel.de/htdocs/downloads/

DEREF=--dereference
SEDNAME=sed -e 's/.*\///'
SEDDIR=sed -e 's/[^\/]*$$//'
SEDEBUILD=sed -e 's/.*\/\(.*\).package/\1/'

all:  update distfiles $(EBUILDS) eclass fix

%.package: %.ebuild
	mkdir -p `echo $@ | $(SEDDIR)`
	rsync -avz --delete-after `echo $@ | $(SEDDIR)` $(EBUILD_REPOSITORY)/`echo $@ | $(SEDDIR)`  $(TAREX)
	cd $(EBUILD_REPOSITORY)/`echo $@ | $(SEDDIR)`;ebuild `echo $@ | $(SEDEBUILD)`.ebuild digest;
	rsync -avz $(EBUILD_REPOSITORY)/`echo $@ | $(SEDDIR)` `echo $@ | $(SEDDIR)` $(TAREX)
	$(TAR) dist/`echo $@ | $(SEDNAME)`.tar.bz2 `echo $@ | $(SEDDIR)` $(TAREX) $(DEREF)
	cp dist/`echo $@ | $(SEDNAME)`.tar.bz2 $(DOWNLOAD_DIR)
	for fl in `find $(DOWNLOAD_DIR) -type f`; do chmod 644 "$$fl"; done

eclass:
	rsync -avz --delete-after eclass/ $(EBUILD_REPOSITORY)/eclass/  $(TAREX)

distfiles:
	cd local/z-distfiles && make

update: 
	svn update

fix:
	for fl in `find $(EBUILD_REPOSITORY) -type d`; do chmod 755 "$$fl"; done
	for fl in `find $(EBUILD_REPOSITORY) -type f`; do if [ -x "$${fl}" ]; then chmod 755 "$$fl"; else chmod 644 "$$fl"; fi; done

remote:
	ssh pardus.de "cd usr/devel/ebuilds && svn update && make && svn commit -m \"Fixed digests\""

.PHONY: all update fix eclass