mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
Unbreak port by using pkg-install and pkg-deinstall scripts.
Note to future submitters of ports: Don't throw away files from others ports.
This commit is contained in:
parent
34335dac02
commit
6072e8dd86
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=147188
@ -15,19 +15,17 @@ COMMENT= Tune Pine for Russian (KOI8-R) defaults
|
||||
|
||||
RUN_DEPENDS= pine:${PORTSDIR}/mail/pine4
|
||||
|
||||
BROKEN= Removes pine.conf at deinstallation
|
||||
DEPRECATED= ${BROKEN}
|
||||
EXPIRATION_DATE=2005-09-22
|
||||
|
||||
NO_WRKSUBDIR= YES
|
||||
NO_BUILD= YES
|
||||
PLIST_FILES= etc/pine.conf
|
||||
|
||||
SUB_FILES= pkg-install pkg-deinstall
|
||||
PKGINSTALL= ${WRKDIR}/pkg-install
|
||||
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
|
||||
|
||||
do-fetch:
|
||||
${DO_NADA}
|
||||
|
||||
do-install:
|
||||
${GREP} -q -i koi8 ${PREFIX}/etc/pine.conf || \
|
||||
${CAT} ${FILESDIR}/pine.add >> \
|
||||
${PREFIX}/etc/pine.conf
|
||||
@${SETENV} ${SCRIPTS_ENV} PGPLIB="${PGPLIB}" PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} pkg-install
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
12
russian/pine.language/files/pkg-deinstall.in
Normal file
12
russian/pine.language/files/pkg-deinstall.in
Normal file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
# $FreeBSD$
|
||||
|
||||
cp %%LOCALBASE%%/etc/pine.conf %%LOCALBASE%%/etc/pine.conf.bak
|
||||
|
||||
z=`grep -n "RUSSIAN PINE - DO NOT DELETE THIS LINE" %%LOCALBASE%%/etc/pine.conf | awk -F: '{ print $1 }'`
|
||||
z=`echo $z | sed -e 's/ /,/'`
|
||||
|
||||
sed -e "${z}d" < %%LOCALBASE%%/etc/pine.conf.bak > %%LOCALBASE%%/etc/pine.conf
|
||||
|
||||
rm %%LOCALBASE%%/etc/pine.conf.bak
|
21
russian/pine.language/files/pkg-install.in
Normal file
21
russian/pine.language/files/pkg-install.in
Normal file
@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
|
||||
# $FreeBSD$
|
||||
|
||||
if ! grep -q -i koi8 %%LOCALBASE%%/etc/pine.conf; then
|
||||
echo "#### RUSSIAN PINE - DO NOT DELETE THIS LINE ####
|
||||
############################### Preferences ################################
|
||||
|
||||
# List of features; see Pine's Setup/options menu for the current set.
|
||||
# e.g. feature-list= select-without-confirm, signature-at-bottom
|
||||
# Default condition for all of the features is no-.
|
||||
feature-list=enable-8bit-esmtp-negotiation,
|
||||
enable-8bit-nntp-posting,
|
||||
pass-control-characters-as-is
|
||||
|
||||
# Reflects capabilities of the display you have. Default: US-ASCII.
|
||||
# Typical alternatives include ISO-8859-x, (x is a number between 1 and 9).
|
||||
character-set=KOI8-R
|
||||
#### RUSSIAN PINE - DO NOT DELETE THIS LINE ####" \
|
||||
>> %%LOCALBASE%%/etc/pine.conf
|
||||
fi
|
Loading…
Reference in New Issue
Block a user