ports/145006: some of usefull tweaks for editors/jed
Grzegorz Blach
magik at roorback.net
Wed Mar 24 16:20:05 UTC 2010
>Number: 145006
>Category: ports
>Synopsis: some of usefull tweaks for editors/jed
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Wed Mar 24 16:20:05 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Grzegorz Blach
>Release: 8-STABLE
>Organization:
>Environment:
FreeBSD silver.nine 8.0-STABLE FreeBSD 8.0-STABLE #0 r205348: Sat Mar 20 03:26:16 CET 2010 root at silver.nine:/usr/obj/usr/src/sys/SILVER amd64
>Description:
I added two option for jed:
1) Respect permissions by Root - if disabled, this allow editing readonly files when jed is called by root
2) Look-up for hostname - if disabled, jed won't lookup for fqdn, which is used for creating lock files on nfs, but will freeze jed on startup for several second when dns server is not available.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
diff -ruN jed.old/Makefile jed/Makefile
--- jed.old/Makefile 2009-12-21 15:53:01.000000000 +0100
+++ jed/Makefile 2010-03-24 17:05:58.278826086 +0100
@@ -7,7 +7,7 @@
PORTNAME= jed
PORTVERSION= 0.99.19
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= editors
MASTER_SITES= ftp://space.mit.edu/pub/davis/jed/v${PORTVERSION:R}/ \
ftp://ftp.uni-stuttgart.de/pub/unix/misc/slang/jed/v${PORTVERSION:R}/ \
@@ -22,7 +22,9 @@
CONFLICTS= jed-devel-[0-9]*
-OPTIONS= X11 "Build xjed (depends of X11)" on
+OPTIONS= X11 "Build xjed (depends of X11)" on \
+ PERMS "Respect permissions by Root" on \
+ HOSTLOOKUP "Look-up for hostname" on
USE_BZIP2= yes
DIST_SUBDIR= jed
@@ -54,6 +56,11 @@
PLIST_SUB+= XJED=""
.endif
+.if defined(WITHOUT_HOSTLOOKUP)
+HOSTNAME!= hostname
+CFLAGS+= -DJED_HOSTNAME=\\\"${HOSTNAME}\\\"
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's,(DEST_JED_ROOT)/doc,(DEST_DOC_DIR),g' \
-e 's,\.\./info/\*,,' \
@@ -63,6 +70,9 @@
@${REINPLACE_CMD} -e '/MKINSDIR.*DEST_DOC_DIR/d' \
${WRKSRC}/src/Makefile.in
.endif
+.if defined(WITHOUT_PERMS)
+ @${REINPLACE_CMD} 's|jed_file_is_readonly (file, 1)|jed_file_is_readonly (file, 0)|' ${WRKSRC}/src/file.c
+.endif
post-configure:
@${REINPLACE_CMD} -e 's,\(.usr.bin.install\) *-c,\1 -s -m 555,' \
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list