no MASTER_SITES, no license, no port
This commit is contained in:
parent
7a3b3c0c7c
commit
13aeffe266
@ -1,9 +1,8 @@
|
||||
# $OpenBSD: Makefile,v 1.22 2003/08/21 19:13:04 grange Exp $
|
||||
# $OpenBSD: Makefile,v 1.23 2004/01/06 21:35:42 sturm Exp $
|
||||
# $FreeBSD: Makefile,v 1.27 1997/11/22 14:56:56 peter Exp $
|
||||
|
||||
SUBDIR += birda
|
||||
SUBDIR += bottlerocket
|
||||
SUBDIR += bpl+
|
||||
SUBDIR += conserver
|
||||
# SUBDIR += ecu
|
||||
SUBDIR += efax
|
||||
|
@ -1,20 +0,0 @@
|
||||
# $OpenBSD: Makefile,v 1.14 2002/10/25 11:34:24 naddy Exp $
|
||||
|
||||
COMMENT= "B Plus file transfer protocol"
|
||||
|
||||
DISTNAME= bpl+
|
||||
PKGNAME= bpl+-1.0
|
||||
CATEGORIES= comms
|
||||
|
||||
PERMIT_PACKAGE_CDROM= "no license"
|
||||
PERMIT_PACKAGE_FTP= "no license"
|
||||
PERMIT_DISTFILES_CDROM= "no license"
|
||||
PERMIT_DISTFILES_FTP= "no license"
|
||||
|
||||
NO_REGRESS= Yes
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/bpl ${PREFIX}/bin
|
||||
@ln -fs bpl ${PREFIX}/bin/bp
|
||||
|
||||
.include <bsd.port.mk>
|
@ -1,3 +0,0 @@
|
||||
MD5 (bpl+.tar.gz) = 2b18db85caa8ae28477219b0a9c2c099
|
||||
RMD160 (bpl+.tar.gz) = f9d03daba698104e4d99f0c9a1f1d7407c7982d7
|
||||
SHA1 (bpl+.tar.gz) = 1f7737142333b7ddfb40fa176508e2ded7fa9839
|
@ -1,50 +0,0 @@
|
||||
--- bplexec.c.orig Thu Feb 9 17:25:34 1995
|
||||
+++ bplexec.c Wed Nov 15 20:45:53 2000
|
||||
@@ -17,6 +17,7 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
+#include <errno.h>
|
||||
|
||||
#include "bpl.h"
|
||||
#include "machine.h"
|
||||
@@ -1096,7 +1097,7 @@
|
||||
|
||||
fname_w_index = strlen(fname_work);
|
||||
if (copy_body(s)) { /* ファイル名異常 */
|
||||
- strcpy(fname_work, tmpnam(NULL));
|
||||
+ strcpy(fname_work, "/tmp/bpl.XXXXXXXXXX");
|
||||
}
|
||||
|
||||
my_free(real_filename);
|
||||
@@ -1118,16 +1119,19 @@
|
||||
FILE *fp;
|
||||
UCHAR *my_tmp;
|
||||
char *tmp;
|
||||
+ int fd;
|
||||
|
||||
- tmp = tmpnam(NULL);
|
||||
+ tmp = "/tmp/bpl.XXXXXXXXXX";
|
||||
my_tmp = (UCHAR *) malloc(strlen(tmp) + 1);
|
||||
if (my_tmp == NULL)
|
||||
return NULL;
|
||||
strcpy(my_tmp, tmp);
|
||||
|
||||
- fp = fopen(tmp, "wb");
|
||||
- if (fp == NULL) {
|
||||
+ if ((fd = mkstemp(my_tmp)) == -1 ||
|
||||
+ (fp = fdopen(fd, "wb")) == NULL ) {
|
||||
+ fprintf(stderr, "%s: %s\n", my_tmp, strerror(errno));
|
||||
free(my_tmp);
|
||||
+ return NULL;
|
||||
} else {
|
||||
/* ディレクトリは current を使う */
|
||||
strwarn(STR_CANT_CREATE_L); /* 「ファイルが作成できないので」 */
|
||||
@@ -1136,6 +1140,7 @@
|
||||
strwarn(STR_CANT_CREATE_R);
|
||||
my_free(real_filename);
|
||||
real_filename = my_tmp;
|
||||
+ close(fd);
|
||||
}
|
||||
return fp;
|
||||
}
|
@ -1,8 +0,0 @@
|
||||
This is an implementation of B Plus binary file transfer protocol. B
|
||||
Plus is used on several online services to let their users download
|
||||
files from the system.
|
||||
|
||||
In conjunction with telnetx package, you can use this program to
|
||||
download files from those systems connected to the Internet.
|
||||
|
||||
- Masafumi
|
@ -1,3 +0,0 @@
|
||||
@comment $OpenBSD: PLIST,v 1.2 2002/04/07 01:54:48 naddy Exp $
|
||||
bin/bpl
|
||||
bin/bp
|
Loading…
Reference in New Issue
Block a user