summaryrefslogtreecommitdiff
path: root/abslibre
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2015-05-24 08:19:40 +0100
committerParabola <dev@list.parabolagnulinux.org>2015-05-24 08:19:40 +0100
commit4595d68c985d05340f2e316823a34b759b043e69 (patch)
treeb6982ec252eb828859ed31c83c2f0c7de09b1ce6 /abslibre
parent60c97dd73fa93fffaef35ce169330daf0dbc8ce4 (diff)
abslibre: misc changes, look at the diff
Diffstat (limited to 'abslibre')
-rwxr-xr-xabslibre23
1 files changed, 15 insertions, 8 deletions
diff --git a/abslibre b/abslibre
index a4af041..af57ec2 100755
--- a/abslibre
+++ b/abslibre
@@ -4,10 +4,10 @@ set -e -x
FTP_BASE=/srv/repo/main
ABSLIBRE=/srv/abslibre
-ABSGIT=/srv/git/repositories/abslibre.git
+ABSGIT=/srv/git/abslibre/abslibre.git
# Remote
# ABSGIT=http://projects.parabolagnulinux.org/abslibre.git
-BLACKLIST='https://projects.parabolagnulinux.org/blacklist.git/plain/blacklist.txt'
+BLACKLIST=/home/repo/blacklist/blacklist.txt
SYNCARGS='-mrtv --no-motd --delete-after --no-p --no-o --no-g --quiet'
BLFILE=/tmp/blacklist.txt
@@ -29,11 +29,15 @@ function sync_abs() {
for ARCH in any i686 x86_64; do
rsync ${SYNCARGS} ${SYNCSERVER}::abs/${ARCH}/ ${ABSROOT}/${ARCH} || return $?
done
+
+ # fix some permissions
+ find "${ABSROOT}" -type d -print0 | xargs -0 chmod 755
+ find "${ABSROOT}" -type f -print0 | xargs -0 chmod 644
}
function get_blacklist() {
printf ":: Updating blacklist...\t"
- wget -q -O - "${BLACKLIST}" | cut -d':' -f1 | sort -u | \
+ cat "${BLACKLIST}" | cut -d':' -f1 | sort -u | \
sed "s/^/**\//" > ${BLFILE} || {
printf "[FAILED]\n"
return 1
@@ -68,6 +72,10 @@ function sync_abs_libre() {
return 1
}
+ # fix some permissions
+ find "${ABSLIBRE}" -type d -print0 | xargs -0 chmod 755
+ find "${ABSLIBRE}" -type f -print0 | xargs -0 chmod 644
+
printf "[OK]\n"
}
@@ -104,10 +112,10 @@ create_tarballs() {
# Remove the old one
mkdir -p $FTP_BASE/$baserepo/os/$arch/
- rm $FTP_BASE/$baserepo/os/$arch/$baserepo.abs.tar.gz
+ rm -fv $FTP_BASE/$baserepo/os/$arch/$baserepo.abs.tar.gz
# Create a new one joining arch and any
# Remove the first part of the path (it could be $repo but any isn't hit)
- bsdtar -czvf $FTP_BASE/$baserepo/os/$arch/$baserepo.abs.tar.gz \
+ bsdtar -czf $FTP_BASE/$baserepo/os/$arch/$baserepo.abs.tar.gz \
-s ":${ABSLIBRE}/[a-z0-9_]\+/[a-z]\+::" \
$repo/* ${ABSLIBRE}/any/${baserepo}/*
@@ -117,6 +125,5 @@ create_tarballs() {
sync_abs
get_blacklist
sync_abs_libre
-# This is being done at repo server now
-sync_pre_mips64el
-#create_tarballs
+#sync_pre_mips64el
+create_tarballs