mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-02 11:09:29 +00:00
- Add a patch for cleanup of temp directories upon exit
- Move PLIST into Makefile - Bump PORTREVISION PR: ports/119783 Submitted by: scf (maintainer)
This commit is contained in:
parent
f90d2a6bf9
commit
d13d6b6d3e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=208922
@ -8,7 +8,7 @@
|
||||
|
||||
PORTNAME= cscope
|
||||
PORTVERSION= 15.6
|
||||
PORTREVISION= 0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
@ -19,6 +19,8 @@ COMMENT= An interactive C program browser
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --with-yacc
|
||||
|
||||
PLIST_FILES= bin/cscope \
|
||||
bin/ocs
|
||||
MAN1= cscope.1
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,6 +1,6 @@
|
||||
--- src/main.c.orig Sat Sep 30 01:13:00 2006
|
||||
+++ src/main.c Thu Oct 5 15:21:30 2006
|
||||
@@ -359,7 +359,7 @@ cscope: TMPDIR to a valid directory\n");
|
||||
--- src/main.c.orig 2006-09-30 03:13:00.000000000 -0500
|
||||
+++ src/main.c 2008-01-18 15:01:59.000000000 -0600
|
||||
@@ -359,7 +359,7 @@
|
||||
/* create the temporary file names */
|
||||
orig_umask = umask(S_IRWXG|S_IRWXO);
|
||||
pid = getpid();
|
||||
@ -9,7 +9,7 @@
|
||||
if(mkdir(tempdirpv,S_IRWXU)) {
|
||||
fprintf(stderr, "\
|
||||
cscope: Could not create private temp dir %s\n",
|
||||
@@ -368,8 +368,13 @@ cscope: Could not create private temp di
|
||||
@@ -368,8 +368,13 @@
|
||||
}
|
||||
umask(orig_umask);
|
||||
|
||||
@ -25,3 +25,11 @@
|
||||
|
||||
/* if running in the foreground */
|
||||
if (signal(SIGINT, SIG_IGN) != SIG_IGN) {
|
||||
@@ -379,6 +384,7 @@
|
||||
}
|
||||
/* cleanup on the hangup signal */
|
||||
signal(SIGHUP, myexit);
|
||||
+ signal(SIGTERM, myexit);
|
||||
|
||||
/* if the database path is relative and it can't be created */
|
||||
if (reffile[0] != '/' && access(".", WRITE) != 0) {
|
||||
|
@ -1,2 +0,0 @@
|
||||
bin/cscope
|
||||
bin/ocs
|
Loading…
x
Reference in New Issue
Block a user