freebsd-ports/security/rkhunter/files/patch-installer.sh
Richard Gallamore 3431e28b73 * Add fetch function to rkhunter
* Remove wget as a dependency
* Added NO_ARCH
* Fixed portlint items

PR:		219825
Submitted by:	Helge Oldach <freebsd@oldach.net>
Reviewed by:	matthew (mentor)
Approved by:	Lukasz Wasikowski <lukasz@wasikowski.net> (maintainer), matthew (mentor)
Differential Revision:	https://reviews.freebsd.org/D11168
2017-06-14 00:14:21 +00:00

49 lines
1.5 KiB
Bash

--- installer.sh.orig 2014-02-24 02:37:15 UTC
+++ installer.sh
@@ -392,7 +392,7 @@ selectTemplate() { # Take input from the "--install pa
RKHINST_ETC_DIR="${SYSCONFIGDIR}"
RKHINST_BIN_DIR="${BINDIR}"
RKHINST_SCRIPT_DIR="${LIBDIR}/${APPNAME}/scripts"
- RKHINST_MAN_DIR="${SHAREDIR}/man/man8"
+ RKHINST_MAN_DIR="${PREFIX}/man/man8"
if [ "${RKHINST_LAYOUT}" = "oldschool" ]; then
RKHINST_DB_DIR="${VARDIR}/${APPNAME}/db"
@@ -406,12 +406,12 @@ selectTemplate() { # Take input from the "--install pa
elif [ "${RKHINST_LAYOUT}" = "TXZ" ]; then
RKHINST_DB_DIR="${VARDIR}/lib/${APPNAME}/db"
RKHINST_TMP_DIR="${VARDIR}/lib/${APPNAME}/tmp"
- RKHINST_DOC_DIR="${PREFIX}/doc/${APPNAME}-${APPVERSION}"
+ RKHINST_DOC_DIR="${PREFIX}/doc/${APPNAME}"
RKHINST_MAN_DIR="${PREFIX}/man/man8"
else
RKHINST_DB_DIR="${VARDIR}/lib/${APPNAME}/db"
RKHINST_TMP_DIR="${VARDIR}/lib/${APPNAME}/tmp"
- RKHINST_DOC_DIR="${SHAREDIR}/doc/${APPNAME}-${APPVERSION}"
+ RKHINST_DOC_DIR="${SHAREDIR}/doc/${APPNAME}"
fi
RKHINST_LANG_DIR="${RKHINST_DB_DIR}/i18n"
@@ -1099,22 +1099,6 @@ doRemove() {
fi
fi
done
-
-
- # Application
- for FILE in ${RKHINST_BIN_FILES}; do
- if [ -f "${RKHINST_BIN_DIR}/${FILE}" ]; then
- rm -f "${RKHINST_BIN_DIR}/${FILE}" >/dev/null 2>&1
- ERRCODE=$?
-
- if [ $ERRCODE -eq 0 ]; then
- echo " Removing ${RKHINST_BIN_DIR}/${FILE}: OK"
- else
- echo " Removing ${RKHINST_BIN_DIR}/${FILE}: FAILED: Code $ERRCODE"
- fi
- fi
- done
-
# Configuration file
for FILE in ${RKHINST_ETC_FILE}; do