Fix build with -fno-common
While here add license (GPLv2) and strip binary.
This commit is contained in:
parent
f92feb18f5
commit
4c971dd91d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=549609
@ -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}
|
||||
|
10
ftp/wput/files/patch-src_wput.c
Normal file
10
ftp/wput/files/patch-src_wput.c
Normal file
@ -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
|
22
ftp/wput/files/patch-src_wput.h
Normal file
22
ftp/wput/files/patch-src_wput.h
Normal file
@ -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;
|
Loading…
Reference in New Issue
Block a user