[X]Emacs major mode for editing Apache configuration files

WWW: http://www.emacswiki.org/cgi-bin/wiki/apache-mode.el

PR:		ports/105567
Submitted by:	Max N. Boyarov <m.boyarov@bsd.by>
This commit is contained in:
Pav Lucistnik 2006-11-21 20:56:01 +00:00
parent 9c106d9a3e
commit 00192b6e9f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=177754
6 changed files with 60 additions and 0 deletions

View file

@ -17,6 +17,7 @@
SUBDIR += apache-contrib
SUBDIR += apache-forrest
SUBDIR += apache-jserv
SUBDIR += apache-mode.el
SUBDIR += apache13
SUBDIR += apache13+ipv6
SUBDIR += apache13-modperl

View file

@ -0,0 +1,34 @@
# New ports collection makefile for: apache-mode.el
# Date created: 15 Nov 2006
# Whom: Max N. Boyarov <m.boyarov@bsd.by>
#
# $FreeBSD$
PORTNAME= apache-mode.el
PORTVERSION= 2.0
CATEGORIES= www elisp
MASTER_SITES= http://ncd0.bsd.by/ports/distfiles/ \
http://www.emacswiki.org/cgi-bin/wiki/download/
DISTNAME= apache-mode.el
EXTRACT_SUFX= # empty
EXTRACT_ONLY= # empty
MAINTAINER= m.boyarov@bsd.by
COMMENT= [X]Emacs major mode for editing Apache configuration files
NO_WRKSUBDIR= yes
NO_BUILD= yes
EMACSLISPDIR= ${PREFIX}/share/emacs/site-lisp
XEMACSLISPDIR= ${PREFIX}/lib/xemacs/site-lisp
do-install:
${MKDIR} ${EMACSLISPDIR}
${MKDIR} ${XEMACSLISPDIR}
${INSTALL_DATA} ${DISTDIR}/${DISTNAME} ${EMACSLISPDIR}/${PORTNAME}
${LN} -sf ${EMACSLISPDIR}/${PORTNAME} ${XEMACSLISPDIR}/${PORTNAME}
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
MD5 (apache-mode.el) = 9defd945a335d3128e5b89eeb83b815b
SHA256 (apache-mode.el) = 3356ff06dfbaaefdb0b36b5ac7b967f6ad26b4274a7b0785d8e808de9d8d5a9f
SIZE (apache-mode.el) = 18236

View file

@ -0,0 +1,3 @@
[X]Emacs major mode for editing Apache configuration files
WWW: http://www.emacswiki.org/cgi-bin/wiki/apache-mode.el

View file

@ -0,0 +1,15 @@
===================================================================
Put this in your .emacs file to enable autoloading of apache-mode,
and auto-recognition of Apache configs:
(autoload 'apache-mode "apache-mode" nil t)
(add-to-list 'auto-mode-alist '("\\.htaccess\\'" . apache-mode))
(add-to-list 'auto-mode-alist '("httpd\\.conf\\'" . apache-mode))
(add-to-list 'auto-mode-alist '("srm\\.conf\\'" . apache-mode))
(add-to-list 'auto-mode-alist '("access\\.conf\\'" . apache-mode))
(add-to-list 'auto-mode-alist
'("sites-\\(available\\|enabled\\)/" . apache-mode))
===================================================================

View file

@ -0,0 +1,4 @@
lib/xemacs/site-lisp/apache-mode.el
share/emacs/site-lisp/apache-mode.el
@dirrmtry lib/xemacs/site-lisp
@dirrmtry lib/xemacs