25 lines
911 B
Plaintext
25 lines
911 B
Plaintext
. lib/lsb/init-functions
|
|
[ ! -d etc/ports ] && mkdir -p etc/ports
|
|
for i in base cli gui base-extra cli-extra gui-extra xfce4 xfce4-extra kde5 kde5-extra gnome gnome-extra \
|
|
mate mate-extra lxde lxde-extra
|
|
|
|
do
|
|
if [ ! -f etc/ports/$i.cards ]; then
|
|
echo "host=downloads.nutyx.org
|
|
destination=/usr/ports/$i
|
|
version=8.0
|
|
collection=$i" > etc/ports/$i.cards
|
|
log_success_msg "${WARNING} /etc/ports/$i.cards created ${NORMAL}"
|
|
log_warning_msg "${WARNING} Double check /etc/ports/$i and adapted to your needs ${NORMAL}"
|
|
else
|
|
sed -i "s@houaphan@8.0@" etc/ports/$i.cards
|
|
fi
|
|
done
|
|
if [ ! -f etc/pkgmk.conf ]; then
|
|
if [ -f etc/pkgmk.conf.example ]; then
|
|
cp etc/pkgmk.conf.example etc/pkgmk.conf
|
|
log_success_msg "${WARNING} /etc/pkgmk.conf.example copied as /etc/pkgmk.conf ${NORMAL}"
|
|
log_warning_msg "${WARNING} Double check /etc/pkgmk.conf and adapted to your needs ${NORMAL}"
|
|
fi
|
|
fi
|