1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00

Apply FreeBSD specific changes:

* 'ls --color' -> 'ls -G'
  * adjusted manpath

NOTE: Submitter is encouraged to submit the changes to the author.

PR:		105154 (based on)
Submitted by:	ingo.petersen.webfreenet.de
This commit is contained in:
Emanuel Haupt 2006-12-26 13:29:25 +00:00
parent 5977ae11ec
commit 9168b9be03
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=180797
4 changed files with 92 additions and 4 deletions

View File

@ -1,12 +1,13 @@
# New ports collection makefile for: tcshrc
# Date created: 2003-09-09
# Whom: Sean Chittenden <seanc@FreeBSD.org>
# Date created: 2003-09-09
# Whom: Sean Chittenden <seanc@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= tcshrc
PORTVERSION= 1.6.0
PORTREVISION= 1
CATEGORIES= shells
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= tcshrc
@ -14,12 +15,15 @@ MASTER_SITE_SUBDIR= tcshrc
MAINTAINER= ports@FreeBSD.org
COMMENT= A set of configuration scripts for the TCSH shell
NO_BUILD= yes
INSTALL_TARGET= systeminstall
MAKE_ARGS= BIN=${LOCALBASE}/bin SHARETCSHRC=${DATADIR}
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
do-build:
${REINPLACE_CMD} -e 's#/usr/share#${PREFIX}/share#g' ${WRKSRC}/tcshrc_config
post-patch:
@${REINPLACE_CMD} -e 's#/usr/share#${PREFIX}/share#g' \
${WRKSRC}/tcshrc_config
.include <bsd.port.mk>

View File

@ -0,0 +1,31 @@
--- ./src/tcshrc.alias.orig Fri Aug 13 19:04:01 2004
+++ ./src/tcshrc.alias Tue Dec 26 14:12:03 2006
@@ -21,7 +21,7 @@
## Standard aliases - convenience
# Color syntax
-alias ls 'ls --color'
+alias ls 'ls -G'
# Typicaly "more" does not allow you to use the arrow keys/etc for navigation.
# Thus, we try to use "less", if it exists. Some distros do not put the
# fileutils package and it is annoying if the alias exists without the app.
@@ -73,7 +73,7 @@
alias maek 'make'
alias alais 'alias'
alias csl 'clear'
-alias sl 'ls --color'
+alias sl 'ls -G'
## Aliases specific to TCSH
# What is the help command? Type "ls" and hit F1. Will show a help line.
@@ -127,3 +127,9 @@
#alias clean 'rm -f *~'
# This is useful to translators checking .po files.
alias msgcheck 'msgfmt -o /dev/null --statistics --strict --verbose'
+
+#Install `most` from he ports or package for coloured manpages
+
+if ( -e `where most`) then
+ alias man 'man -P most'
+endif
\ No newline at end of file

View File

@ -0,0 +1,22 @@
--- ./src/tcshrc.complete.orig Fri Aug 13 19:04:01 2004
+++ ./src/tcshrc.complete Tue Dec 26 14:12:31 2006
@@ -714,13 +714,12 @@
endif
unset _maildir
- if (! $?MANPATH) then
- if (-r /usr/share/man) then
- setenv MANPATH /usr/share/man:
- else
- setenv MANPATH /usr/man:
- endif
- endif
+
+# changed from original file to allow to use all manpathes found
+# by the manpath utility, not only one path
+
+unsetenv MANPATH
+setenv MANPATH `manpath`
if ($?traditional_complete) then
# use of $MANPATH from Dan Nicolaescu <dann@ics.uci.edu>

View File

@ -0,0 +1,31 @@
--- ./tcshrc_config.orig Fri Aug 13 19:21:42 2004
+++ ./tcshrc_config Tue Dec 26 14:13:16 2006
@@ -36,7 +36,7 @@
SYSTEM=y
;;
-v|--verbose)
- VERBOSE=--verbose
+ VERBOSE=-v
;;
-*)
usage
@@ -62,7 +62,18 @@
/bin/cp -f ${VERBOSE} ${SOURCE}/tcshrc.set ${HOME}/.tcshrc.set
/bin/cp -f ${VERBOSE} ${SOURCE}/tcshrc.alias ${HOME}/.tcshrc.alias
/bin/cp -f ${VERBOSE} ${SOURCE}/tcshrc.hosts ${HOME}/.tcshrc.hosts
- /bin/cp -u ${VERBOSE} ${SOURCE}/tcshrc.local ${HOME}/.tcshrc.local
+
+ if [ "`uname`" != "Linux" ] ; then
+ if [ -e "${HOME}/.tcshrc.local" ] ; then
+ /bin/cp -f ${VERBOSE} ${HOME}/.tcshrc.local ${HOME}/.tcshrc.local.old
+ /bin/cp -f ${VERBOSE} ${SOURCE}/tcshrc.local ${HOME}/.tcshrc.local
+
+ else /bin/cp -f ${VERBOSE} ${SOURCE}/tcshrc.local ${HOME}/.tcshrc.local
+ fi
+ else /bin/cp -u ${VERBOSE} ${SOURCE}/tcshrc.local ${HOME}/.tcshrc.local
+
+ fi
+
echo " done." >&2
exit 0
fi