hvconfig_post()
{
# Apply a sed which prevents the attempted installation of an invalid file:
- sed -i '/cmake/d' ${LFS_TMP}/${PACKAGE}-build/Makefile
+ sed -i '/cmake/d' ${BUILD_DIR}/Makefile
}
--enable-libstdcxx-time \
--enable-threads=posix"
- cd ${LFS_TMP}/${PACKAGE}
+ cd ${SRC_DIR}
# Change the StartFile Spec to point to the correct library location:
echo -en '\n' >> gcc/config/linux.h
# For Glibc to support NPTL:
hvconfig_cache()
{
-cat > ${LFS_TMP}/${PACKAGE}-build/config.cache << EOF
+cat > ${BUILD_DIR}/config.cache << EOF
libc_cv_forced_unwind=yes
libc_cv_c_cleanup=yes
libc_cv_gnu89_inline=yes
hvbuild()
{
- # Install headers
- cd ${LFS_TMP}/${PACKAGE}
-
local DESTDIR=${TOOLS_DIR}/include
install -dv ${DESTDIR}
# that can not run while cross-compiling or that do not run properly:
hvconfig_cache()
{
-cat > ${LFS_TMP}/${PACKAGE}-build/config.cache << EOF
+cat > ${BUILD_DIR}/config.cache << EOF
ac_cv_func_mmap_fixed_mapped=yes
ac_cv_func_strcoll_works=yes
ac_cv_func_working_mktime=yes
hvbuild()
{
- cd ${LFS_TMP}/${PACKAGE}
-
# Bzip2's default Makefile target automatically runs the testsuite as well.
# Disable the tests since they won't work on a multi-architecture build:
sed -e 's@^\(all:.*\) test@\1@g' -i Makefile
hvconfig_post()
{
# Apply a sed which prevents the attempted installation of an invalid file:
- sed -i '/cmake/d' ${LFS_TMP}/${PACKAGE}-build/Makefile
+ sed -i '/cmake/d' ${BUILD_DIR}/Makefile
}
hvconfig_post()
{
- cd ${LFS_TMP}/${PACKAGE}
+ cd ${BUILD_DIR}
sed -e 's/^#\(run_help2man.*dummy-man\)/\1/' \
-e 's/^\(run_help2man.*PERL.*\)/#\1/' \
-i Makefile
# config.cache to correct this, and fix various cross-compiling issues:
hvconfig_cache()
{
-cat > ${LFS_TMP}/${PACKAGE}-build/config.cache << EOF
+cat > ${BUILD_DIR}/config.cache << EOF
fu_cv_sys_stat_statfs2_bsize=yes
gl_cv_func_working_mkstemp=yes
EOF
# cross-compiling:
hvconfig_cache()
{
-cat > ${LFS_TMP}/${PACKAGE}-build/config.cache << EOF
+cat > ${BUILD_DIR}/config.cache << EOF
gl_cv_func_wcwidth_works=yes
ac_cv_func_fnmatch_gnu=yes
EOF
hvconfig_pre()
{
# Make sure that Flex doesn't try to include headers from /usr/include.
- sed -e "s/-I@includedir@//g" -i ${LFS_TMP}/${PACKAGE}/Makefile.in
+ sed -e "s/-I@includedir@//g" -i ${SRC_DIR}/Makefile.in
}
# When Cross Compiling the configure script does not determine the correct
# values for the following, Set the values manually:
hvconfig_cache()
{
-cat > ${LFS_TMP}/${PACKAGE}-build/config.cache << EOF
+cat > ${BUILD_DIR}/config.cache << EOF
ac_cv_func_malloc_0_nonnull=yes
ac_cv_func_realloc_0_nonnull=yes
EOF
hvconfig_pre()
{
sed -e 's/check-recursive all-recursive: check-for-shared-lib-support/check-recursive all-recursive:/' \
- -i ${LFS_TMP}/${PACKAGE}/extension/Makefile.in
+ -i ${SRC_DIR}/extension/Makefile.in
}
--enable-libstdcxx-time \
--enable-languages=c,c++"
- cd ${LFS_TMP}/${PACKAGE}
+ cd ${SRC_DIR}
# Change the StartFile Spec to point to the correct library location:
echo -en '\n' >> gcc/config/linux.h
hvbuild_post()
{
# Install the libiberty header file that is needed by some packages:
- cp -v ${LFS_TMP}/${PACKAGE}/include/libiberty.h ${TOOLS_DIR}/include
+ cp -v ${SRC_DIR}/include/libiberty.h ${TOOLS_DIR}/tools/include
}
# errors because of this assumption:
hvconfig_cache()
{
-cat > ${LFS_TMP}/${PACKAGE}-build/config.cache << EOF
+cat > ${BUILD_DIR}/config.cache << EOF
gl_cv_func_wcwidth_works=yes
EOF
}
# for the following, Set the values manually:
hvconfig_cache()
{
-cat > ${LFS_TMP}/${PACKAGE}-build/config.cache << EOF
+cat > ${BUILD_DIR}/config.cache << EOF
ac_cv_func_malloc_0_nonnull=yes
ac_cv_func_realloc_0_nonnull=yes
EOF
# Configure can not properly determine the results of the following tests:
hvconfig_cache()
{
-cat > ${LFS_TMP}/${PACKAGE}-build/config.cache << EOF
+cat > ${BUILD_DIR}/config.cache << EOF
gl_cv_func_btowc_eof=yes
gl_cv_func_mbrtowc_incomplete_state=yes
gl_cv_func_mbrtowc_sanitycheck=yes
# certain features:
hvconfig_cache()
{
-cat > ${LFS_TMP}/${PACKAGE}-build/config.cache << EOF
+cat > ${BUILD_DIR}/config.cache << EOF
ac_cv_func_strnlen_working=yes
EOF
}
hvbuild()
{
- cd ${LFS_TMP}/${PACKAGE}
-
sed -e "s@/usr/lib@/tools/lib@" \
-i src/Makefile
# Configure can not properly determine the results of a few tests.
hvconfig_cache()
{
-cat > ${LFS_TMP}/${PACKAGE}-build/config.cache << EOF
+cat > ${BUILD_DIR}/config.cache << EOF
gl_cv_func_wcwidth_works=yes
gl_cv_func_btowc_eof=yes
ac_cv_func_malloc_0_nonnull=yes
# cross-compiling:
hvconfig_cache()
{
-cat > ${LFS_TMP}/${PACKAGE}-build/config.cache << EOF
+cat > ${BUILD_DIR}/config.cache << EOF
scanf_cv_type_modifier=as
EOF
}
hvbuild()
{
- cd ${LFS_TMP}/${PACKAGE}
make -f Makefile-libbz2_so
make clean
make -j ${MAKEJOBS}
make PREFIX=/usr install
+}
+hvbuild_post()
+{
cp -fv bzip2-shared /bin/bzip2
cp -afv libbz2.so* /lib
ln -sfvT ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so
hvconfig_post()
{
# Apply a sed which prevents the attempted installation of an invalid file:
- sed -i '/cmake/d' ${LFS_TMP}/${PACKAGE}-build/Makefile
+ sed -i '/cmake/d' ${BUILD_DIR}/Makefile
}
hvconfig_pre()
{
- cd ${LFS_TMP}/${PACKAGE}
- sed -i 's%\(^sbindir =\).*%\1 @prefix@@sbindir@%' server/Makefile.in
+ sed -i 's%\(^sbindir =\).*%\1 @prefix@@sbindir@%' \
+ ${SRC_DIR}/server/Makefile.in
CONFIGURE_OPTS+=" \
--localstatedir=/var \
hvconfig_post()
{
- sed -i 's/-Werror//' {client,common,dst,omapip,relay,server,tests}/Makefile
+ sed -i 's/-Werror//' \
+ ${BUILD_DIR}/{client,common,dst,omapip,relay,server,tests}/Makefile
}
hvbuild_post()
{
# A patch will cause the Diffutils build system to attempt to rebuild
# the diff.1 man page using the unavailable program help2man:
- touch ${LFS_TMP}/${PACKAGE}/man/diff.1
+ touch ${SRC_DIR}/man/diff.1
}
{
local FIRMWARE_INSTALL_DIR="/lib/firmware"
- cd ${LFS_TMP}/${PACKAGE}/linux
+ cd ${SRC_DIR}/linux
b43-fwcutter -w ${FIRMWARE_INSTALL_DIR} wl_apsta.o
}
hvbuild_post()
{
# Install the libiberty header file that is needed by some packages:
- cp -v ${LFS_TMP}/${PACKAGE}/include/libiberty.h /usr/include
+ cp -v ${SRC_DIR}/include/libiberty.h /usr/include
ln -svf ../usr/bin/cpp /lib
ln -svf gcc /usr/bin/cc
--enable-obsolete-rpc \
--libexecdir=/usr/lib/glibc"
- cd ${LFS_TMP}/${PACKAGE}
-
# When running make install, a script called test-installation.pl performs a
# small sanity test on our newly installed Glibc. However, because our
# toolchain still points to the /tools directory, the sanity test would be
LINKER=$(readelf -l /tools/bin/bash | \
sed -n 's@.*interpret.*/tools\(.*\)]$@\1@p')
sed -i "s|libs -o|libs -L/usr/lib -Wl,-dynamic-linker=${LINKER} -o|" \
- scripts/test-installation.pl
+ ${SRC_DIR}/scripts/test-installation.pl
unset LINKER
- cd ${LFS_TMP}/${PACKAGE}-build
-
case "${HVL_TARGET}" in
"x86_64")
# Tell glibc to install its libraries into /lib:
- echo "slibdir=/lib" >> configparms
+ echo "slibdir=/lib" >> ${BUILD_DIR}/configparms
CONFIGURE_OPTS+=" --libdir=/usr/lib"
;;
esac
esac
# Install the configuration file and runtime directory for nscd:
- cp -v ${LFS_TMP}/${PACKAGE}/nscd/nscd.conf /etc/nscd.conf
+ cp -v ${SRC_DIR}/nscd/nscd.conf /etc/nscd.conf
mkdir -pv /var/cache/nscd
# The following instructions, instead of the install-locales target
hvbuild()
{
- cd ${LFS_TMP}/${PACKAGE}
make gdisk
install gdisk /usr/bin
}
hvconfig()
{
- cd ${LFS_TMP}/${PACKAGE}/source
+ cd ${SRC_DIR}/source
./configure ${CONFIGURE_OPTS}
}
# The arpd binary included in this package is dependent on Berkeley DB.
# Because arpd is not a very common requirement on a base Linux system,
# remove the dependency on Berkeley DB by applying the sed command below
- sed -i '/^TARGETS/s@arpd@@g' ${LFS_TMP}/${PACKAGE}/misc/Makefile
+ sed -i '/^TARGETS/s@arpd@@g' ${SRC_DIR}/misc/Makefile
}
hvbuild()
{
- cd ${LFS_TMP}/${PACKAGE}
-
# DESTDIR=
# This ensures that the IPRoute2 binaries will install into the correct
# directory. By default, DESTDIR is set to /usr.
hvbuild()
{
rm -rf /usr/src/${PACKAGE}
- mv ${LFS_TMP}/${PACKAGE} /usr/src
+ mv ${SRC_DIR} /usr/src
cd /usr/src/${PACKAGE}
hvbuild()
{
- # Install headers
- cd ${LFS_TMP}/${PACKAGE}
-
local DESTDIR=/usr/include
${HVMAKE} mrproper
sed -e '/^BUILD_ZLIB/s/True/False/' \
-e '/^INCLUDE/s,\./zlib-src,/usr/include,' \
-e '/^LIB/s,\./zlib-src,/usr/lib,' \
- -i ${LFS_TMP}/${PACKAGE}/cpan/Compress-Raw-Zlib/config.in
+ -i ${SRC_DIR}/cpan/Compress-Raw-Zlib/config.in
CONFIGURE_OPTS="\
--prefix=/usr \
hvconfig()
{
- cd ${LFS_TMP}/${PACKAGE}
+ cd ${SRC_DIR}
./configure.gnu ${CONFIGURE_OPTS}
}
hvconfig_pre()
{
# The following fixes an issue with Make 3.82:
- sed -i -r '/^-include/s/\*(.*)/proc\1 ps\1/' ${LFS_TMP}/${PACKAGE}/Makefile
+ sed -i -r '/^-include/s/\*(.*)/proc\1 ps\1/' ${SRC_DIR}/Makefile
}
{
CONFIGURE_OPTS+=" --libdir=/lib"
- cd ${LFS_TMP}/${PACKAGE}
-
# Reinstalling Readline will cause the old libraries to be moved to
# <libraryname>.old. While this is normally not a problem, in some
# cases it can trigger a linking bug in ldconfig. This can be
# avoided by issuing the following two seds:
- sed -i '/MV.*old/d' Makefile.in
- sed -i '/{OLDSUFF}/c:' support/shlib-install
+ sed -i '/MV.*old/d' ${SRC_DIR}/Makefile.in
+ sed -i '/{OLDSUFF}/c:' ${SRC_DIR}/support/shlib-install
}
hvbuild()
{
CONFIGURE_OPTS+=" --without-selinux"
- cd ${LFS_TMP}/${PACKAGE}
+ cd ${SRC_DIR}
# Disable the installation of the groups program and its man page, as
# Coreutils provides a better version.
hvbuild()
{
- cd ${LFS_TMP}/${PACKAGE}
-
make
make BINDIR=/sbin install
}
hvbuild()
{
- mkdir -pv ${LFS_TMP}/${PACKAGE}
- decompress_package ${TZDATA} ${LFS_TMP}/${PACKAGE}
+ mkdir -pv ${SRC_DIR}
+ decompress_package ${TZDATA} ${SRC_DIR}
- cd ${LFS_TMP}/${PACKAGE}
+ cd ${SRC_DIR}
ZONEINFO=/usr/share/zoneinfo
hvconfig_pre()
{
sed -e "s!^\(INSTALL_DIR=\).*!\1/sbin!" \
- -e "s!^\(INSTALL_LIB=\).*!\1/lib!" -i ${LFS_TMP}/${PACKAGE}/Makefile
+ -e "s!^\(INSTALL_LIB=\).*!\1/lib!" -i ${SRC_DIR}/Makefile
}
hvbuild_post()
hvbuild()
{
- cd ${LFS_TMP}/${PACKAGE}/wpa_supplicant
+ cd ${SRC_DIR}/wpa_supplicant
cat > .config << "EOF"
CONFIG_BACKEND=file
ipkg ${MSMTP}
fi
-ipkg ${PTH} "\
+ipkg -m acnb ${PTH} "\
--disable-static \
--mandir=/usr/share/man"
ipkg ${LIBASSUAN}
fi
fi
- cd ${LFS_TMP}/${PACKAGE}
+ cd ${SRC_DIR}
sed -i 's:32,:253,:' lib/Syntax.cxx
sed -i 's:LITLEN 240 :LITLEN 8092:' \
unicode/{gensyntax.pl,unicode.syn}
hvconfig_pre()
{
- cd ${LFS_TMP}/${PACKAGE}
sed -i -e "s@/usr/local/bin@/usr/bin@" \
-e "s@/usr/local/lib/perl5@/usr/lib/perl5/site_perl/$(get_pkg_ver ${PERL})@" \
-e "s@/usr/local/lib/www/docs@/usr/share/doc/perl5@" \
- Makefile
+ ${SRC_DIR}/Makefile
}
hvbuild()
{
- install -v -m 755 ${LFS_TMP}/${PACKAGE}/ack /usr/bin
+ install -v -m 755 ${SRC_DIR}/ack /usr/bin
string_add "alias ack='ack --pager=\"less -RFX\"'" /etc/bashrc
}
hvbuild()
{
- cd ${LFS_TMP}/${PACKAGE}
-
install -m644 bash_completion.sh /etc/profile.d/70-bash_completion.sh
cp -v bash_completion /etc/
install -d /etc/bash_completion.d
hvbuild()
{
- cd ${LFS_TMP}/${PACKAGE}
make linux
make prefix=/usr install
}
hvconfig()
{
- cd ${LFS_TMP}/${PACKAGE}
+ cd ${SRC_DIR}
./bootstrap --prefix=/usr \
--system-libs \
hvbuild()
{
- PREFIX=/usr make -C ${LFS_TMP}/${PACKAGE} install
+ make PREFIX=/usr install
+}
+hvbuild_post()
+{
install -v -m644 ${SCRDIR}/misc/colordiffrc /etc
}
-
hvconfig_pre()
{
- sed -i -e '/gets is a/d' ${LFS_TMP}/${PACKAGE}/gnu/stdio.in.h
+ sed -i -e '/gets is a/d' ${SRC_DIR}/gnu/stdio.in.h
}
hvbuild_post()
hvconfig_pre()
{
sed -i 's/#elif WITH_DES/#elif defined(WITH_DES)/' \
- ${LFS_TMP}/${PACKAGE}/plugins/digestmd5.c
+ ${SRC_DIR}/plugins/digestmd5.c
CONFIGURE_OPTS+=" \
--with-dbpath=/var/lib/sasl/sasldb2 \
hvbuild_post()
{
if [ "x${HVLABEL}" = "x${PACKAGE}-pass1" ]; then
- cd ${LFS_TMP}/${PACKAGE}
-
install -v -m700 -d /var/lib/sasl
install -v -m711 -d /var/run/saslauthd
hvbuild()
{
- cd ${LFS_TMP}/${PACKAGE}
install ddclient /usr/sbin
mkdir -p /etc/ddclient
cp sample-etc_ddclient.conf /etc/ddclient/ddclient.conf
hvbuild()
{
- cd ${LFS_TMP}/${PACKAGE}
-
install -v -m755 bin/collateindex.pl /usr/bin
install -v -m644 bin/collateindex.pl.1 /usr/share/man/man1
install -v -d -m755 \
hvconfig_pre()
{
- cd ${LFS_TMP}/${PACKAGE}
- sed -i 's:/html::' doc/HTML/Makefile.in
+ sed -i 's:/html::' ${SRC_DIR}/doc/HTML/Makefile.in
}
hvbuild_post()
hvbuild()
{
- cd ${LFS_TMP}/${PACKAGE}
install -v -d -m755 /usr/share/xml/docbook/xml-dtd-${DOCBOOK_XML_VER}
install -v -d -m755 /etc/xml
chown -R root:root .
hvbuild()
{
- cd ${LFS_TMP}/${PACKAGE}
-
install -v -m 755 -d \
/usr/share/xml/docbook/xsl-stylesheets-${DOCBOOK_XSL_VER}
chown -R root:root .
hvbuild()
{
- cd ${LFS_TMP}/${PACKAGE}
make
make PREFIX=/usr SBINDIR=/sbin install
}
hvbuild()
{
- install -m 644 ${LFS_TMP}/${PACKAGE}/src/ladspa.h /usr/include
+ install -m 644 ${SRC_DIR}/src/ladspa.h /usr/include
}
hvconfig()
{
- cd ${LFS_TMP}/${PACKAGE}
+ cd ${SRC_DIR}
mkdir build
cd build
hvbuild()
{
+ cd ${SRC_DIR}/build
+
make
SEGMENTS="Client Server IniFiles ManPages SharedLibraries"
hvbuild()
{
- cd ${LFS_TMP}/${PACKAGE}
-
MAKEDEPPROG=gcc CC=gcc ./config \
--prefix=/usr \
--openssldir=/etc/ssl \
hvbuild()
{
- cd ${LFS_TMP}/${PACKAGE}
-
# ZLIB=no: Prevents compression of the pci.ids file.
make PREFIX=/usr \
SHAREDIR=/usr/share/misc \
hvconfig_pre()
{
- cd ${LFS_TMP}/${PACKAGE}
-
+ cd ${SRC_DIR}
sed -i '/servname/s:rpcbind:sunrpc:' src/rpcbind.c
sed -i '/error = getaddrinfo/s:rpcbind:sunrpc:' src/rpcinfo.c
}
mkdir -p /var/spool/mqueue
mkdir -p /etc/mail
- cd ${LFS_TMP}/${PACKAGE}
cat > devtools/Site/site.config.m4 << "EOF"
define(`confMANGRP',`root')
define(`confMANOWN',`root')
EOF
cd /etc/mail
- cp -R ${LFS_TMP}/${PACKAGE}/cf/* .
+ cp -R ${SRC_DIR}/cf/* .
cat > /etc/mail/submit.mc << "EOF"
dnl
include(`./m4/cf.m4')dnl
dnl
EOF
- cat ${LFS_TMP}/${PACKAGE}/cf/cf/submit.mc >> /etc/mail/submit.mc
+ cat ${SRC_DIR}/cf/cf/submit.mc >> /etc/mail/submit.mc
sed -i "s!\(^FEATURE.*\)127.0.0.1\(.*\)!\1${MACHINE_NAME}\.${DOMAIN}\2!" /etc/mail/submit.mc
newaliases -v
{
# This package does not distribute some autoconf files, and symlinks them
# to /usr/share/automake.
- cd ${LFS_TMP}/${PACKAGE}
- autoreconf -f -i
+ cd ${SRC_DIR}
+ autoreconf -f -vi
CAT1="/etc/sgml/sgml-ent.cat"
CAT2="/usr/share/sgml/sgml-iso-entities-8879.1986/catalog"
hvbuild()
{
- cd ${LFS_TMP}/${PACKAGE}
sed -i -e '/ISO 8879/d' \
-e 's|DTDDECL "-//OASIS//DTD DocBook V3.1//EN"|SGMLDECL|g' \
docbook.cat
hvbuild()
{
- cd ${LFS_TMP}/${PACKAGE}
sed -i -e '/ISO 8879/d' \
-e '/gml/d' docbook.cat
install -v -d /usr/share/sgml/docbook/sgml-dtd-${SGML_DTD4_VER}
CONFIGURE_OPTS+=" \
--without-selinux"
- cd ${LFS_TMP}/${PACKAGE}
+ cd ${SRC_DIR}
# Disable the installation of the groups program and its man page, as
# Coreutils provides a better version.
hvconfig_pre()
{
- cd ${LFS_TMP}/${PACKAGE}
- sed -i -e "s,^extern char \*malloc();,/* & */," scaffold.c
+ sed -i -e "s,^extern char \*malloc();,/* & */," ${SRC_DIR}/scaffold.c
}
hvbuild()
hvbuild()
{
- cd ${LFS_TMP}/${PACKAGE}
make -f makefile
install -v -m755 unrar /usr/bin
}
UNZIP_TARGET=linux
esac
- cd ${LFS_TMP}/${PACKAGE}
make -f unix/Makefile LOCAL_UNZIP=-D_FILE_OFFSET_BITS=64 ${UNZIP_TARGET}
make prefix=/usr install
}
hvbuild()
{
- cd ${LFS_TMP}/${PACKAGE}
make PREFIX=/usr
- make install PREFIX=/usr
+ make PREFIX=/usr install
}
hvconfig_pre()
{
- cd ${LFS_TMP}/${PACKAGE}
sed -i -e 's@$(INSTALL) man/zip.1@$(INSTALL_PROGRAM) man/zip.1@' \
- unix/Makefile
+ ${SRC_DIR}/unix/Makefile
}
hvbuild()
# Mesa builds with debugging symbols. Remove the -g switch from both CFLAGS
# and CXXFLAGS with this command:
- sed 's@FLAGS=\"-g@FLAGS=\"@' -i ${LFS_TMP}/${PACKAGE}/configure
+ sed 's@FLAGS=\"-g@FLAGS=\"@' -i ${SRC_DIR}/configure
}
hvconfig_pre()
{
- sed -i '/v0/,+1s/new:/new:kb=^?:/' ${LFS_TMP}/${PACKAGE}/termcap
- echo -e '\tkbs=\\177,' >> ${LFS_TMP}/${PACKAGE}/terminfo
+ sed -i '/v0/,+1s/new:/new:kb=^?:/' ${SRC_DIR}/termcap
+ echo -e '\tkbs=\\177,' >> ${SRC_DIR}/terminfo
export TERMINFO=/usr/share/terminfo
CONFIGURE_OPTS+=" \
hvconfig_pre()
{
- cd ${LFS_TMP}/${PACKAGE}
+ cd ${SRC_DIR}
rm -rf libltdl
./bootstrap
hvconfig_pre()
{
- cd ${LFS_TMP}/${PACKAGE}
-
- cat >> config.layout << "EOF" &&
+ cat >> ${SRC_DIR}/config.layout << "EOF" &&
# BLFS FHS layout
<Layout FHS>
prefix: /usr
hvbuild()
{
- cd ${LFS_TMP}/${PACKAGE}
./bootstrap.sh --prefix=/usr
./b2 stage threading=multi link=shared
./b2 install threading=multi link=shared
hvbuild()
{
- cd ${LFS_TMP}/${PACKAGE}
make INS_BASE=/usr DEFINSUSR=root DEFINSGRP=root
make INS_BASE=/usr DEFINSUSR=root DEFINSGRP=root install
hvbuild_post()
{
- install -v -m755 ${LFS_TMP}/${PACKAGE}/chordpack /usr/local/bin
+ install -v -m755 ${SRC_DIR}/chordpack /usr/local/bin
# Install Emacs Chordpro mode
- install -v -m644 ${LFS_TMP}/${PACKAGE}/chordpro-mode.el ${EMACS_LOCAL_SITE_LISP}
+ install -v -m644 ${SRC_DIR}/chordpro-mode.el ${EMACS_LOCAL_SITE_LISP}
}
hvbuild()
{
- cd ${LFS_TMP}/${PACKAGE}/src
+ cd ${SRC_DIR}/src
gcc -O9 -s -o cups-pdf cups-pdf.c
install -v -m 0700 cups-pdf /usr/lib/cups/backend
- cd ${LFS_TMP}/${PACKAGE}
+ cd ${SRC_DIR}
cp extra/cups-pdf.conf /etc/cups
cp extra/CUPS-PDF.ppd /usr/share/cups/model
}
hvbuild()
{
- cd ${LFS_TMP}/${PACKAGE}
make all rpl8 btcflash
make prefix=/usr install
install -v -m644 -D index.html /usr/share/doc/${PACKAGE}/index.html
FIREFOX_VERSION="$(get_pkg_ver ${PACKAGE})"
FIREFOX_PKG_VERSION="firefox-$(get_pkg_ver ${PACKAGE})"
- cd ${LFS_TMP}/${PACKAGE}
+ cd ${SRC_DIR}
# Use the default settings specified in the source tree.
echo '. $topsrcdir/browser/config/mozconfig' > .mozconfig
hvbuild()
{
- cd ${LFS_TMP}/${PACKAGE}
-
make
./getweb 1020
make install
{
export GS_FONTS_PATH="${HV_FONTS_PATH}/ghostscript"
- cd ${LFS_TMP}/${PACKAGE}
+ cd ${SRC_DIR}
# To use the system-installed version of JasPer:
rm -rf jasper
hvbuild_post()
{
- cd ${LFS_TMP}/${PACKAGE}
-
install -v -m755 -d /usr/share/texmf-local/gchords-guitartex
install -v -m644 gchords/gchords.sty /usr/share/texmf-local/gchords-guitartex
hvbuild()
{
- cd ${LFS_TMP}/${PACKAGE}
-
${HVMAKE}
${HVMAKE} prefix=/usr install
}
hvbuild_post()
{
- cd ${LFS_TMP}/${PACKAGE}
-
install -dv \
/etc/lighttpd \
/var/log/lighttpd \
/var/lib/lighttpd/sockets \
/var/cache/lighttpd
- cp -R doc/config/conf.d/ doc/config/*.conf doc/config/vhosts.d/ \
- /etc/lighttpd/
+ cp -R ${SRC_DIR}/doc/config/{conf.d/,*.conf,vhosts.d/} /etc/lighttpd/
chown -R www.www \
/etc/lighttpd \
chown -v -R ${HTTPD_USER}:${HTTPD_USER} /srv/www
# Bootscript
- cp -p doc/initscripts/sysconfig.lighttpd /etc/sysconfig/lighttpd
+ cp -p ${SRC_DIR}/doc/initscripts/sysconfig.lighttpd /etc/sysconfig/lighttpd
install -v -m740 ${SCRDIR}/bootscripts/lighttpd /etc/rc.d/init.d
hvbuild()
{
- cd ${LFS_TMP}/${PACKAGE}
./install.sh
}
hvbuild()
{
- cd ${LFS_TMP}/${PACKAGE}
make linux
make INSTALL_TOP=/usr \
TO_LIB="liblua.so liblua.so.5.2 liblua.so.5.2.3" \
hvbuild()
{
- cd ${LFS_TMP}/${PACKAGE}
-
make build
make PREFIX=/usr install-bin
}
hvbuil()
{
- cd ${LFS_TMP}/${PACKAGE}
make
make PREFIX=/usr install
}
hvbuild()
{
- cd ${LFS_TMP}/${PACKAGE}/nss
+ cd ${SRC_DIR}/nss
# This package does not support parallel build
make BUILD_OPT=1 \
hvbuild_post()
{
- cd ${LFS_TMP}/${PACKAGE}/dist
+ cd ${SRC_DIR}/dist
install -v -m755 Linux*/lib/*.so /usr/lib
install -v -m644 Linux*/lib/{*.chk,libcrmf.a} /usr/lib
if [ -f /etc/php.ini ]; then
cp /etc/php.ini /etc/php.ini.old
fi
- cp ${LFS_TMP}/${PACKAGE}/php.ini-production /etc/php.ini
+ cp ${SRC_DIR}/php.ini-production /etc/php.ini
if [ "x${USE_HTTPD}" = "xyes" ]; then
# To enable PHP support in the Apache web server, a new AddType
hvbuild()
{
- cd ${LFS_TMP}/${PACKAGE}
make \
BASENAME=/usr \
LOCKINGTEST=/tmp \
hvconfig()
{
- cd ${LFS_TMP}/${PACKAGE}
- pwd
- ls *
+ cd ${SRC_DIR}
./waf configure \
--prefix=/usr
}
hvconfig_pre()
{
- cd ${LFS_TMP}/${PACKAGE}
+ cd ${SRC_DIR}
sed -i -e "/#if/d" -e "/#error/d" -e "/#endif/d" \
config.tests/unix/libmng/libmng.cpp
hv_useradd --system -c saned -d /dev/null -g saned -s /bin/false saned
# Fixes an obsolete udev parameter:
- sed -i 's/SYSFS/ATTRS/g' ${LFS_TMP}/${PACKAGE}/tools/sane-desc.c
+ sed -i 's/SYSFS/ATTRS/g' ${SRC_DIR}/tools/sane-desc.c
CONFIGURE_OPTS+=" --with-x=${USE_X_OPTION}"
}
hvbuild()
{
- cd ${LFS_TMP}/${PACKAGE}
make DISABLE_JBIG=1
make install
}
hvbuild()
{
- mv ${LFS_TMP}/${PACKAGE} /srv/www/htdocs/squirrelmail
+ mv ${SRC_DIR} /srv/www/htdocs/squirrelmail
chown -v -R ${HTTPD_USER}:${HTTPD_USER} /srv/www/htdocs/squirrelmail
mkdir -v -p /srv/squirrelmail/{data,attach}
hvbuild()
{
- cd ${LFS_TMP}/${PACKAGE}
-
mkdir -p builds/unix
cd builds/unix
sed -i -e 's|PARENT/\.\./texmf-local|PARENT/texmf-local|' \
-e 's|\$TEXMFVAR/fonts|/var/lib/livetex/fonts|' \
- ${LFS_TMP}/${PACKAGE}/texk/kpathsea/texmf.cnf
+ ${SRC_DIR}/texk/kpathsea/texmf.cnf
CONFIGURE_OPTS+=" \
--disable-native-texlive-build \
hvbuild_post()
{
- cp -a ${LFS_TMP}/${PACKAGE}/utils/biber/TeXLive /usr/lib/perl5/site_perl/$(get_pkg_ver ${PERL})
+ cp -a ${SRC_DIR}/utils/biber/TeXLive \
+ /usr/lib/perl5/site_perl/$(get_pkg_ver ${PERL})
rm -v /usr/texmf{,-dist}
install -v -m1777 -d /var/lib/livetex/fonts
hvbuild()
{
- cd ${LFS_TMP}/${PACKAGE}
-
# Setting default mailbox format for imapd
sed -i -e "s!^\(CREATEPROTO=\)unixproto!\1${MAILBOX_FORMAT}proto!" \
src/osdep/unix/Makefile
ln -sf /usr/lib/uw-imap/lib/c-client.a /usr/lib/uw-imap/lib/libc-client.a
install -v -m 644 c-client/*.h /usr/lib/uw-imap/include
install -v -m 644 src/osdep/tops-20/shortsym.h /usr/lib/uw-imap/include
+}
+hvbuild_post()
+{
# Addition to xinetd
cat > /etc/xinetd.d/imapd << "EOF"
service imap
hvconfig_pre()
{
- cd ${LFS_TMP}/${PACKAGE}
- mv configure.sh configure
+ mv ${SRC_DIR}/configure{.sh,}
}
hvconfig_pre()
{
- sed -i -e 's/png_ptr->jmpbuf/png_jmpbuf(png_ptr)/' ${LFS_TMP}/${PACKAGE}/src/xsane-save.c
+ sed -i -e 's/png_ptr->jmpbuf/png_jmpbuf(png_ptr)/' \
+ ${SRC_DIR}/src/xsane-save.c
}
hvbuild_post()