Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 2264

Přidáno uživatelem Ondřej Fibich před více než 10 roky(ů)

freenetis_1.1.0~rc2

Upravy:
- prizpusobeni debianization skriptu rozptylenosti jednotlivych modulu

Zobrazit rozdíly:

freenetis/branches/1.1/application/vendors/deb/debianization.sample.conf
# This is sample configuration for debianization script that allows to set up
# paths of dirs of sub debianization scripts in the file system.
# Rename this file as debianization.conf and rewrite variables.
freenetis_debianization=./freenetis/
freenetis_monitoring_debianization=./freenetis-monitoring/
freenetis_redirection_debianization=./freenetis-redirection/
freenetis_dhcp_debianization=./freenetis-dhcp/
freenetis_ssh_keys_debianization=./freenetis-ssh-keys/
freenetis_qos_debianization=./freenetis-qos/
freenetis/branches/1.1/application/vendors/deb/debianization.sh
exit 1
fi
NAMES=(freenetis freenetis-monitoring freenetis-redirection freenetis-ulogd)
CONFIG="./debianization.conf"
if [ -r $CONFIG ]; then
echo "Loading configuration file"
. $CONFIG
fi
NAMES=(freenetis freenetis-monitoring freenetis-redirection freenetis-dhcp \
freenetis-ssh-keys freenetis-qos)
DEBIANS=(lenny squeeze wheezy)
VERSION=$1
......
# call all debianization utils #################################################
root_dir=`pwd`
for name in ${NAMES[*]}
do
name_mod=`echo $name | sed 's/-/_/g'`
for debian in ${DEBIANS[*]}
do
deb_sh=./$name/debianization.sh
# get dir from config or default
conf_var_name="${name_mod}_debianization"
eval_str="echo \${${conf_var_name}}"
deb_dir_sh=`eval "$eval_str"`
if [[ -z "$deb_dir_sh" ]]; then
deb_dir_sh="./$name/"
fi
deb_sh="$deb_dir_sh/debianization.sh"
# run debianization
if [ -f "$deb_sh" ]; then
./$deb_sh "$VERSION" "$debian"
cd "$deb_dir_sh"
./debianization.sh "$VERSION" "$debian"
if [ $? -eq 0 ]; then
green_echo ">>>> [$name+$debian] debianized"
# move builded packages
if [ -d "deb_packages" ]; then
mkdir -p "$root_dir/deb_packages"
mv -f deb_packages/* "$root_dir/deb_packages"
fi
else
red_echo ">>>> [$name+$debian] an error occured during debianization"
fi
cd "$root_dir"
else
red_echo ">>>> [$name+$debian] not debianized (debianization utility is missing)"
fi
freenetis/branches/1.1/application/vendors/deb/freenetis/debianization.sh
DEBIAN=$2
# create dirs ##################################################################
mkdir deb_packages/tmp
cd deb_packages/tmp
mkdir ../deb_packages/tmp
cd ../deb_packages/tmp
mkdir -m 755 DEBIAN
mkdir -m 755 usr
......
# change owner of files to root (security)
cd ..
sudo chown -hR root:root *
fakeroot chown -hR root:root *
cd tmp
# make package
cd ..
sudo dpkg-deb -b tmp ${NAME}_${VERSION}+${DEBIAN}.deb
fakeroot dpkg-deb -b tmp ${NAME}_${VERSION}+${DEBIAN}.deb
# clean-up mess ################################################################
# clean
sudo rm -rf tmp
rm -rf tmp
freenetis/branches/1.1/version.php
* The current version of FreenetIS.
* This value must be changed by developers in a new release of FreenetIS.
*/
define('FREENETIS_VERSION', '1.1.0~rc1');
define('FREENETIS_VERSION', '1.1.0~rc2');

Také k dispozici: Unified diff