-#!/bin/sh
-set -o errexit
+#!/bin/bash
-# First argument of this script is the package name
+hvconfig_pre()
+{
+ hv_useradd -c "Print_Service_User" -d /dev/null -g lp -s /bin/false -u 9 lp
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
+ CONFIGURE_OPTS=""
+}
-PACKAGE=${1}
-shift
-CONFIGURE_OPTS=${*}
-
-# Applying patches (if any)
-apply_patches ${PACKAGE}
-
-hv_useradd -c "Print_Service_User" -d /dev/null -g lp -s /bin/false -u 9 lp
-
-cd ${LFS_TMP}/${PACKAGE}
-./configure
-make
-make install
-
-if [ -n "${CUPS_SERVER}" ]; then
- # Configuring for connection to a remote CUPS print server
- cat > /etc/cups/client.conf << "EOF"
+hvbuild_pre()
+{
+ if [ -n "${CUPS_SERVER}" ]; then
+ # Configuring for connection to a remote CUPS print server
+ cat > /etc/cups/client.conf << "EOF"
########################################################################
# #
# This is the CUPS client configuration file. This file is used to #
# and possibly polling.
#
EOF
- echo "ServerName ${CUPS_SERVER}" >> /etc/cups/client.conf
-else
- # Configuring for a CUPS print server
- sed -i -e 's@Listen localhost:631@Listen \*:631@' /etc/cups/cupsd.conf
-fi
-
-install -v -m740 ${SCRDIR}/bootscripts/cups /etc/rc.d/init.d
+ echo "ServerName ${CUPS_SERVER}" >> /etc/cups/client.conf
+ else
+ # Configuring for a CUPS print server
+ sed -i -e 's@Listen localhost:631@Listen \*:631@' /etc/cups/cupsd.conf
+ fi
-# script-name start stop
-bootscript_add_rc3 cups 40 50
+ install -v -m740 ${SCRDIR}/bootscripts/cups /etc/rc.d/init.d
-exit $?
+ # script-name start stop
+ bootscript_add_rc3 cups 40 50
+}