- Downgrade to version 1.05 at the express request of the author. The 1.1x

code tree is, in the author's opinion, not even ready for a -devel port.
- Bumped PORTEPOCH because of the above.
- Make SPOOLDIR a variable which may be altered by the user at install time.

Submitted by:	Mark Tranchant <mark@tranchant.freeserve.co.uk>
This commit is contained in:
Johann Visagie 2001-09-05 13:21:36 +00:00
parent f95f3fe7c1
commit e7e2eee085
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=47451
5 changed files with 28 additions and 29 deletions

View file

@ -6,7 +6,8 @@
# #
PORTNAME= ftpq PORTNAME= ftpq
PORTVERSION= 1.10 PORTVERSION= 1.05
PORTEPOCH= 1
CATEGORIES= ftp CATEGORIES= ftp
MASTER_SITES= http://www.tranchant.freeserve.co.uk/software/ MASTER_SITES= http://www.tranchant.freeserve.co.uk/software/
@ -15,9 +16,14 @@ MAINTAINER= ports@FreeBSD.org
USE_GMAKE= yes USE_GMAKE= yes
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
MAN1= ftpq.1 MAN1= ftpq.1
SPOOLDIR?= /var/spool/ftpq
PLIST_SUB+= SPOOLDIR=${SPOOLDIR}
post-patch:
@ ${PERL} -pi -e 's#%%SPOOLDIR%%#${SPOOLDIR}#' \
${WRKSRC}/Makefile.in ${WRKSRC}/src/ftpq.h
post-install: post-install:
@${MKDIR} /var/spool/ftpq @ ${MKDIR} ${SPOOLDIR} && ${CHMOD} 777 ${SPOOLDIR}
@${CHMOD} 777 /var/spool/ftpq
.include <bsd.port.mk> .include <bsd.port.mk>

View file

@ -1 +1 @@
MD5 (ftpq-1.10.tar.gz) = e30e485d732fa50d7a3f361586af00f6 MD5 (ftpq-1.05.tar.gz) = b2b9ca612b5236e1bf7ea42e072c1594

View file

@ -0,0 +1,11 @@
--- Makefile.in.orig Tue Sep 4 13:00:00 2001
+++ Makefile.in Wed Sep 5 15:01:12 2001
@@ -6,7 +6,7 @@
# Spool directory. Also hard-coded into the executable.
# See ftpq.h.
-SPOOLDIR = /tmp/ftpq/
+SPOOLDIR = %%SPOOLDIR%%
# Program name
PROG = ftpq

View file

@ -1,29 +1,11 @@
--- src/ftpq.h.orig Fri Jul 27 16:56:05 2001 --- src/ftpq.h.orig Tue Sep 4 13:00:00 2001
+++ src/ftpq.h Sat Jul 28 09:15:43 2001 +++ src/ftpq.h Wed Sep 5 15:02:03 2001
@@ -20,6 +20,9 @@ @@ -35,7 +35,7 @@
#include <pwd.h>
/* includes */
#include "../config.h"
+#ifdef HAVE_SYS_TYPES_H
+ #include <sys/types.h>
+#endif
#ifdef HAVE_CTYPE_H
#include <ctype.h>
#endif
@@ -56,15 +59,12 @@
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
-#ifdef HAVE_SYS_TYPES_H
- #include <sys/types.h>
-#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
/* useful defined constants */ /* useful defined constants */
-#define SPOOLDIR "/tmp/ftpq/" /* must end in /. Check Makefile, too. */ -#define SPOOLDIR "/tmp/ftpq/" /* must end in /. Check Makefile, too. */
+#define SPOOLDIR "/var/spool/ftpq/" /* must end in /. Check Makefile, too. */ +#define SPOOLDIR "%%SPOOLDIR%%/"/* must end in /. Check Makefile, too. */
#define HOSTRESP 2048 /* ftp server response buffer, bytes */ #define HOSTRESP 2048 /* ftp server response buffer, bytes */
#define BUFSIZE 2048 /* general purpose global buffer */ #define BUFSIZE 2048 /* general purpose global buffer */
#define SMTP_PORT 25 #define SMTP_PORT 25

View file

@ -1,3 +1,3 @@
bin/ftpq bin/ftpq
@exec mkdir -p /var/spool/ftpq @exec mkdir -p %%SPOOLDIR%%
@unexec rmdir /var/spool/ftpq 2>/dev/null || true @unexec rmdir %%SPOOLDIR%% 2>/dev/null || true