You are not logged in.
Hey Cybertron,
That would be great. I'm definitely very interested!
Jim
Offline
ok
I have an absolute first ALPHA version of the script..
for now it uses dialog (it is in the main repo) and it has a primitive, but arch-way, gui
EDIT: Fixed some typos, and some diirectory making
#!/bin/sh
###########################################################################
# This is a script to build e17 and some of the applications that #
# are needed or great to have together with the script #
# Made by: CyberTron arch@linuxportalen.com #
# Needed progs: Dialog #
###########################################################################
# THIS NEED CHANGING BEFORE USE!
pkgbuilds=/home/cybertron/pkgbuilds/e17
build=$pkgbuilds/packages/e17-$(date +%d%m%y)
PKGS_PATH=/home/cybertron/gui/pkg.list
# DO NOT CHANGE ANYTHING FROM HERE! (unless you know what to do)
ANSWER="/tmp/.setup"
TITLE="E17 for ArchLinux Installation"
LOG="/dev/vc/5"
make_dirs()
{
echo "Making $build" >> /tmp/e17.log
mkdir -p $build
}
check()
{
# Check for previous backup today
if [ -e $build ]; then
echo "Removing directories from $build" >> /tmp/e17.log
rm -R $build || { echo 'Failure removing directories' >> /tmp/e17.log; mainmenu; }
make_dirs
else
make_dirs
fi
}
select_install()
{
dodialog msgbox "In the next stage you are going to choose which packages to install, recommendation is that you install all packages." 18 70
CHKLIST=
if [ "$MODE" = "install" ]; then
PKGS=$PKGS_PATH
fi
for app in `sed 's|"||g' $PKGS | awk '{ print $1 }'`; do
CHKLIST="$CHKLIST $app INSTALL ON"
done
if [ -e /tmp/.pkglist ]; then
rm /tmp/.pkglist
fi
domenu checklist "Select Packages" 19 55 12 $CHKLIST 2>/tmp/.pkglist || return 1
if [ $? == 0 ]; then
install
else
mainmenu
fi
}
select_upgrade()
{
dodialog msgbox "In the next stage you are going to choose which packages to upgrade, recommendation is that you upgrade all packages." 18 70
CHKLIST=
if [ "$MODE" = "install" ]; then
PKGS=$PKGS_PATH
fi
for app in `sed 's|"||g' $PKGS | awk '{ print $1 }'`; do
CHKLIST="$CHKLIST $app UPGRADE ON"
done
if [ -e /tmp/.pkglist ]; then
rm /tmp/.pkglist
fi
domenu checklist "Select Packages" 19 55 12 $CHKLIST 2>/tmp/.pkglist || return 1
if [ $? == 0 ]; then
upgrade
else
mainmenu
fi
}
select_pkgs()
{
dodialog msgbox "In the next stage you are going to choose which packages to make, recommendation is that you make all packages." 18 70
CHKLIST=
if [ "$MODE" = "install" ]; then
PKGS=$PKGS_PATH
fi
for app in `sed 's|"||g' $PKGS | awk '{ print $1 }'`; do
CHKLIST="$CHKLIST $app MAKE ON"
done
if [ -e /tmp/.pkglist ]; then
rm /tmp/.pkglist
fi
domenu checklist "Select Packages" 19 55 12 $CHKLIST 2>/tmp/.pkglist || return 1
if [ $? == 0 ]; then
making
else
mainmenu
fi
}
failure()
{
echo "Failed to build" $app >> /tmp/e17.log
cd $pkgbuilds/$app
rm -r pkg src >$LOG 2>&1
mainmenu
}
install()
{
echo "E17 Build Log" > /tmp/e17.log
check
dialog --backtitle "$TITLE" --title " Installing... Please Wait "
--no-kill --tailboxbg "/tmp/e17.log" 18 70 2>/tmp/.pid
for app in `sed 's/"//g' /tmp/.pkglist` ;
do
echo "Trying to build and install $app" >> /tmp/e17.log
cd $pkgbuilds/$app
rm *.tar.gz >$LOG 2>&1
rm *.tar.bz2 >$LOG 2>&1
makepkg -cf >$LOG 2>&1 || failure
mv *.pkg.tar.gz $build >$LOG 2>&1
pacman -A *.pkg.tar.gz >$LOG 2>&1
echo "Installation of $app was successful" >> /tmp/e17.log
done
dialog --backtitle "$TITLE" --title " $result "
--exit-label "Continue" --textbox "/tmp/e17.log" 18 70
# fix the stair-stepping that --tailboxbg leaves us with
stty onlcr
}
upgrade()
{
echo "E17 Build Log" > /tmp/e17.log
check
dialog --backtitle "$TITLE" --title " Upgrading... Please Wait "
--no-kill --tailboxbg "/tmp/e17.log" 18 70 2>/tmp/.pid
for app in `sed 's/"//g' /tmp/.pkglist` ;
do
echo "Trying to build and upgrade $app" >> /tmp/e17.log
cd $pkgbuilds/$app
rm *.tar.gz >$LOG 2>&1
rm *.tar.bz2 >$LOG 2>&1
makepkg -cf >$LOG 2>&1 || failure
mv *.pkg.tar.gz $build >$LOG 2>&1
pacman -U *.pkg.tar.gz >$LOG 2>&1
echo "The Upgrade of package $app was successful" >> /tmp/e17.log
done
dialog --backtitle "$TITLE" --title " $result "
--exit-label "Continue" --textbox "/tmp/e17.log" 18 70
# fix the stair-stepping that --tailboxbg leaves us with
stty onlcr
}
making()
{
echo "E17 Build Log" > /tmp/e17.log
check
dialog --backtitle "$TITLE" --title " Making... Please Wait "
--no-kill --tailboxbg "/tmp/e17.log" 18 70 2>/tmp/.pid
for app in `sed 's/"//g' /tmp/.pkglist` ;
do
echo "Trying to build $app" >> /tmp/e17.log
cd $pkgbuilds/$app
rm *.tar.gz >$LOG 2>&1
rm *.tar.bz2 >$LOG 2>&1
makepkg -cf >$LOG 2>&1 || failure
mv *.pkg.tar.gz $build >$LOG 2>&1
echo "The building of $app was successful" >> /tmp/e17.log
done
dialog --backtitle "$TITLE" --title " $result "
--exit-label "Continue" --textbox "/tmp/e17.log" 18 70
# fix the stair-stepping that --tailboxbg leaves us with
stty onlcr
}
abort()
{
dodialog yesno "Abort Installation?" 6 40
case $? in
0)
exit 0 ;;
1)
mainmenu ;;
esac
}
dodialog()
{
height=12
width=65
if [ "$3" != "" ]; then
height=$3
fi
if [ "$4" != "" ]; then
width=$4
fi
dialog --backtitle "$TITLE" --aspect 15 --$1 "$2" $height $width $5
}
domenu()
{
menutype=$1 ; shift
text=$1 ; shift
height=$1 ; shift
width=$1 ; shift
mheight=$1 ; shift
dialog --backtitle "$TITLE" --$menutype "$text" $height $width $mheight $*
}
mainmenu() {
if [ "$MODE" = "install" ]; then
dialog --backtitle "$TITLE" --title " MAIN MENU "
--menu "Use the UP and DOWN arrows to navigate menus. Use TAB to switch between buttons and ENTER to select." 15 55 8
"0" "Install a fresh E17"
"1" "Upgrade an existing E17"
"2" "Just make the packages"
"3" "Exit Install" 2>$ANSWER
fi
EDITOR=
case `cat $ANSWER` in
"0")
select_install ;;
"1")
select_upgrade ;;
"2")
select_pkgs ;;
"3")
echo ""
echo "If everything went fine, then you may now use E17"
echo "insert "exec enlightenment" in your .xinitrc"
echo "and insert "/opt/e17/bin" in your /etc/profile"
echo "and insert "/opt/e17/lib" in your /etc/ld.so.conf"
echo ""
exit 0 ;;
*)
abort ;;
esac
}
dodialog msgbox "Welcome to the E17 Installation program for Arch Linux. I take no responsibility for any damage caused by this program. You can view all output from commands by viewing your VC5 console (ALT-F5) or (CTRL-ALT-F5). ALT-F1 or CTRL-ALT-F1 will bring you back here." 14 65
dialog --backtitle "$TITLE" --menu "Please choose your method" 10 35 3
"1" "Install " 2>$ANSWER || abort
# "2" "Update" 2>$ANSWER || abort
case `cat $ANSWER` in
"1")
MODE="install"
;;
esac
loop() {
while `/bin/true`; do
mainmenu
done
}
loop
exit 0
You will also need a file called pkg.list the names in this list should have the same names as the directories that holds their respective PKGBUILD.
for ex. my eet PKGBUILD's dir. is eet-cvs
DON´T CHANGE THE ORDER!
eet-cvs
edb-cvs
evas-cvs
ecore-cvs
embryo-cvs
imlib2-cvs
edje-cvs
epeg-cvs
epsilon-cvs
esmart-cvs
emotion-cvs
engrave-cvs
ewl-cvs
etox-cvs
imlib2_loaders-cvs
eeh-cvs
entice-cvs
entrance-cvs
eclair-cvs
e-cvs
engage-cvs
erss-cvs
e_utils-cvs
e_modules-cvs
e17genmenu-cvs
elicit-cvs
embrace-cvs
enterminus-cvs
epsilon-cvs
equate-cvs
examine-cvs
eclips-cvs
elation-cvs
expose-cvs
envision-cvs
express-cvs
enotes-cvs
erme-cvs
etk-cvs
evfs-cvs
entropy-cvs
ecalendar
tclock
evolume
slideshow
screenshot
mount
Have fun, and report back any problems
http://www.linuxportalen.com -> Linux Help portal for Linux and ArchLinux (in swedish)
Dell Inspiron 8500
Kernel 2.6.14-archck1 (selfcompiled)
Enlightenment 17
Offline
Cybertron,
I tried the script. There's a loop in it. It says that "In the next stage you are going to choose...................." Then it goes to a menu to choose Install, Upgrade or Just make. After that it just loops back to the "in the next stage text again"
Jim
Offline
Ya know I forgot to post the important part with my pic lol. I threw on gkrellm to show the cpu percentage there ..
Offline
hmm..that mean that there is something wrong with the pkg.list
have you changed the PKGS_PATH= to reflect your pkg.list?
http://www.linuxportalen.com -> Linux Help portal for Linux and ArchLinux (in swedish)
Dell Inspiron 8500
Kernel 2.6.14-archck1 (selfcompiled)
Enlightenment 17
Offline
OK,
I had failed to change the PKGS_PATH but even after doing that it still loops in the same way. Any other mistakes I might have made??
(I will be away from the system for the afternoon)
Offline
I am guessing that you have changed the different variables ( where it says: change this) in the code
and that your pkg.list reflects your own directory structure??
http://www.linuxportalen.com -> Linux Help portal for Linux and ArchLinux (in swedish)
Dell Inspiron 8500
Kernel 2.6.14-archck1 (selfcompiled)
Enlightenment 17
Offline
Yes. Here's the section
# THIS NEED CHANGING BEFORE USE!
pkgbuilds=/0000cybertron/pkgbuilds/e17
build=$pkgbuilds/packages/e17-$(date +%d%m%y)
PKGS_PATH=/0000cybertron/pkg.list
Offline
Yes. Here's the section
# THIS NEED CHANGING BEFORE USE!
pkgbuilds=/0000cybertron/pkgbuilds/e17
build=$pkgbuilds/packages/e17-$(date +%d%m%y)
PKGS_PATH=/0000cybertron/pkg.list
well, that was very strange paths, the paths should be like your real directory structure, I doubt that you have a dir on your root called /0000cybertron/
pkgbuilds=/your/pkgbuild/directory (could be /var/abs/local/e17)
build=$pkgbuilds/a_directory/to/store/packages.pkg.tar.gz (could be: /var/abs/local/e17/binarypackages
PKGS_PATH=/your/pkgbuild/direcotry/pkg.list (could be /var/abs/local/e17/pkg.list)
http://www.linuxportalen.com -> Linux Help portal for Linux and ArchLinux (in swedish)
Dell Inspiron 8500
Kernel 2.6.14-archck1 (selfcompiled)
Enlightenment 17
Offline
I do have that directory. I made it to try this out.
Offline
ok, do you have your pkgbuilds-directories in that directory?
otherwise, it is quite strange, i have tried it on two different computers, with different setups, and it works...
look and see that you don't have the program running somewhere else, also make sure the pkg.list reflects your pkgbuild-directories..
otherwise, I can only say that I have to look in to it further...I do have a virtual machine I can try it on...I'll post back, also you may post back if something changes
http://www.linuxportalen.com -> Linux Help portal for Linux and ArchLinux (in swedish)
Dell Inspiron 8500
Kernel 2.6.14-archck1 (selfcompiled)
Enlightenment 17
Offline
I have just found a HUGE bug in the buildscript
A BIG TYPO!! That is what happens when I just copy and paste stuff
I have updated the script above
http://www.linuxportalen.com -> Linux Help portal for Linux and ArchLinux (in swedish)
Dell Inspiron 8500
Kernel 2.6.14-archck1 (selfcompiled)
Enlightenment 17
Offline
CyberTron,
This is hard coded twice in the script. Is it right?
if [ "$MODE" = "install" ]; then
PKGS="/home/cybertron/gui/pkg.list"
fi
Offline
nope that should be:
PKGS=$PKGS_PATH
in three places...changing in the script above
thanks for pointing that out
http://www.linuxportalen.com -> Linux Help portal for Linux and ArchLinux (in swedish)
Dell Inspiron 8500
Kernel 2.6.14-archck1 (selfcompiled)
Enlightenment 17
Offline
Have updated the script, and included my pkgbuilds (same as Founix...almost )
Updated with pkgbuilds and script, just change the name to: e17_complete.tar.gz and unpack
http://www.linuxportalen.com/files/e17_ … tar_555.gz
http://www.linuxportalen.com -> Linux Help portal for Linux and ArchLinux (in swedish)
Dell Inspiron 8500
Kernel 2.6.14-archck1 (selfcompiled)
Enlightenment 17
Offline
I have solved the last problems with my sript now, and will update the script soon...just need to test a few things..
btw, Founix: What is the absolute bare minimum apps/libs that need installing in E17 (to get it working/functioning normally)?
http://www.linuxportalen.com -> Linux Help portal for Linux and ArchLinux (in swedish)
Dell Inspiron 8500
Kernel 2.6.14-archck1 (selfcompiled)
Enlightenment 17
Offline
ok, I have now updated the script and such, there is probably still some bugs, and I haven't tried if ALL packages build correctly..
please report errors, and I am sorry for any inconvinience this might cause
download here: http://www.linuxportalen.com/files/e17_ … tar_483.gz
(change the name to something.tar.gz )
it includes pkgbuilds, pkg.list file, and the script itself
http://www.linuxportalen.com -> Linux Help portal for Linux and ArchLinux (in swedish)
Dell Inspiron 8500
Kernel 2.6.14-archck1 (selfcompiled)
Enlightenment 17
Offline
Excuse me CyberTron, much work this week for my boss and I did not have time yet to test your script.
I hope to be able to do it before the weekend.
[fouiny_repo]
Server = http://elusseau.free.fr/arch/fouiny_repo/
Offline
Excuse me CyberTron, much work this week for my boss and I did not have time yet to test your script.
I hope to be able to do it before the weekend.
well, that happens sometimes
I have successfully used it now, although there are a little misstake in the pkg.list it says e_utils, it should be e_utils-cvs
other than that, it seems that the script is working as it should...:D
I am going to start cleaning the code soon...
http://www.linuxportalen.com -> Linux Help portal for Linux and ArchLinux (in swedish)
Dell Inspiron 8500
Kernel 2.6.14-archck1 (selfcompiled)
Enlightenment 17
Offline
Feutures in the next version of the script is:
Building and installing E17 from PKGBUILDS
Building and Upgrading E17 from PKGBUILD
Building E17 from PKGBUILD (and copy all build-files to a specified directory)While building and something goes wrong, You may go back, uncheck those packages that you have already made, and skip the one that gone wrong and continue installing/upgrading/building
Inbuilt fail-checking
Upcoming feutures, (although not sure how to do all of it yet)
Uninstalling of E17 (or specifik packages)
Gensync (make your own repo)
UPDATE!! HUGE BUG WHICH PREVENTED APPS TO BE INSTALLED PLEASE UPDATE THE SCRIPT WITH THE ONE BELOW!!!
download: http://www.linuxportalen.com/files/e17_ … 0.4.tar.gz
Ideas for more?
http://www.linuxportalen.com -> Linux Help portal for Linux and ArchLinux (in swedish)
Dell Inspiron 8500
Kernel 2.6.14-archck1 (selfcompiled)
Enlightenment 17
Offline
Wow! You seem to have done a great job on this one, cybertron. It seems very nice indeed. Unfortunately, I haven't had time to try it out yet; but I will do so ASAP, and report bugs and give suggestions..
Keep up the good work
Offline
New version is soon coming up...I know there are a lot of initital releases, but it's becuase new feutures is added / bugs are being slayed...
just testing to upgrade now...: D
Update:
New version is out
Buggs are squashed, and some new feutures, like if you are root when installing, it restores ownership of files...and new cleaning of directories is working quite well....also more logging, and more correct logging...
UPDATE AGAIN!
Now it supports Gensync (That one is for you Founix )
Btw. I need some input, I am going to make some kind of removal tool for the packages, but don't know what to do...should I do a
pacman -R --no-deps PACKAGE (with a package-selection list...)
or should I have a pacman -Rs package-group (with a package.-group.-selection list?)
none of the above is especially good...although I am leaning towards nr. 1, (the one with -nodeps)
Have fun
http://www.linuxportalen.com -> Linux Help portal for Linux and ArchLinux (in swedish)
Dell Inspiron 8500
Kernel 2.6.14-archck1 (selfcompiled)
Enlightenment 17
Offline
umm ya its not your fault...
heh
The patch is fubar.. I am working on tring to figure out what is going down with it.
Offline
umm ya its not your fault...
hehThe patch is fubar.. I am working on tring to figure out what is going down with it.
so there is something wrong with the patch? and that is why we don't get GL mode working?
hope you can figure out what is wrong, and then I can include that in my script
UPDATE: New version of the script, does not require editing the code
although it has not been properly tested, but it should work
http://www.linuxportalen.com -> Linux Help portal for Linux and ArchLinux (in swedish)
Dell Inspiron 8500
Kernel 2.6.14-archck1 (selfcompiled)
Enlightenment 17
Offline
hi:
i don't to pacman -Sy e17...show error msg:
failed downloading /e17/goodies/e17-cvs.db.tar.gz from arch.lorddeath.com: HTTP/1.1 404 Not Found
Offline