Commit df4af561 authored by AlmAck's avatar AlmAck
Browse files

fix atf.sh script the akabei.conf file with the latest repositories changes

parent 84fddb2d
...@@ -52,14 +52,11 @@ SyncFirst = akabei ...@@ -52,14 +52,11 @@ SyncFirst = akabei
[core] [core]
Server = http://rsync.chakraos.org/packages/core/x86_64 Server = http://rsync.chakraos.org/packages/core/x86_64
[platform]
Server = http://rsync.chakraos.org/packages/platform/x86_64
[desktop] [desktop]
Server = http://rsync.chakraos.org/packages/desktop/x86_64 Server = http://rsync.chakraos.org/packages/desktop/x86_64
#[apps] #[gtk]
#Server = http://rsync.chakraos.org/packages/apps/x86_64 #Server = http://rsync.chakraos.org/packages/gtk/x86_64
#[lib32] #[lib32]
#Server = http://rsync.chakraos.org/packages/lib32/x86_64 #Server = http://rsync.chakraos.org/packages/lib32/x86_64
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
# GPL # GPL
# version # version
VER="0.2" VER="0.3"
# local root name (safe to change) # local root name (safe to change)
BASENAME="buildroot" BASENAME="buildroot"
...@@ -148,7 +148,7 @@ create_pacmanconf() { ...@@ -148,7 +148,7 @@ create_pacmanconf() {
echo >> "${BASEPATH}/${PM_CONF}" echo >> "${BASEPATH}/${PM_CONF}"
local PACREPO local PACREPO
for PACREPO in testing core platform desktop; do for PACREPO in testing core desktop; do
echo "[${PACREPO}]" >> ${BASENAME}/${PM_CONF} echo "[${PACREPO}]" >> ${BASENAME}/${PM_CONF}
echo "Server=${PKGSOURCE}/${PACREPO}/${CARCH}/" >> ${BASENAME}/${PM_CONF} echo "Server=${PKGSOURCE}/${PACREPO}/${CARCH}/" >> ${BASENAME}/${PM_CONF}
echo >> ${BASENAME}/${PM_CONF} echo >> ${BASENAME}/${PM_CONF}
...@@ -432,7 +432,7 @@ create_databasedir() { ...@@ -432,7 +432,7 @@ create_databasedir() {
prepare_akabei_conf() { prepare_akabei_conf() {
title "Preparing akabei.conf ..." title "Preparing akabei.conf ..."
wget -O akabei.conf https://gitorious.org/chakra/akabei/raw/master:scripts/akabei-test-chroot/akabei.conf wget -O akabei.conf http://git.chakraos.org/akabei.git/blob_plain/HEAD:/scripts/akabei-test-chroot/akabei.conf
sed -i "s|YOURPATH|$(pwd)|g" ./akabei.conf sed -i "s|YOURPATH|$(pwd)|g" ./akabei.conf
sudo mv ./akabei.conf /etc/akabei.conf sudo mv ./akabei.conf /etc/akabei.conf
} }
...@@ -440,22 +440,22 @@ prepare_akabei_conf() { ...@@ -440,22 +440,22 @@ prepare_akabei_conf() {
import_signatures() { import_signatures() {
title "Importing Chakra signatures to akabei-keyring ..." title "Importing Chakra signatures to akabei-keyring ..."
newline newline
sudo mkdir ./buildroot/_chroots/master-x64/etc/akabei.d/ sudo mkdir $BASEPATH/_chroots/master-x64/etc/akabei.d/
sudo mkdir ./buildroot/_chroots/master-x64/etc/akabei.d/keyring/ sudo mkdir $BASEPATH/_chroots/master-x64/etc/akabei.d/keyring/
sudo chmod go-r-x buildroot/_chroots/master-x64/etc/akabei.d/keyring/ sudo chmod go-r-x buildroot/_chroots/master-x64/etc/akabei.d/keyring/
sudo gpg --homedir ./buildroot/_chroots/master-x64/etc/akabei.d/keyring/ --trust-model always --import /usr/share/chakra/signatures/*.asc sudo gpg --homedir $BASEPATH/_chroots/master-x64/etc/akabei.d/keyring/ --trust-model always --import /usr/share/chakra/signatures/*.asc
for key in 3DB6614F EBC85A93 26C56140 BF2412F9 02238B03 B6611E8A C51B9BC2 D417608D F906E3F4 4CA5A1FF 82AC496A; do for key in 3DB6614F EBC85A93 26C56140 BF2412F9 02238B03 B6611E8A C51B9BC2 D417608D F906E3F4 4CA5A1FF 82AC496A; do
sudo gpg --homedir ./buildroot/_chroots/master-x64/etc/akabei.d/keyring --recv-keys --keyserver keys.gnupg.net $key sudo gpg --homedir $BASEPATH/_chroots/master-x64/etc/akabei.d/keyring --recv-keys --keyserver keys.gnupg.net $key
printf 'trust\n5\ny\quit\n' | sudo gpg --homedir ../buildroot/_chroots/master-x64/etc/akabei.d/keyring --no-permission-warning --command-fd 0 --edit-key $key printf 'trust\n5\ny\quit\n' | sudo gpg --homedir $BASEPATH/_chroots/master-x64/etc/akabei.d/keyring --no-permission-warning --command-fd 0 --edit-key $key
done done
sudo gpg --homedir ./buildroot/_chroots/master-x64/etc/akabei.d/keyring --list-keys sudo gpg --homedir $BASEPATH/_chroots/master-x64/etc/akabei.d/keyring --list-keys
# show the current imported keys # show the current imported keys
# set one more permission to make polkit work correctly # set one more permission to make polkit work correctly
sudo chown root:root ./buildroot/_chroots/master-x64/etc/akabei.d/ sudo chown root:root $BASEPATH/_chroots/master-x64/etc/akabei.d/
} }
# all done! :) print some information # all done! :) print some information
...@@ -468,8 +468,8 @@ all_done() { ...@@ -468,8 +468,8 @@ all_done() {
newline newline
msg "akabei sync" msg "akabei sync"
newline newline
msg "For forther information follow the wiki:" msg "For further information follow the wiki:"
msg "http://chakraos.org/wiki/index.php?title=Test_Akabei" msg "https://chakraos.org/wiki/index.php?title=Test_Akabei"
newline newline
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment