Do not install this with special permissions (setuid uucp), and write tty

locking files in /var/spool/lock rather than /var/spool/uucp.  Users need
to be in group dialer for that, and to open the serial devices now; this
matches OpenBSD tip(1) behaviour; itojun said it looks ok
This commit is contained in:
pvalchev 2002-09-27 16:24:41 +00:00
parent 071dc2bbed
commit c88e83ddde
3 changed files with 28 additions and 2 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.24 2002/06/16 13:33:49 kevlo Exp $ # $OpenBSD: Makefile,v 1.25 2002/09/27 16:24:41 pvalchev Exp $
COMMENT= "X11-based presentation tool" COMMENT= "X11-based presentation tool"
DISTNAME= magicpoint-1.09a DISTNAME= magicpoint-1.09a
PKGNAME= ${DISTNAME}p1
CATEGORIES= misc productivity CATEGORIES= misc productivity
NEED_VERSION= 1.499
MASTER_SITES= ftp://ftp.mew.org/pub/MagicPoint/ MASTER_SITES= ftp://ftp.mew.org/pub/MagicPoint/
HOMEPAGE= http://www.mew.org/mgp/ HOMEPAGE= http://www.mew.org/mgp/

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-contrib_xmindpath_Makefile_in,v 1.1 2002/09/27 16:24:42 pvalchev Exp $
--- contrib/xmindpath/Makefile.in.orig Fri Sep 27 01:41:37 2002
+++ contrib/xmindpath/Makefile.in Fri Sep 27 01:43:19 2002
@@ -24,8 +24,8 @@ main.o: $(srcdir)/main.c
uucplock.o: $(srcdir)/uucplock.c
install::
- $(INSTALL) -s -o uucp -g bin -m 4755 $(TARGET) $(bindir)
- $(INSTALL) -o bin -g bin -m 444 $(TARGET).1 $(mandir)/man1
+ $(INSTALL) -s -o root -g bin $(TARGET) $(bindir)
+ $(INSTALL) -o root -g bin -m 444 $(TARGET).1 $(mandir)/man1
includes::

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-contrib_xmindpath_pathnames_h,v 1.1 2002/09/27 16:24:42 pvalchev Exp $
--- contrib/xmindpath/pathnames.h.orig Fri Sep 27 01:36:26 2002
+++ contrib/xmindpath/pathnames.h Fri Sep 27 01:37:26 2002
@@ -38,7 +38,7 @@
#endif
#define _PATH_ACULOG "/var/log/aculog"
-#if defined(__NetBSD__) || defined(__FreeBSD__)
+#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)
#define _PATH_LOCKDIRNAME "/var/spool/lock/LCK..%s"
#else
#define _PATH_LOCKDIRNAME "/var/spool/uucp/LCK..%s"