View | Details | Raw Unified | Return to bug 8289 | Differences between
and this patch

Collapse All | Expand All

(-)emacs/Makefile (-1 / +6 lines)
Lines 18-24 Link Here
18
WRKSRC=		${WRKDIR}/emacs-19.34
18
WRKSRC=		${WRKDIR}/emacs-19.34
19
GNU_CONFIGURE=	yes
19
GNU_CONFIGURE=	yes
20
USE_GMAKE=	yes
20
USE_GMAKE=	yes
21
CONFIGURE_ARGS=	i386--freebsd --with-x-toolkit
21
CONFIGURE_ARGS=	i386--freebsd --with-x-toolkit \
22
		--sharedstatedir=/var/run
22
STRIP=
23
STRIP=
23
MAN1=		emacs.1 etags.1 ctags.1
24
MAN1=		emacs.1 etags.1 ctags.1
24
25
Lines 32-36 Link Here
32
.for info in emacs vip viper forms gnus mh-e cl sc dired-x ediff ccmode message
33
.for info in emacs vip viper forms gnus mh-e cl sc dired-x ediff ccmode message
33
	install-info ${PREFIX}/info/${info} ${PREFIX}/info/dir
34
	install-info ${PREFIX}/info/${info} ${PREFIX}/info/dir
34
.endfor
35
.endfor
36
# install emacs.sh into ${PREFIX}/etc/rc.d
37
	chmod 1777 /var/run/emacs/lock
38
	@${MKDIR} ${PREFIX}/etc/rc.d
39
	@${INSTALL_SCRIPT} ${FILESDIR}/emacs.sh ${PREFIX}/etc/rc.d
35
40
36
.include <bsd.port.mk>
41
.include <bsd.port.mk>
(-)emacs/files/emacs.sh (+10 lines)
Line 0 Link Here
1
#!/bin/sh
2
if [ -d /var/run/emacs/lock ]
3
then
4
    rm -f /var/run/emacs/lock/*
5
else
6
    mkdir -p /var/run/emacs/lock
7
fi
8
chmod 1777 /var/run/emacs/lock
9
exit 0
10
(-)emacs/pkg/PLIST (+2 lines)
Lines 8-13 Link Here
8
bin/emacsclient
8
bin/emacsclient
9
@exec if [ ! -d %d/share/emacs/site-lisp ]; then mkdir -p %D/share/emacs/site-lisp; fi
9
@exec if [ ! -d %d/share/emacs/site-lisp ]; then mkdir -p %D/share/emacs/site-lisp; fi
10
@exec if [ ! -d %d/share/emacs/%%EMACS_VERSION%%/site-lisp ]; then mkdir -p %D/share/emacs/%%EMACS_VERSION%%/site-lisp; fi
10
@exec if [ ! -d %d/share/emacs/%%EMACS_VERSION%%/site-lisp ]; then mkdir -p %D/share/emacs/%%EMACS_VERSION%%/site-lisp; fi
11
@exec mkdir -p /var/run/emacs/lock ; chmod 1777 /var/run/emacs/lock
12
etc/rc.d/emacs.sh
11
@comment these two can fail if other ports are installed, no need to
13
@comment these two can fail if other ports are installed, no need to
12
@comment scare user in that case
14
@comment scare user in that case
13
@unexec rmdir %D/share/emacs/site-lisp 2>/dev/null || true
15
@unexec rmdir %D/share/emacs/site-lisp 2>/dev/null || true

Return to bug 8289