1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

Do the same trick with uk-pine.language as done with ru-pine.language

This commit is contained in:
Edwin Groothuis 2005-11-04 06:53:50 +00:00
parent 479c913aef
commit 18d9a46cf4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=147190
3 changed files with 41 additions and 8 deletions

View File

@ -15,19 +15,17 @@ COMMENT= Tune Pine for Ukrainian (KOI8-U) defaults
RUN_DEPENDS= pine:${PORTSDIR}/mail/pine4
BROKEN= Removes config file at deinstall-time
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>

View File

@ -0,0 +1,12 @@
#!/bin/sh
# $FreeBSD: /tmp/pcvs/ports/ukrainian/pine.language/files/Attic/pkg-deinstall.in,v 1.1 2005-11-04 06:53:50 edwin Exp $
cp %%LOCALBASE%%/etc/pine.conf %%LOCALBASE%%/etc/pine.conf.bak
z=`grep -n "UKRAINIAN 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

View File

@ -0,0 +1,23 @@
#!/bin/sh
# $FreeBSD: /tmp/pcvs/ports/ukrainian/pine.language/files/Attic/pkg-install.in,v 1.1 2005-11-04 06:53:50 edwin Exp $
if ! grep -q -i koi8 %%LOCALBASE%%/etc/pine.conf; then
echo "#### UKRAINIAN 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=dont-encode-8bit-text-and-subject,
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-U
#### UKRAINIAN PINE - DO NOT DELETE THIS LINE ####" \
>> %%LOCALBASE%%/etc/pine.conf
fi