aboutsummaryrefslogtreecommitdiff
path: root/ftp
diff options
context:
space:
mode:
Diffstat (limited to 'ftp')
-rw-r--r--ftp/moxftp/Makefile32
-rw-r--r--ftp/moxftp/files/patch-aa39
-rw-r--r--ftp/moxftp/files/patch-ad13
-rw-r--r--ftp/moxftp/pkg-plist6
4 files changed, 58 insertions, 32 deletions
diff --git a/ftp/moxftp/Makefile b/ftp/moxftp/Makefile
index 5ee70ecbc84d..3fab16e401bd 100644
--- a/ftp/moxftp/Makefile
+++ b/ftp/moxftp/Makefile
@@ -3,7 +3,7 @@
# Date created: 19 December 1994
# Whom: janek
#
-# $Id: Makefile,v 1.7 1995/05/13 09:13:51 asami Exp $
+# $Id: Makefile,v 1.8 1995/11/27 04:05:17 asami Exp $
#
DISTNAME= moxftp-2.2
@@ -21,13 +21,35 @@ STRIP=
# athena3d - for athena 3 d version, (you should have installed Xaw3d!!!)
# openlook - for open look version - (not tested!!!)
# If you use athena3d uncomment DEPENDS !!!
+.if defined(HAVE_MOTIF)
+CONFIGURE_ARGS= motif
+PROGRAM_NAME=mftp
+RESOURCE_NAME=Mftp
+.else
CONFIGURE_ARGS= athena
+PROGRAM_NAME=xftp
+RESOURCE_NAME=Xftp
+.endif
-#DEPENDS= ${PORTSDIR}/x11/Xaw3d
+.if !defined (NOMANCOMPRESS)
+ GZIP_EXT=.gz
+.else
+ GZIP_EXT=
+.endif
+
+pre-install:
+ sed -e 's,@PROGRAM_NAME@,${PROGRAM_NAME},' \
+ -e 's,@RESOURCE_NAME@,${RESOURCE_NAME},' \
+ -e 's,@GZIP_EXT@,${GZIP_EXT},' pkg/PLIST.in >pkg/PLIST
post-install:
- strip ${PREFIX}/bin/xftp
- install -c -m 0444 ${WRKSRC}/xftp.man ${PREFIX}/man/man1/xftp.1
- gzip -9nf ${PREFIX}/man/man1/xftp.1
+ strip ${PREFIX}/bin/${PROGRAM_NAME}
+ install -c -m 0444 ${WRKSRC}/${PROGRAM_NAME}.man ${PREFIX}/man/man1/${PROGRAM_NAME}.1
+.if !defined(NOMANCOMPRESS)
+ gzip -9nf ${PREFIX}/man/man1/${PROGRAM_NAME}.1
+.endif
+
+pre-clean:
+ @rm -f pkg/PLIST
.include <bsd.port.mk>
diff --git a/ftp/moxftp/files/patch-aa b/ftp/moxftp/files/patch-aa
index 6096e944c20b..36ac242539a1 100644
--- a/ftp/moxftp/files/patch-aa
+++ b/ftp/moxftp/files/patch-aa
@@ -1,19 +1,20 @@
-*** Imakefile.orig Mon Dec 19 23:25:00 1994
---- Imakefile Mon Dec 19 23:24:38 1994
-***************
-*** 126,132 ****
- OBJS_STANDARD = main.o ftp.o callftp.o connect.o login.o wc_hooks.o \
- disconnect.o remote_dir.o pwd.o peek.o syst.o \
- bsdstrstr.o get.o lcd.o cd.o initialize.o dir_subs.o \
-! local_dir.o put.o mkdir.o type.o fb_rs.o version.o \
- regerror.o regexp.o regsub.o translate.o help.o \
- tran_table.o sort.o noop.o List.o ListSW.o time.o \
- tm_to_time.o archie.o popen.o icons.o myfgets.o \
---- 126,132 ----
- OBJS_STANDARD = main.o ftp.o callftp.o connect.o login.o wc_hooks.o \
- disconnect.o remote_dir.o pwd.o peek.o syst.o \
- bsdstrstr.o get.o lcd.o cd.o initialize.o dir_subs.o \
-! local_dir.o put.o mkdir.o type.o fb_rs.o version.o \
- regerror.o regexp.o regsub.o translate.o help.o \
- tran_table.o sort.o noop.o List.o ListSW.o time.o \
- tm_to_time.o archie.o popen.o icons.o myfgets.o \
+--- Imakefile.orig Fri May 20 15:44:40 1994
++++ Imakefile Fri Oct 11 11:05:44 1996
+@@ -110,7 +110,7 @@
+ #endif
+ HP_DEFINE = -DHP_STUFF
+ #else
+- XMLIB = -L$(USRLIBDIR) -lXm
++ XMLIB = -L$(USRLIBDIR) ${MOTIFLIB}
+ #endif
+ #endif
+
+@@ -126,7 +126,7 @@
+ OBJS_STANDARD = main.o ftp.o callftp.o connect.o login.o wc_hooks.o \
+ disconnect.o remote_dir.o pwd.o peek.o syst.o \
+ bsdstrstr.o get.o lcd.o cd.o initialize.o dir_subs.o \
+- local_dir.o put.o mkdir.o type.o fb_rs.o version.o \
++ local_dir.o put.o mkdir.o type.o fb_rs.o version.o \
+ regerror.o regexp.o regsub.o translate.o help.o \
+ tran_table.o sort.o noop.o List.o ListSW.o time.o \
+ tm_to_time.o archie.o popen.o icons.o myfgets.o \
diff --git a/ftp/moxftp/files/patch-ad b/ftp/moxftp/files/patch-ad
index 169bfb05a4a5..c020d41e857a 100644
--- a/ftp/moxftp/files/patch-ad
+++ b/ftp/moxftp/files/patch-ad
@@ -1,5 +1,14 @@
---- ./configure.org Mon Mar 21 13:43:36 1994
-+++ ./configure Sat May 13 01:20:26 1995
+--- configure.orig Mon Mar 21 15:43:36 1994
++++ configure Fri Oct 11 13:14:59 1996
+@@ -165,7 +165,7 @@
+ ANAME=Mftp
+ TYPE="-DMOTIF"
+ TLNAME=Xmp
+- TKLIB="-lXm"
++ TKLIB="\${MOTIFLIB}"
+ fi
+
+ if test "${TK}" = "xaw3d"; then
@@ -321,7 +321,7 @@
cd conftestdir
cat > Imakefile <<EOF
diff --git a/ftp/moxftp/pkg-plist b/ftp/moxftp/pkg-plist
deleted file mode 100644
index c3af8033ca03..000000000000
--- a/ftp/moxftp/pkg-plist
+++ /dev/null
@@ -1,6 +0,0 @@
-@cwd /usr/X11R6
-@mode 555
-bin/xftp
-@mode 444
-lib/X11/app-defaults/Xftp
-man/man1/xftp.1.gz