Skip to content

Commit

Permalink
added LinuxMint and ArchLinux
Browse files Browse the repository at this point in the history
  • Loading branch information
a-brandt committed Jul 25, 2012
1 parent 896399b commit 1197f11
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
14 changes: 14 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,20 @@ echo

case $TRI_OS_LONG in

Linux-ArchLinux*)
echo "Using configuration for Arch Linux"
OPTIONS="$OPTIONS --enable-all-in-one --enable-mruby"
LDD_INFO="yes"
RESULTS="$RESULTS arangoirb"
;;

Linux-LinuxMint-13*)
echo "Using configuration for LinuxMint 13"
OPTIONS="$OPTIONS --enable-all-in-one --enable-mruby"
LDD_INFO="yes"
RESULTS="$RESULTS arangoirb"
;;

Linux-openSUSE-12*)
echo "Using configuration for openSuSE 12"
OPTIONS="$OPTIONS --enable-all-in-one --enable-mruby"
Expand Down
14 changes: 14 additions & 0 deletions config/detect_distro.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ elif [ "${OS}" = "Linux" ] ; then

# use "lsb_release"
DIST=$(lsb_release -d 2>/dev/null| awk '{ print $2 }')
DIST2=$(lsb_release -d 2>/dev/null| awk '{ print $3 }')
if [ "x${DIST2}" = "xMint" ] ; then
DIST="LinuxMint"
fi

RELEASE=$(lsb_release -r 2>/dev/null | awk '{ print $2 }')
CODENAME=$(lsb_release -c 2>/dev/null | awk '{ print $2 }')

Expand All @@ -45,6 +50,15 @@ elif [ "${OS}" = "Linux" ] ; then
elif [ -f /etc/debian_version ] ; then
DIST="Debian"
RELEASE=`cat /etc/debian_version`

elif [ -f /etc/os-release ] ; then
ID=$(cat /etc/os-release | tr "\n" ' ' | sed s/.*ID=// | awk '{ print $1}')
if [ "${ID}" = "arch" ] ; then
DIST='ArchLinux'
RELEASE="current"
CODENAME="arch"
fi

fi
fi

Expand Down
22 changes: 22 additions & 0 deletions packetize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,20 @@ case $TRI_OS_LONG in
export insserv="true"
;;

Linux-LinuxMint-*)
echo "Using configuration for LinuxMint"
package_type="deb"
START_SCRIPT="rc.arangodb.Ubuntu"
runlevels="runlevel(02345)"

if [ ${TRI_MACH} == "x86_64" ] ; then
TRI_MACH="amd64"
fi

# export "insserv" for the epm configuration file
export insserv="true"
;;

Darwin*)
echo "Using configuration for DARWIN"
ostype="macosx"
Expand Down Expand Up @@ -296,6 +310,14 @@ case $TRI_OS_LONG in
remove_package="sudo dpkg --purge $product_name"
;;

Linux-LinuxMint-*)
start_server=""
stop_server="sudo /etc/init.d/arango stop"

install_package="sudo dpkg -i ${sfolder_name}/${package_name}"
remove_package="sudo dpkg --purge $product_name"
;;

Darwin*)
start_server=""
stop_server="sudo launchctl unload /Library/LaunchDaemons/org.arangodb.plist"
Expand Down

0 comments on commit 1197f11

Please sign in to comment.