Bug 48096

Summary: [update] ProFTPD 1.2.8rc2
Product: Ports & Packages Reporter: Jason Li <delphij>
Component: Individual Port(s)Assignee: Michael Haro <mharo>
Status: Closed FIXED    
Severity: Affects Only Me CC: delphij
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff
none
file.diff none

Description Jason Li 2003-02-08 20:10:08 UTC
	ProFTPD 1.2.8rc2 released recently. This updates ports/ftp/proftpd to the 
most recent release, solving update problem, adds a new manpage. This 
obsoletes ports/46189. In addition at least ports/46189 should be applied 
because there're some security improvements on 1.2.7-R

Fix: Apply the patch below, and delete the following files in 
ports/ftp/proftpd/files:

	patch-ah  patch-ai

	as they are obsolete for the port.

begin 644 proftpd.patch.bz2
M0EIH.3%!629363>SJEP`"CY?@&LP7O___W__W^2_[__[8`Y<VHWQWUA*<R&K
M:%+#'0;8`Z.AI;5,U-U@`)N&J>2&4]2>IC94V$GM%`#3U`T,@`````!*$$TR
M!,$FJ;U,IY3]33&J8)H!D#0`#RC30#FC1H:80#3`FF@#(:&(`T8C0P1D`$FE
M$@U)DQ3U&)B,F@>D]0&GJ`:`:&@T``$DD4>H'Z*>IIZ0;2`VH`#1Z@-/4```
M``2)!"9,FA$],HPGI!,F!HGJ-33!-J/29#)D>DTY0Y%=\W00$8PA^?D5X3Q?
MH>-FF/(;M=;JS4I@QF?>4V&E$&;>N'ZB9`[/?+/]$HP"JB*4!089&%[<+?0O
MY_MW._?]6A+$[NVJ,94G.%Z8*BD3Q/`,,&\7D,1`8!7M6IL<Q*Z%(B*O%C47
MCNOV,-2'3I>_J='RSO\\G#K]693(YU:^VR5MJ0,>:WS+[DR(68[ML:LY45A[
M80<."1F$P@+#&Z+31`TMM:SF#)X%"X%VKE5%-Z$E9#%"!)GU%V\()0LK`R72
M367VT1T4N)Y!*?AI='=XDQ!;XS(.7+`RG3J]Z<^>4[]=>JVV22%,5\WYT%;C
MD)A"52YM*H$9X+>[V^;MY`-ATAZ?(M"99W.PTNP+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-)D9;",\*`M&N\\R*B/!X!$`
M#2L?B!@A7:.8W(A7-7>@A2?J'0*`$,!OR:1(DO.0!K2Z!AX4C5-DFFB1I4'/
M*4DLS5#!>2:2_$D%:%IHZ4C?`COF?(/<\>?XZ`LUB@2..48@TX>7P2U)M`C;
MUD<7^"]!MO8,ZA<,$261`S2NLC>BWLHJDAJN9*<%C1(&%D5)JBE*@F490548
M[P"8D<6=2+0NN#>8L:FL*7R)[TCK4A-,L#K!E@^1)7)$!H?%:`J!IN"22L"0
M#4EJ"1I77<')ZH74-CPP#I86XKP1L?-DZ]R9-E)GC6O-@6-6%$>@M5Y!5RJ.
M="&27BBNV@E:A785AJX5S#(:2FB0!-V;T:KJ)-9H3@A505MH`,)(AI9,!]!5
M(W)5FCI$EWAB`6G04#]B##.%@+`T%M3.::5@KSIV8IK^`KZ18&3Z#(DOO.U&
MG@%PD<ABA0&S5"2)HH,&=08+$@*@EWOJD`#=A%1VD$?<'JVEL8)M.L9Z'`Z1
M@Y18@08"0S3D6$SEM)60'$![;S)>]JM!SFPE=@X8')(>!3/,'?$.'_J206S:
?O:0=ULS`JKGM>,_XGP1((C))NG_B[DBG"A(&]G5+@```
`
end

The following text patch is just for reference if you have problem decoding 
the patch above.

PORTNAME=	proftpd
-PORTVERSION=	1.2.6
+PORTVERSION=	1.2.8rc2
CATEGORIES=	ftp
MASTER_SITES=	ftp://ftp.proftpd.net/distrib/source/ \
		ftp://ftp.stikman.com/pub/proftpd/source/ \
		ftp://ftp.dataguard.no/pub/proftpd/distrib/source/ \
		ftp://ftp.club-internet.fr/pub/mirrors/ftp.proftpd.org/distrib/source/
-DISTNAME=	${PORTNAME}-1.2.6
+DISTNAME=	${PORTNAME}-${PORTVERSION}

MAINTAINER=	mharo@FreeBSD.org

-MAN1=	ftpcount.1 ftpwho.1
+MAN1=	ftpcount.1 ftpwho.1 ftptop.1
MAN5=	xferlog.5
MAN8=	proftpd.8 ftpshut.8

@@ -90,24 +90,29 @@
		-e 's:/usr/bin:${PREFIX}/bin:' \
		< ${WRKSRC}/src/proftpd.8.pre_sed > ${WRKSRC}/src/proftpd.8

-	@${MV} ${WRKSRC}/src/ftpshut.8 ${WRKSRC}/src/ftpshut.8.pre_sed
+	@${MV} ${WRKSRC}/utils/ftpshut.8 ${WRKSRC}/utils/ftpshut.8.pre_sed
	@${SED}	-e 's:/usr/sbin:${PREFIX}/sbin:' \
		-e 's:/etc:/var/run:' \
-		< ${WRKSRC}/src/ftpshut.8.pre_sed > ${WRKSRC}/src/ftpshut.8
+		< ${WRKSRC}/utils/ftpshut.8.pre_sed > ${WRKSRC}/utils/ftpshut.8

-	@${MV} ${WRKSRC}/src/ftpcount.1 ${WRKSRC}/src/ftpcount.1.pre_sed
+	@${MV} ${WRKSRC}/utils/ftpcount.1 ${WRKSRC}/utils/ftpcount.1.pre_sed
	@${SED}	-e 's:/usr/bin:${PREFIX}/bin:' \
-		< ${WRKSRC}/src/ftpcount.1.pre_sed > ${WRKSRC}/src/ftpcount.1
+		< ${WRKSRC}/utils/ftpcount.1.pre_sed > ${WRKSRC}/utils/ftpcount.1
+
+	@${MV} ${WRKSRC}/utils/ftptop.1 ${WRKSRC}/utils/ftptop.1.pre_sed
+	@${SED} -e 's:/usr/bin:${PREFIX}/bin:' \
+		< ${WRKSRC}/utils/ftptop.1.pre_sed > ${WRKSRC}/utils/ftptop.1

do-install:
	@${INSTALL_PROGRAM} ${WRKSRC}/ftpcount ${PREFIX}/bin/ftpcount
	@${INSTALL_PROGRAM} ${WRKSRC}/ftpwho ${PREFIX}/bin/ftpwho
	@${INSTALL_PROGRAM} ${WRKSRC}/proftpd ${PREFIX}/libexec/proftpd
	@${INSTALL_PROGRAM} ${WRKSRC}/ftpshut ${PREFIX}/sbin/ftpshut
-	@${INSTALL_MAN} ${WRKSRC}/src/ftpcount.1 ${PREFIX}/man/man1/ftpcount.1
-	@${INSTALL_MAN} ${WRKSRC}/src/ftpwho.1 ${PREFIX}/man/man1/ftpwho.1
+	@${INSTALL_MAN} ${WRKSRC}/utils/ftpcount.1 ${PREFIX}/man/man1/ftpcount.1
+	@${INSTALL_MAN} ${WRKSRC}/utils/ftpwho.1 ${PREFIX}/man/man1/ftpwho.1
+	@${INSTALL_MAN} ${WRKSRC}/utils/ftptop.1 ${PREFIX}/man/man1/ftptop.1
	@${INSTALL_MAN} ${WRKSRC}/src/xferlog.5 ${PREFIX}/man/man5/xferlog.5
-	@${INSTALL_MAN} ${WRKSRC}/src/ftpshut.8 ${PREFIX}/man/man8/ftpshut.8
+	@${INSTALL_MAN} ${WRKSRC}/utils/ftpshut.8 ${PREFIX}/man/man8/ftpshut.8
	@${INSTALL_MAN} ${WRKSRC}/src/proftpd.8 ${PREFIX}/man/man8/proftpd.8
	@${INSTALL_DATA} \
		${WRKSRC}/sample-configurations/basic.conf 
${PREFIX}/etc/proftpd.conf.default
@@ -16,6 +20,7 @@
-<Anonymous ~ftp>
-  User				ftp
-  Group				ftp
+-
-  # We want clients to be able to login with "anonymous" as well as "ftp"
-  UserAlias			anonymous ftp
-
@@ -31,37 +36,34 @@
-  <Limit WRITE>
-    DenyAll
-  </Limit>
+
+-</Anonymous>
+#########################################################################
-+#                                                                       #
-+# Uncomment lines with only one # to allow basic anonymous access       #
-+#                                                                       #
++#									#
++# The original distribution assumes a basic anonymous access, which is  #
++# disabled on this port. To activate it, remove the comment # below.	#
++#									#
+#########################################################################
-+### A basic anonymous configuration, no upload directories.
-+# <Anonymous ~ftp>
-+#  User				ftp
-+#  Group			ftp
-+  ### We want clients to be able to login with "anonymous" as well as 
"ftp"
-+  # UserAlias			anonymous ftp
-+
-+  ### Limit the maximum number of anonymous logins
-+  # MaxClients			10
-+
-+  ### It is wise when making an 'ftp' user that you either block its
-+  ### ability to login either via /etc/login.access or my giving it
-+  ### an invalid shell.
-+  ### Uncomment this if the 'ftp' user you made has an invalid shell
-+
-+  # RequireValidShell          off
+
-+  ### We want 'welcome.msg' displayed at login, and '.message' displayed
-+  ### in each newly chdired directory.
-+  # DisplayLogin			welcome.msg
-+  # DisplayFirstChdir		.message
-+
-+  ### Limit WRITE everywhere in the anonymous chroot
-+  # <Limit WRITE>
-+  #  DenyAll
-+  # </Limit>
-
--</Anonymous>
-+# </Anonymous>
++## A basic anonymous configuration, no upload directories.
++#<Anonymous ~ftp>
++#  User				ftp
++#  Group				ftp
++#
++#  # We want clients to be able to login with "anonymous" as well as "ftp"
++#  UserAlias			anonymous ftp
++#
++#  # Limit the maximum number of anonymous logins
++#  MaxClients			10
++#
++#  # We want 'welcome.msg' displayed at login, and '.message' displayed
++#  # in each newly chdired directory.
++#  DisplayLogin			welcome.msg
++#  DisplayFirstChdir		.message
++#
++#  # Limit WRITE everywhere in the anonymous chroot
++#  <Limit WRITE>
++#    DenyAll
++#  </Limit>
++#
++#</Anonymous>


static pam_handle_t *	pamh			= NULL;
-static char *		pamconfig		= "ftp";
+static char *		pamconfig		= "ftpd";
- static char *		pam_user 		= (char *)0;
- static char *		pam_pass 		= (char *)0;
- static int		pam_user_len		= 0;
+ static char *		pam_user 		= NULL;
+ static char *		pam_pass 		= NULL;
+ static size_t		pam_user_len		= 0;


_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus--FyQ754oYZHcs1dGdOV54yvC4f70g0BlxGL6LaobStB8dth3E
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

diff -ruN proftpd.orig/Makefile proftpd/Makefile
--- proftpd.orig/Makefile	Sat Jan  4 23:53:38 2003
+++ proftpd/Makefile	Sat Feb  8 03:11:42 2003
@@ -6,17 +6,17 @@
#
How-To-Repeat: 	http://www.proftpd.org
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2003-02-12 23:43:10 UTC
Responsible Changed
From-To: freebsd-ports-bugs->mharo

Over to maintainer
Comment 2 Jacques Vidrine freebsd_committer freebsd_triage 2003-03-24 13:35:26 UTC
State Changed
From-To: open->closed

superseded by ports/50031