X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage5%2Fpkg%2Ftftp-hpa;h=14a4f1531eb443f8d627a1543494f4c6d3253b39;hb=f3c8db3027d5dc530e1f30c88e0235975211582e;hp=4fe70ceecd9a5221e1271ed25f0d4e3848de2be0;hpb=0fb786eca497edb316e1dfaa4a4ccec2d6b3f694;p=hvlinux.git diff --git a/stage5/pkg/tftp-hpa b/stage5/pkg/tftp-hpa index 4fe70ce..14a4f15 100644 --- a/stage5/pkg/tftp-hpa +++ b/stage5/pkg/tftp-hpa @@ -1,36 +1,18 @@ -#!/bin/sh -set -o errexit - -# First argument of this script is the package name. -# Remaining arguments are additional configure options. - -# Reading system configuration informations, functions and package versions. -source ../sysinfos -source ../functions -source ../packages-list - -PACKAGE=${1} -shift -CONFIGURE_OPTS=${*} - -# Applying patches (if any) -apply_patches ${PACKAGE} - -# Need to specify mandir manually because of a stupid programming error in tftpd sources... -cd ${LFS_TMP}/${PACKAGE} -./configure \ - --prefix=/usr \ - --sysconfdir=/etc \ - --mandir=/usr/man \ - --without-tcpwrappers \ - ${CONFIGURE_OPTS} -make -make install -ldconfig - -mkdir -v -p /srv/tftpboot - -# Addition to /etc/inetd.conf -string_add "tftp dgram udp wait root /usr/sbin/in.tftpd in.tftpd -s /srv/tftpboot -v -v -v -v -v" /etc/inetd.conf - -exit $? +#!/bin/bash + +hvconfig_pre() +{ + # Need to specify mandir manually because of a stupid programming error. + CONFIGURE_OPTS="\ + ${CONFIGURE_OPTS} \ + --mandir=/usr/man \ + --without-tcpwrappers" +} + +hvbuild_post() +{ + mkdir -v -p /srv/tftpboot + + # Addition to /etc/inetd.conf + string_add "tftp dgram udp wait root /usr/sbin/in.tftpd in.tftpd -s /srv/tftpboot -v -v -v -v -v" /etc/inetd.conf +}