Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 1818

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

Upravy:
- #454: Zacatek uzpusobeni skriptu pro tvorbu baliku na ruzne verze debianu
- #458: Překlad popisu baliku freenetis-dhcp

Zobrazit rozdíly:

freenetis/branches/1.1/application/vendors/deb/freenetis-dhcp/control
Architecture: all
Maintainer: Ondrej Fibich <ondrej.fibich@gmail.com>
Homepage: http://www.freenetis.org
Description: FreenetIS DHCP server synchronization
The tool is used for the DHCP server synchronization with data from FreenetIS.
DHCP server is represented in FreenetIS by the device ID.
Description: DHCP server synchronization from FreenetIS
The tool is used to synchronize the DHCP server configuration with data obtained from FreenetIS.
DHCP server is identified in FreenetIS by the device ID.
Description-cs.UTF-8: Synchronizace DHCP serveru z FreenetISu:
Nástroj se používá k synchronizaci konfigurace DHCP serveru daty získanými z FreenetISu.
DHCP server je ve FreenetISu identifikován pomocí ID zařízení.
freenetis/branches/1.1/application/vendors/deb/freenetis-dhcp/debianization.sh
# Script for debianization of FreenetIS DHCP package
# (c) Ondrej Fibich, 2013
#
# Takes one argument (version of package - FreenetIS DHCP).
# Takes two arguments (version of package - FreenetIS DHCP and debian version).
#
################################################################################
if [ $# -ne 1 ]; then
if [ $# -ne 2 ]; then
echo "Wrong arg count.. Terminating"
exit 1
fi
NAME=freenetis-dhcp
VERSION=$1
DEBIAN=$2
# create dirs ##################################################################
mkdir deb_packages/tmp
......
sudo chmod g-w tmp/etc/cron.d/freenetis-dhcp
# make package
sudo dpkg-deb -b tmp ${NAME}_${VERSION}_all.deb
sudo dpkg-deb -b tmp ${NAME}_${VERSION}+${DEBIAN}.deb
# clean-up mess ################################################################
freenetis/branches/1.1/application/vendors/deb/freenetis/debianization.sh
# Script for debianization of FreenetIS base package
# (c) Ondrej Fibich, 2012
#
# Takes two arguments (version of package - FreenetIS).
# Takes two arguments (version of package - FreenetIS and debian version).
#
################################################################################
if [ $# -ne 1 ]; then
if [ $# -ne 2 ]; then
echo "Wrong arg count.. Terminating"
exit 1
fi
NAME=freenetis
VERSION=$1
DEBIAN=$2
# create dirs ##################################################################
mkdir deb_packages/tmp
......
# make package
cd ..
sudo dpkg-deb -b tmp ${NAME}_${VERSION}_all.deb
sudo dpkg-deb -b tmp ${NAME}_${VERSION}+${DEBIAN}.deb
# clean-up mess ################################################################
freenetis/branches/1.1/application/vendors/deb/freenetis-qos/debianization.sh
# Script for debianization of FreenetIS redirection and QoS package
# (c) Ondrej Fibich, 2012
#
# Takes two arguments (version of package - FreenetIS).
# Takes two arguments (version of package - FreenetIS and debian version).
#
################################################################################
if [ $# -ne 1 ]; then
if [ $# -ne 2 ]; then
echo "Wrong arg count.. Terminating"
exit 1
fi
NAME=freenetis-qos
VERSION=$1
DEBIAN=$2
# create dirs ##################################################################
mkdir deb_packages/tmp
......
sudo chown -hR root:root *
# make package
sudo dpkg-deb -b tmp ${NAME}_${VERSION}_all.deb
sudo dpkg-deb -b tmp ${NAME}_${VERSION}+${DEBIAN}.deb
# clean-up mess ################################################################
freenetis/branches/1.1/application/vendors/deb/freenetis-monitoring/debianization.sh
# Script for debianization of FreenetIS redirection and QoS package
# (c) Ondrej Fibich, 2012
#
# Takes two arguments (version of package - FreenetIS).
# Takes two arguments (version of package - FreenetIS and debian version).
#
################################################################################
if [ $# -ne 1 ]; then
if [ $# -ne 2 ]; then
echo "Wrong arg count.. Terminating"
exit 1
fi
NAME=freenetis-monitoring
VERSION=$1
DEBIAN=$2
# create dirs ##################################################################
mkdir deb_packages/tmp
......
sudo chown -hR root:root *
# make package
sudo dpkg-deb -b tmp ${NAME}_${VERSION}_all.deb
sudo dpkg-deb -b tmp ${NAME}_${VERSION}+${DEBIAN}.deb
# clean-up mess ################################################################
freenetis/branches/1.1/application/vendors/deb/freenetis-ssh-keys/debianization.sh
# Script for debianization of FreenetIS rSSH keys
# (c) Ondrej Fibich, 2012
#
# Takes two arguments (version of package - FreenetIS).
# Takes two arguments (version of package - FreenetIS and debian version).
#
################################################################################
if [ $# -ne 1 ]; then
if [ $# -ne 2 ]; then
echo "Wrong arg count.. Terminating"
exit 1
fi
NAME=freenetis-ssh-keys
VERSION=$1
DEBIAN=$2
# create dirs ##################################################################
mkdir deb_packages/tmp
......
sudo chmod g-w tmp/etc/cron.d/freenetis-ssh-keys
# make package
sudo dpkg-deb -b tmp ${NAME}_${VERSION}_all.deb
sudo dpkg-deb -b tmp ${NAME}_${VERSION}+${DEBIAN}.deb
# clean-up mess ################################################################
freenetis/branches/1.1/application/vendors/deb/debianization.sh
fi
NAMES=(freenetis freenetis-monitoring freenetis-redirection freenetis-ulogd freenetis-ssh-keys)
DEBIANS=(lenny squeeze wheezy)
VERSION=$1
if [ $# -eq 2 ]; then
NAMES=($2)
fi
if [ $# -eq 3 ]; then
DEBIANS=($3)
fi
# functions ####################################################################
function red_echo() {
......
for name in ${NAMES[*]}
do
deb_sh=./$name/debianization.sh
if [ -f "$deb_sh" ]; then
./$deb_sh "$VERSION"
for debian in ${DEBIANS[*]}
do
deb_sh=./$name/debianization.sh
if [ $? -eq 0 ]; then
green_echo ">>>> [$name] debianized"
if [ -f "$deb_sh" ]; then
./$deb_sh "$VERSION" "$debian"
if [ $? -eq 0 ]; then
green_echo ">>>> [$name+$debian] debianized"
else
red_echo ">>>> [$name+$debian] an error occured during debianization"
fi
else
red_echo ">>>> [$name] an error occured during debianization"
red_echo ">>>> [$name+$debian] not debianized (debianization utility is missing)"
fi
else
red_echo ">>>> [$name] not debianized (debianization utility is missing)"
fi
done
done
freenetis/branches/1.1/application/vendors/deb/freenetis-redirection/debianization.sh
# Script for debianization of FreenetIS redirection and QoS package
# (c) Ondrej Fibich, 2012
#
# Takes two arguments (version of package - FreenetIS).
# Takes two arguments (version of package - FreenetIS and debian version).
#
################################################################################
if [ $# -ne 1 ]; then
if [ $# -ne 2 ]; then
echo "Wrong arg count.. Terminating"
exit 1
fi
NAME=freenetis-redirection
VERSION=$1
DEBIAN=$2
# create dirs ##################################################################
mkdir deb_packages/tmp
......
sudo chown -hR root:root *
# make package
sudo dpkg-deb -b tmp ${NAME}_${VERSION}_all.deb
sudo dpkg-deb -b tmp ${NAME}_${VERSION}+${DEBIAN}.deb
# clean-up mess ################################################################

Také k dispozici: Unified diff