summaryrefslogtreecommitdiff
path: root/ftp/wput
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2020-09-22 16:59:52 +0000
committerStefan Eßer <se@FreeBSD.org>2020-09-22 16:59:52 +0000
commit4c971dd91decb800125795bf8197d216baf97c9c (patch)
treea8db345fd55e7d066702e78505f49a5a43beaf79 /ftp/wput
parentAdd a build dependency on GNU as (diff)
Fix build with -fno-common
While here add license (GPLv2) and strip binary.
Notes
Notes: svn path=/head/; revision=549609
Diffstat (limited to 'ftp/wput')
-rw-r--r--ftp/wput/Makefile6
-rw-r--r--ftp/wput/files/patch-src_wput.c10
-rw-r--r--ftp/wput/files/patch-src_wput.h22
3 files changed, 37 insertions, 1 deletions
diff --git a/ftp/wput/Makefile b/ftp/wput/Makefile
index a01cd5ca48ca..e1eac4555283 100644
--- a/ftp/wput/Makefile
+++ b/ftp/wput/Makefile
@@ -3,13 +3,16 @@
PORTNAME= wput
PORTVERSION= 0.6.2
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= ftp
MASTER_SITES= SF
MAINTAINER= chip-set@mail.ru
COMMENT= Upload files or directories to FTP server with resume support
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/COPYING
+
PORTDOCS= ABOUT-NLS COPYING ChangeLog INSTALL TODO
PORTEXAMPLES= USAGE.examples USAGE.resumehandling USAGE.urlhandling \
passwordfile wputrc
@@ -35,6 +38,7 @@ pre-configure:
${WRKSRC}/src/socketlib.c
post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/wput
${INSTALL_MAN} ${WRKSRC}/doc/*.1 ${STAGEDIR}${MANPREFIX}/man/man1/
@${INSTALL} -d ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
diff --git a/ftp/wput/files/patch-src_wput.c b/ftp/wput/files/patch-src_wput.c
new file mode 100644
index 000000000000..27a33031a3b9
--- /dev/null
+++ b/ftp/wput/files/patch-src_wput.c
@@ -0,0 +1,10 @@
+--- src/wput.c.orig 2008-09-27 10:31:23 UTC
++++ src/wput.c
+@@ -69,6 +69,7 @@ int start_fsession();
+ int start_ftp();
+ int start_recur_ftp();
+ void read_netrc_file(void);
++opt_t opt;
+
+ int main(int argc, char *argv[]){
+ #ifdef WIN32
diff --git a/ftp/wput/files/patch-src_wput.h b/ftp/wput/files/patch-src_wput.h
new file mode 100644
index 000000000000..11bef1f84709
--- /dev/null
+++ b/ftp/wput/files/patch-src_wput.h
@@ -0,0 +1,22 @@
+--- src/wput.h.orig 2008-09-27 10:31:23 UTC
++++ src/wput.h
+@@ -79,7 +79,7 @@ typedef struct _password_list {
+ struct _password_list * next;
+ } password_list;
+
+-struct global_options {
++typedef struct global_options {
+ char * sbuf;
+ int sbuflen;
+ unsigned int bindaddr;
+@@ -140,7 +140,9 @@ struct global_options {
+
+ unsigned short int retry_interval;
+ unsigned int speed_limit;
+-} opt;
++} opt_t;
++
++extern opt_t opt;
+
+ extern _fsession * fsession_queue_entry_point;
+ extern char * email_address;