fix up this port

never got a response from maintainer
This commit is contained in:
naddy 2001-09-30 19:32:15 +00:00
parent 921871e90c
commit 4a7019bbb9
6 changed files with 92 additions and 8 deletions

View File

@ -1,12 +1,11 @@
# $OpenBSD: Makefile,v 1.15 2001/08/07 17:11:58 heko Exp $
# $OpenBSD: Makefile,v 1.16 2001/09/30 19:32:15 naddy Exp $
COMMENT= "curses-based ftp program"
COMMENT= "ftp replacement with advanced user interface"
DISTNAME= ncftp-3.0.3-src
PKGNAME= ncftp-3.0.3
PKGNAME= ${DISTNAME:S/-src//}
DISTNAME= ncftp-3.0.3-src
CATEGORIES= net
NEED_VERSION= 1.402
MASTER_SITES= ftp://ftp.ncftp.com/ncftp/
NEED_VERSION= 1.402
HOMEPAGE= http://www.ncftp.com/ncftp/
MAINTAINER= Eric Jackson <shinobi@monkey.org>
@ -17,8 +16,13 @@ PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
LIB_DEPENDS= intl::devel/gettext
MASTER_SITES= ftp://ftp.ncftp.com/ncftp/
MASTER_SITES0= ftp://ftp.kame.net/pub/kame/misc/
PATCHFILES= ncftp-303-v6-20010421.diff.gz:0
PATCH_DIST_STRIP= -p1
CONFIGURE_STYLE= gnu dest
WRKDIST= ${WRKDIR}/${PKGNAME}
WRKDIST= ${WRKDIR}/${DISTNAME:S/-src//}
.include <bsd.port.mk>

View File

@ -1,3 +1,6 @@
MD5 (ncftp-3.0.3-src.tar.gz) = 62c277a6f6f75883cfe9c4f2635a3871
MD5 (ncftp-303-v6-20010421.diff.gz) = 37b28c68c6099c7ba99628fc26691f8d
RMD160 (ncftp-3.0.3-src.tar.gz) = f030e705d1fec72d0a8a000482d6e61adbd39f34
RMD160 (ncftp-303-v6-20010421.diff.gz) = e58fd9c59706886848f27eeb1f7b47ea5f3ec852
SHA1 (ncftp-3.0.3-src.tar.gz) = d118481dde2572b5f1ff94f08b12a79937742298
SHA1 (ncftp-303-v6-20010421.diff.gz) = 456676be1145887fb8ea5aa91fe59e248b639ea8

View File

@ -0,0 +1,20 @@
$OpenBSD: patch-ncftp_Makefile_in,v 1.1 2001/09/30 19:32:16 naddy Exp $
--- ncftp/Makefile.in.orig Tue May 8 13:21:45 2001
+++ ncftp/Makefile.in Tue May 8 13:22:58 2001
@@ -13,6 +13,7 @@ CPPFLAGS=@CPPFLAGS@ -I. -I../libncftp -I
prefix=@prefix@
exec_prefix=@exec_prefix@
BINDIR=@bindir@
+SYSCONFDIR=@sysconfdir@
LIBS=@LIBS@
STRIP=strip
@@ -20,7 +21,7 @@ LDFLAGS=-L../libncftp -L../Strn -L../sio
# Any -D definitions:
BETA=# -DBETA=20
-DEFS=-Dncftp $(BETA) -DBINDIR=\"$(BINDIR)\" @DEFS@
+DEFS=-Dncftp $(BETA) -DBINDIR=\"$(BINDIR)\" -DSYSCONFDIR=\"$(SYSCONFDIR)\" @DEFS@
OBJS=cmds.@OBJEXT@ cmdlist.@OBJEXT@ getopt.@OBJEXT@ ls.@OBJEXT@ main.@OBJEXT@ version.@OBJEXT@ shell.@OBJEXT@ util.@OBJEXT@ readln.@OBJEXT@ progress.@OBJEXT@ bookmark.@OBJEXT@ pref.@OBJEXT@ preffw.@OBJEXT@ trace.@OBJEXT@ spool.@OBJEXT@ log.@OBJEXT@ getline.@OBJEXT@

View File

@ -0,0 +1,18 @@
$OpenBSD: patch-ncftp_pref_h,v 1.1 2001/09/30 19:32:16 naddy Exp $
--- ncftp/pref.h.orig Sun Apr 15 19:36:00 2001
+++ ncftp/pref.h Tue May 8 13:26:51 2001
@@ -16,10 +16,10 @@
# define kFirstFileName "init_v3.txt"
#else
# define kFirewallPrefFileName "firewall"
-# define kGlobalFirewallPrefFileName "/etc/ncftp.firewall"
-# define kGlobalFixedFirewallPrefFileName "/etc/ncftp.firewall.fixed"
-# define kGlobalPrefFileName "/etc/ncftp.prefs_v3"
-# define kGlobalFixedPrefFileName "/etc/ncftp.prefs_v3.fixed"
+# define kGlobalFirewallPrefFileName SYSCONFDIR "/ncftp.firewall"
+# define kGlobalFixedFirewallPrefFileName SYSCONFDIR "/ncftp.firewall.fixed"
+# define kGlobalPrefFileName SYSCONFDIR "/ncftp.prefs_v3"
+# define kGlobalFixedPrefFileName SYSCONFDIR "/ncftp.prefs_v3.fixed"
# define kPrefFileName "prefs_v3"
# define kPrefFileNameV2 "prefs"
# define kFirstFileName "init_v3"

View File

@ -0,0 +1,19 @@
$OpenBSD: patch-sh_util_Makefile_in,v 1.1 2001/09/30 19:32:16 naddy Exp $
--- sh_util/Makefile.in.orig Tue May 8 13:29:57 2001
+++ sh_util/Makefile.in Tue May 8 13:30:46 2001
@@ -11,13 +11,14 @@ CFLAGS=@CFLAGS@
VPATH=@srcdir@
CPPFLAGS=@CPPFLAGS@ -I. -I../libncftp -I../Strn -I../sio
prefix=@prefix@
+SYSCONFDIR=@sysconfdir@
LIBS=@LIBS@
STRIP=strip
LDFLAGS=-L../libncftp -L../Strn -L../sio @LDFLAGS@
# Any -D definitions:
-DEFS=-Dsh_util @DEFS@
+DEFS=-Dsh_util -DSYSCONFDIR=\"$(SYSCONFDIR)\" @DEFS@
DPROGS=../bin/ncftpget@EXEEXT@ ../bin/ncftpput@EXEEXT@ ../bin/ncftpbatch@EXEEXT@ ../bin/ncftpls@EXEEXT@

View File

@ -0,0 +1,20 @@
$OpenBSD: patch-vis_Makefile_in,v 1.1 2001/09/30 19:32:16 naddy Exp $
--- vis/Makefile.in.orig Tue May 8 13:34:36 2001
+++ vis/Makefile.in Tue May 8 13:35:10 2001
@@ -13,6 +13,7 @@ CPPFLAGS=@CPPFLAGS@ -I. -I../libncftp -I
prefix=@prefix@
exec_prefix=@exec_prefix@
BINDIR=@bindir@
+SYSCONFDIR=@sysconfdir@
CURSESLIBS=@LIBCURSES@
LIBS=$(CURSESLIBS) @LIBS@
@@ -20,7 +21,7 @@ STRIP=strip
LDFLAGS=-L../libncftp -L../Strn -L../sio @LDFLAGS@
# Any -D definitions:
-DEFS=-Dvis -DNCFTPPATH=\"$(BINDIR)/ncftp\" @DEFS@
+DEFS=-Dvis -DNCFTPPATH=\"$(BINDIR)/ncftp\" -DSYSCONFDIR=\"$(SYSCONFDIR)\" @DEFS@
DPROGS=@VIS_DPROGS@