1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Make wu-ftpd install with correct permissions

PR:		17313
Submitted by:	Dmitry Grigorovic
This commit is contained in:
David W. Chapman Jr. 2001-09-04 18:06:03 +00:00
parent a1e9a64538
commit 357cf619c5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=47429
6 changed files with 104 additions and 14 deletions

View File

@ -9,7 +9,7 @@
PORTNAME= wu-ftpd
PORTVERSION= 2.6.1
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= ftp
MASTER_SITES= ftp://ftp.wu-ftpd.org/pub/wu-ftpd/

View File

@ -1,5 +1,5 @@
--- src/ftpd.c Sat Jul 1 14:17:39 2000
+++ src/ftpd.c.new Sat Jul 8 21:48:05 2000
--- src/ftpd.c.orig Sun Jul 2 01:17:39 2000
+++ src/ftpd.c Tue Sep 4 10:36:51 2001
@@ -1662,9 +1662,9 @@
/* Display s/key challenge where appropriate. */
@ -21,6 +21,24 @@
#ifdef LOG_FAILED /* 27-Apr-93 EHK/BM */
syslog(LOG_INFO, "failed login from %s",
remoteident);
@@ -6274,7 +6274,7 @@
if (s) {
int i = ntohs(pasv_addr.sin_port);
sprintf(s, "PASV port %i assigned to %s", i, remoteident);
- syslog(LOG_DEBUG, s);
+ syslog(LOG_DEBUG, "%s", s);
free(s);
}
}
@@ -6289,7 +6289,7 @@
char *s = calloc(128 + strlen(remoteident), sizeof(char));
if (s) {
sprintf(s, "PASV port assignment assigned for %s", remoteident);
- syslog(LOG_DEBUG, s);
+ syslog(LOG_DEBUG, "%s", s);
free(s);
}
}
@@ -6435,7 +6435,7 @@
dirlist = ftpglob(whichfiles);
sdirlist = dirlist; /* save to free later */
@ -46,3 +64,12 @@
}
if (dout != NULL) {
@@ -7274,7 +7272,7 @@
int which;
struct aclmember *entry = NULL;
(void) acl_getclass(class);
- while (getaclentry("port-allow", &entry)) {
+ while (getaclentry("pasv-allow", &entry)) {
if ((ARG0 != NULL) && (strcasecmp(class, ARG0) == 0))
for (which = 1; (which < MAXARGS) && (ARG[which] != NULL); which++) {
if (hostmatch(ARG[which], remoteaddr, NULL))

View File

@ -1,6 +1,6 @@
--- makefiles/Makefile.fbs.orig Mon Sep 20 06:21:11 1999
+++ makefiles/Makefile.fbs Wed Oct 20 21:40:46 1999
@@ -24,7 +24,9 @@
--- makefiles/Makefile.fbs.orig Sun Jul 2 00:56:26 2000
+++ makefiles/Makefile.fbs Tue Sep 4 10:34:51 2001
@@ -24,19 +24,21 @@
#
DESTDIR=
@ -10,7 +10,25 @@
+ETCDIR= ${DESTDIR}${PREFIX}/etc
BINDIR= ${DESTDIR}${PREFIX}/bin
BINOWN= bin
-BINOWN= bin
-BINGRP= bin
+BINOWN= root
+BINGRP= wheel
SBINDIR= ${DESTDIR}${PREFIX}/libexec
-SBINOWN= bin
-SBINGRP= bin
+SBINOWN= root
+SBINGRP= wheel
MANDIR= ${DESTDIR}${PREFIX}/man
-MANOWN= bin
-MANGRP= bin
+MANOWN= root
+MANGRP= wheel
INSTALL= install
@@ -52,14 +54,20 @@
@if [ ! -e ${SBINDIR} ]; then \
${INSTALL} -o ${SBINOWN} -g ${SBINGRP} -m 755 -d ${SBINDIR} ; \

View File

@ -9,7 +9,7 @@
PORTNAME= wu-ftpd
PORTVERSION= 2.6.1
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= ftp
MASTER_SITES= ftp://ftp.wu-ftpd.org/pub/wu-ftpd/

View File

@ -1,5 +1,5 @@
--- src/ftpd.c Sat Jul 1 14:17:39 2000
+++ src/ftpd.c.new Sat Jul 8 21:48:05 2000
--- src/ftpd.c.orig Sun Jul 2 01:17:39 2000
+++ src/ftpd.c Tue Sep 4 10:36:51 2001
@@ -1662,9 +1662,9 @@
/* Display s/key challenge where appropriate. */
@ -21,6 +21,24 @@
#ifdef LOG_FAILED /* 27-Apr-93 EHK/BM */
syslog(LOG_INFO, "failed login from %s",
remoteident);
@@ -6274,7 +6274,7 @@
if (s) {
int i = ntohs(pasv_addr.sin_port);
sprintf(s, "PASV port %i assigned to %s", i, remoteident);
- syslog(LOG_DEBUG, s);
+ syslog(LOG_DEBUG, "%s", s);
free(s);
}
}
@@ -6289,7 +6289,7 @@
char *s = calloc(128 + strlen(remoteident), sizeof(char));
if (s) {
sprintf(s, "PASV port assignment assigned for %s", remoteident);
- syslog(LOG_DEBUG, s);
+ syslog(LOG_DEBUG, "%s", s);
free(s);
}
}
@@ -6435,7 +6435,7 @@
dirlist = ftpglob(whichfiles);
sdirlist = dirlist; /* save to free later */
@ -46,3 +64,12 @@
}
if (dout != NULL) {
@@ -7274,7 +7272,7 @@
int which;
struct aclmember *entry = NULL;
(void) acl_getclass(class);
- while (getaclentry("port-allow", &entry)) {
+ while (getaclentry("pasv-allow", &entry)) {
if ((ARG0 != NULL) && (strcasecmp(class, ARG0) == 0))
for (which = 1; (which < MAXARGS) && (ARG[which] != NULL); which++) {
if (hostmatch(ARG[which], remoteaddr, NULL))

View File

@ -1,6 +1,6 @@
--- makefiles/Makefile.fbs.orig Mon Sep 20 06:21:11 1999
+++ makefiles/Makefile.fbs Wed Oct 20 21:40:46 1999
@@ -24,7 +24,9 @@
--- makefiles/Makefile.fbs.orig Sun Jul 2 00:56:26 2000
+++ makefiles/Makefile.fbs Tue Sep 4 10:34:51 2001
@@ -24,19 +24,21 @@
#
DESTDIR=
@ -10,7 +10,25 @@
+ETCDIR= ${DESTDIR}${PREFIX}/etc
BINDIR= ${DESTDIR}${PREFIX}/bin
BINOWN= bin
-BINOWN= bin
-BINGRP= bin
+BINOWN= root
+BINGRP= wheel
SBINDIR= ${DESTDIR}${PREFIX}/libexec
-SBINOWN= bin
-SBINGRP= bin
+SBINOWN= root
+SBINGRP= wheel
MANDIR= ${DESTDIR}${PREFIX}/man
-MANOWN= bin
-MANGRP= bin
+MANOWN= root
+MANGRP= wheel
INSTALL= install
@@ -52,14 +54,20 @@
@if [ ! -e ${SBINDIR} ]; then \
${INSTALL} -o ${SBINOWN} -g ${SBINGRP} -m 755 -d ${SBINDIR} ; \