diff options
author | kuriyama <kuriyama@FreeBSD.org> | 1999-01-02 20:26:11 +0800 |
---|---|---|
committer | kuriyama <kuriyama@FreeBSD.org> | 1999-01-02 20:26:11 +0800 |
commit | 62617a95079bfb67512418cc2b503b95d45ca2c8 (patch) | |
tree | 7959819f5313c2ef8e30821cf401a25f37fbb850 /editors/emacs19 | |
parent | 800bddecd733c1ea916be67d237e05fce464ea50 (diff) | |
download | freebsd-ports-gnome-62617a95079bfb67512418cc2b503b95d45ca2c8.tar.gz freebsd-ports-gnome-62617a95079bfb67512418cc2b503b95d45ca2c8.tar.zst freebsd-ports-gnome-62617a95079bfb67512418cc2b503b95d45ca2c8.zip |
Lock file correction and reflect change in /etc/mtree/BSD.local.dist.
PR: ports/8289 (part of)
Submitted by: Satoshi Taoka <taoka@infonets.hiroshima-u.ac.jp>
Diffstat (limited to 'editors/emacs19')
-rw-r--r-- | editors/emacs19/Makefile | 9 | ||||
-rw-r--r-- | editors/emacs19/files/emacs.sh | 10 | ||||
-rw-r--r-- | editors/emacs19/pkg-plist | 6 |
3 files changed, 21 insertions, 4 deletions
diff --git a/editors/emacs19/Makefile b/editors/emacs19/Makefile index 7a8d539e944c..9957ad38ce08 100644 --- a/editors/emacs19/Makefile +++ b/editors/emacs19/Makefile @@ -3,7 +3,7 @@ # Date created: 29 October 1994 # Whom: jkh # -# $Id: Makefile,v 1.31 1998/04/04 07:36:40 asami Exp $ +# $Id: Makefile,v 1.32 1998/09/14 07:26:02 asami Exp $ # DISTNAME= emacs-19.34b @@ -18,7 +18,8 @@ NO_LATEST_LINK= yes WRKSRC= ${WRKDIR}/emacs-19.34 GNU_CONFIGURE= yes USE_GMAKE= yes -CONFIGURE_ARGS= i386--freebsd --with-x-toolkit +CONFIGURE_ARGS= i386--freebsd --with-x-toolkit \ + --sharedstatedir=/var/run STRIP= MAN1= emacs.1 etags.1 ctags.1 @@ -32,5 +33,9 @@ post-install: .for info in emacs vip viper forms gnus mh-e cl sc dired-x ediff ccmode message install-info ${PREFIX}/info/${info} ${PREFIX}/info/dir .endfor +# install emacs.sh into ${PREFIX}/etc/rc.d + chmod 1777 /var/run/emacs/lock + @${MKDIR} ${PREFIX}/etc/rc.d + @${INSTALL_SCRIPT} ${FILESDIR}/emacs.sh ${PREFIX}/etc/rc.d .include <bsd.port.mk> diff --git a/editors/emacs19/files/emacs.sh b/editors/emacs19/files/emacs.sh new file mode 100644 index 000000000000..09baabfd255c --- /dev/null +++ b/editors/emacs19/files/emacs.sh @@ -0,0 +1,10 @@ +#!/bin/sh +if [ -d /var/run/emacs/lock ] +then + rm -f /var/run/emacs/lock/* +else + mkdir -p /var/run/emacs/lock +fi +chmod 1777 /var/run/emacs/lock +exit 0 + diff --git a/editors/emacs19/pkg-plist b/editors/emacs19/pkg-plist index 9bb26b6d7d61..64141be5d27d 100644 --- a/editors/emacs19/pkg-plist +++ b/editors/emacs19/pkg-plist @@ -8,9 +8,10 @@ bin/etags bin/emacsclient @exec if [ ! -d %d/share/emacs/site-lisp ]; then mkdir -p %D/share/emacs/site-lisp; fi @exec if [ ! -d %d/share/emacs/%%EMACS_VERSION%%/site-lisp ]; then mkdir -p %D/share/emacs/%%EMACS_VERSION%%/site-lisp; fi -@comment these two can fail if other ports are installed, no need to +@exec mkdir -p /var/run/emacs/lock ; chmod 1777 /var/run/emacs/lock +etc/rc.d/emacs.sh +@comment This can fail if other ports are installed, no need to @comment scare user in that case -@unexec rmdir %D/share/emacs/site-lisp 2>/dev/null || true @unexec rmdir %D/share/emacs/%%EMACS_VERSION%%/site-lisp 2>/dev/null || true @unexec install-info --delete %D/info/emacs %D/info/dir @unexec install-info --delete %D/info/vip %D/info/dir @@ -125,6 +126,7 @@ libexec/emacs/%%EMACS_VERSION%%/i386--freebsd/vcdiff libexec/emacs/%%EMACS_VERSION%%/i386--freebsd/yow @dirrm libexec/emacs/%%EMACS_VERSION%%/i386--freebsd @dirrm libexec/emacs/%%EMACS_VERSION%% +@unexec rmdir %D/libexec/emacs 2>/dev/null || true share/emacs/%%EMACS_VERSION%%/etc/3B-MAXMEM share/emacs/%%EMACS_VERSION%%/etc/AIX.DUMP share/emacs/%%EMACS_VERSION%%/etc/BABYL |