Upgrade to keyutils-1.5.9
[hvlinux.git] / stage5 / pkg / tftp-hpa
index 4fe70ce..351c429 100644 (file)
@@ -1,36 +1,29 @@
-#!/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+=" \
+        --mandir=/usr/man \
+        --without-tcpwrappers"
+}
+
+hvbuild_post()
+{
+    mkdir -v -p /srv/tftpboot
+
+    # Addition to xinetd
+    cat > /etc/xinetd.d/tftp << "EOF"
+service tftp
+{
+   disable        = no
+   socket_type    = dgram
+   protocol       = udp
+   wait           = yes
+   user           = root
+   server         = /usr/sbin/in.tftpd
+   server_args    = -s /srv/tftpboot -v -v -v -v -v
+   log_type       = SYSLOG local4 info
+}
+EOF
+}