Skip to content

Commit

Permalink
Drop Debian <= 7 and Ubuntu <= 14.04 support
Browse files Browse the repository at this point in the history
This doesn't clean as much since on Debian sysvinit support is installed
even on systemd.
  • Loading branch information
ekohl committed Feb 21, 2025
1 parent 3222d0c commit e031ee8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,28 +37,12 @@ if [ -d ext/docs ]; then
cp -r "$basepath/base_deb" "$basepath/systemd_deb"
DESTDIR="$basepath/systemd_deb" bash install.sh systemd_deb
fi
if [ ! -d "$basepath/systemd_notasksmax_deb" ]; then
cp -r "$basepath/base_deb" "$basepath/systemd_notasksmax_deb"
DESTDIR="$basepath/systemd_notasksmax_deb" USE_TASKSMAX=false bash install.sh systemd_deb
fi
if [ ! -d "$basepath/sysvinit_deb" ]; then
cp -r "$basepath/base_deb" "$basepath/sysvinit_deb"
DESTDIR="$basepath/sysvinit_deb" bash install.sh sysv_init_deb
fi
fi
else
if [ ! -d "$basepath/systemd_deb" ]; then
cp -r "$basepath/base" "$basepath/systemd_deb"
DESTDIR="$basepath/systemd_deb" bash install.sh systemd_deb
fi
if [ ! -d "$basepath/systemd_notasksmax_deb" ]; then
cp -r "$basepath/base" "$basepath/systemd_notasksmax_deb"
DESTDIR="$basepath/systemd_notasksmax_deb" USE_TASKSMAX=false bash install.sh systemd_deb
fi
if [ ! -d "$basepath/sysvinit_deb" ]; then
cp -r "$basepath/base" "$basepath/sysvinit_deb"
DESTDIR="$basepath/sysvinit_deb" bash install.sh sysv_init_deb
fi
fi

os=$build_os
Expand All @@ -72,15 +56,7 @@ case $os in
# there's no differences in packaging for deb vs ubuntu
# if that changes we'll need to fix this
debian|ubuntu)
if [ "$os_dist" = 'trusty' ]; then
dir="$basepath/sysvinit_deb"
elif [ "$os_dist" = 'jessie' ]; then
# the version of systemd that ships with jessie doesn't
# support TasksMax
dir="$basepath/systemd_notasksmax_deb"
else
dir="$basepath/systemd_deb"
fi
dir="$basepath/systemd_deb"
;;
amazon|el|redhatfips|sles)
dir="$basepath/systemd_el"
Expand Down
6 changes: 1 addition & 5 deletions resources/puppetlabs/lein-ezbake/template/global/ext/fpm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,7 @@
when :amazon, :fedora, :sles, :el, :redhatfips
['etc', 'opt', 'usr', 'var']
when :debian, :ubuntu
if options.dist == 'trusty' #trusty is the only sysv deb we build for right now
['etc', 'opt', 'var']
else
['etc', 'lib', 'opt', 'usr', 'var']
end
['etc', 'lib', 'opt', 'usr', 'var']
else
fail "I don't know what your default sources should be, pass it on the command line!"
end
Expand Down
19 changes: 1 addition & 18 deletions resources/puppetlabs/lein-ezbake/template/global/install.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,7 @@ function task_service {
elif [ "$OSFAMILY" = "Debian" ]; then
unitdir=${unitdir_debian}
defaultsdir=${defaultsdir_debian}
sysv_codenames=("squeeze" "wheezy" "lucid" "precise" "trusty")
if $(echo ${sysv_codenames[@]} | grep -q $CODENAME) ; then
task install_source_deb_sysv
else
task install_source_deb_systemd
fi
task install_source_deb_systemd
else
echo "Unsupported platform, exiting ..."
exit 1
Expand All @@ -100,15 +95,6 @@ function task_install_source_rpm_systemd {
task postinst_permissions
}

# Source based install for Debian based + sysv setups
function task_install_source_deb_sysv {
task preinst_deb
task install_deb
task sysv_init_deb
task logrotate
task postinst_deb
}

# Source based install for Debian based + systemd setups
function task_install_source_deb_systemd {
task preinst_deb
Expand Down Expand Up @@ -262,9 +248,6 @@ function task_systemd_deb {
task sysv_init_deb
install -d -m 0755 "${DESTDIR}${unitdir_debian}"
install -m 0644 ext/debian/<%= EZBake::Config[:project] %>.service_file "${DESTDIR}${unitdir_debian}/<%= EZBake::Config[:project] %>.service"
if [ "$USE_TASKSMAX" == "false" ]; then
sed -i "s/^TasksMax/# Don't set TasksMax since the option doesn't exist\n# TasksMax/" "${DESTDIR}${unitdir_debian}/<%= EZBake::Config[:project] %>.service"
fi
install -d -m 0755 "${DESTDIR}${tmpfilesdir}"
install -m 0644 ext/<%= EZBake::Config[:project] %>.tmpfiles.conf "${DESTDIR}${tmpfilesdir}/<%= EZBake::Config[:project] %>.conf"
install -d -m 0755 "${DESTDIR}${needrestart_confdir}"
Expand Down

0 comments on commit e031ee8

Please sign in to comment.