forked from adrenlinerush/portage_overlay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·58 lines (43 loc) · 1.14 KB
/
install.sh
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
#!/bin/bash
#
# NOTE: This script is only if you want an *almost* fully automated setup.
#
mkdir /etc/portage
#set the needed use flags
echo "dev-vcs/git -perl" >> /etc/portage/package.use
emerge git
echo cloning the repo
git clone git://github.com/oyvindkinsey/gentoo_gitorious.git /usr/portage/local
if [ "$?" -ne "0" ]; then
exit 1
fi
echo update /etc/make.conf
echo "PORTDIR_OVERLAY=\"/usr/portage/local\"" >> /etc/make.conf
emerge gitorious
if [ "$?" -ne "0" ]; then
exit 1
fi
emerge --config dev-db/mysql
if [ "$?" -ne "0" ]; then
exit 1
fi
/etc/init.d/mysql start
emerge --config gitorious
if [ "$?" -ne "0" ]; then
exit 1
fi
rc-update add mysql default
rc-update add memcached default
rc-update add stompserver default
rc-update add gitorious default
rc-update add nginx default
rc-update add gitorious-poller default
rc-update add gitorious-git-daemon default
/etc/init.d/mysql start
/etc/init.d/memcached start
/etc/init.d/stompserver start
/etc/init.d/gitorious start
/etc/init.d/nginx start
/etc/init.d/gitorious-poller start
/etc/init.d/gitorious-git-daemon start
echo Navigate to ${DOMAIN} to see your freshly installed gitorious!