blob: af8fd379ea2dd28bdaca9994c34bebd2246f570b (
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
|
EBUILDS=app-emacs/muse/muse-3.01.package \
app-emacs/muse/muse-3.01.91.package \
app-emacs/muse/muse-3.01.99.package \
app-emacs/delicious/delicious-20050830.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.1.package \
app-office/ledger/ledger-2.3.package \
dev-lang/R/R-2.999.package \
dev-python/python-fuse/python-fuse-2.3.package \
net-news/nntprss/nntprss-0.5.1_beta.package \
net-www/webapp-config/webapp-config-1.20.package \
sys-libs/pam_exim/pam_exim-0.77-r1.package \
www-apps/aeromail/aeromail-2.41.package \
www-apps/claroline/claroline-1.6.2.package \
www-apps/hypermail/hypermail-2.2.0.package \
www-apps/knowledgetree/knowledgetree-2.0.7.package \
www-apps/phpicalendar/phpicalendar-2.0b.package \
www-apps/postfixadmin/postfixadmin-2.1.0.package \
www-apps/pyblosxom/pyblosxom-1.2.1.package \
www-apps/pyblosxom-plugins/pyblosxom-plugins-1.2.1.package \
www-apps/outreach/outreach-1.2.6.package \
www-apps/web-cyradm/web-cyradm-0.5.4.1.package \
sci-biology/ensembl-perl/ensembl-perl-31.package \
sci-biology/repbase/repbase-10.04.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 server "cd usr/devel/ebuilds && svn update && make && svn commit -m \"Fixed digests\""
.PHONY: all update fix eclass
|