You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.1 KiB

# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../qmailanalog/qmailanalog.conf
# Copyright (C) 2009 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
if [ "$prefix_auto" == 1 ]; then
prefix=opt/qmailanalog
set_confopt
fi
makeopt=
makeinstopt="setup check"
# the author loves to use head -1 and tail -1
# so we borow a gentoo fuction lookalike
#
ht_fix_file() {
for x in auto_home.c.do default.do Makefile ; do
sed -i -e 's,head -,head -n ,g' -e 's,tail -,tail -n ,g' ${x}
done
}
pkg_qmailan_configure() {
echo /$prefix > conf-home
echo $CC > conf-cc
echo $CC > conf-ld
}
hook_add preconf 5 "ht_fix_file"
hook_add premake 5 "pkg_qmailan_configure"