aboutsummaryrefslogtreecommitdiff
path: root/mail/nbsmtp/files
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2005-01-18 05:44:50 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2005-01-18 05:44:50 +0000
commita7eabac5afdb8dd3a0ef6904341c59181c0cb7e0 (patch)
tree680ca61dbf7a6c52b0fbe24d715202de399cc2e6 /mail/nbsmtp/files
parentdf379ae4a4c35c73888a56fddc43a742106b604e (diff)
downloadports-a7eabac5afdb8dd3a0ef6904341c59181c0cb7e0.tar.gz
ports-a7eabac5afdb8dd3a0ef6904341c59181c0cb7e0.zip
Notes
Diffstat (limited to 'mail/nbsmtp/files')
-rw-r--r--mail/nbsmtp/files/patch-aa10
-rw-r--r--mail/nbsmtp/files/patch-nbsmtp.c66
2 files changed, 0 insertions, 76 deletions
diff --git a/mail/nbsmtp/files/patch-aa b/mail/nbsmtp/files/patch-aa
deleted file mode 100644
index 87f91ecc7706..000000000000
--- a/mail/nbsmtp/files/patch-aa
+++ /dev/null
@@ -1,10 +0,0 @@
---- Makefile.orig Sat May 5 19:30:42 2001
-+++ Makefile Sat May 5 19:31:41 2001
-@@ -1,5 +1,5 @@
--linux: nbsmtp.c
-- gcc -o nbsmtp nbsmtp.c
-+all: nbsmtp.c
-+ gcc $(CFLAGS) -o nbsmtp nbsmtp.c
-
- solaris: nbsmtp.c
- gcc -o nbsmtp nbsmtp.c -lxnet
diff --git a/mail/nbsmtp/files/patch-nbsmtp.c b/mail/nbsmtp/files/patch-nbsmtp.c
deleted file mode 100644
index 3d18f430a5a3..000000000000
--- a/mail/nbsmtp/files/patch-nbsmtp.c
+++ /dev/null
@@ -1,66 +0,0 @@
---- nbsmtp.c.orig Sat Apr 7 02:09:01 2001
-+++ nbsmtp.c Wed Apr 10 22:03:27 2002
-@@ -19,6 +19,8 @@
- */
-
- #include <stdio.h>
-+#include <stdlib.h>
-+#include <string.h>
- #include <unistd.h>
- #include <sys/types.h>
- #include <sys/socket.h>
-@@ -76,42 +78,45 @@
- {
- printf("Usage:\n");
- printf("%s -d domain -f from@addr -h host [-p port] [-l debuglevel]\n", prog);
-+ exit(EXIT_FAILURE);
- }
-
- int main(int argc, char *argv[])
- {
-- int i;
-+ int ch;
-
-- for(i=1; i<argc; i+=2){
-- switch(*(argv[i]+1))
-+ while ( (ch = getopt(argc, argv, "h:d:f:p:l:")) != -1){
-+ switch (ch)
- {
- case 'h':
-- host = (char *)strdup(argv[i+1]);
-+ host = strdup(optarg);
- break;
- case 'd':
-- domain = (char *)strdup(argv[i+1]);
-+ domain = strdup(optarg);
- break;
- case 'f':
-- fromaddr = (char *)strdup(argv[i+1]);
-+ fromaddr = strdup(optarg);
- break;
- case 'p':
-- port = atoi(argv[i+1]);
-+ port = atoi(optarg);
- break;
- case 'l':
-- debug_level = atoi(argv[i+1]);
-+ debug_level = atoi(optarg);
- if(debug_level > 1)
- stdlog = fopen("nbsmtp.log", "w");
- else
- stdlog = stdout;
- break;
-+ case '?':
- default:
- print_usage(argv[0]);
-+ break;
- }
- }
-
-+ argc -= optind;
- if(domain==NULL || fromaddr==NULL || host==NULL){
- print_usage(argv[0]);
-- return 1;
- }
-
- if(port==0)