Remove icepass; use encrypt(1) instead.

Regen patches and bump version.
This commit is contained in:
fgsch 2001-03-06 06:52:40 +00:00
parent 7318eb273f
commit 836b1485e4
6 changed files with 12 additions and 92 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.8 2000/10/16 13:30:33 fgsch Exp $ # $OpenBSD: Makefile,v 1.9 2001/03/06 06:52:40 fgsch Exp $
.if ${MACHINE_ARCH} == "sparc" .if ${MACHINE_ARCH} == "sparc"
BROKEN= "pthreads are currently not working on the SPARC architecture" BROKEN= "pthreads are currently not working on the SPARC architecture"
@ -6,7 +6,7 @@ BROKEN= "pthreads are currently not working on the SPARC architecture"
DISTNAME= icecast-1.3.7 DISTNAME= icecast-1.3.7
CATEGORIES= net audio www CATEGORIES= net audio www
NEED_VERSION= 1.324 NEED_VERSION= 1.358
MASTER_SITES= http://www.icecast.org/releases/ MASTER_SITES= http://www.icecast.org/releases/
HOMEPAGE= http://www.icecast.org/ HOMEPAGE= http://www.icecast.org/
@ -24,9 +24,6 @@ CONFIGURE_ARGS= --with-crypt --with-libwrap
DOCS= AUTHORS BUGS CHANGES COPYING FAQ README DOCS= AUTHORS BUGS CHANGES COPYING FAQ README
post-patch:
@cp ${FILESDIR}/icepass.c ${WRKSRC}/src
post-install: post-install:
cd ${WRKSRC}; ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/icecast cd ${WRKSRC}; ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/icecast

View File

@ -1,51 +0,0 @@
/* $OpenBSD: icepass.c,v 1.1 2000/08/29 03:40:36 fgsch Exp $ */
/*
* Create an encrypted password to use in icecast.conf, users.aut and
* command line when running the icecast server.
* The encription algorithm is blowfish, with 8 rounds by default.
*
* The number of rounds might be specified in command line.
*
* Tue Aug 29 00:06:28 ART 2000, -fgsch
*/
#include <pwd.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
int
main(argc, argv)
int argc;
char **argv;
{
char *p, salt[_PASSWORD_LEN];
int rounds = 8;
if (argc > 1) {
char *ep;
if (!strcmp(argv[1], "-h")) {
fprintf(stderr, "usage: icepass [rounds]\n");
exit (1);
}
rounds = strtol(argv[1], &ep, 10);
if (argv[1] == '\0' || *ep != '\0' || rounds < 4)
rounds = 4;
}
strncpy(salt, bcrypt_gensalt(rounds), _PASSWORD_LEN - 1);
salt[_PASSWORD_LEN - 1] = 0;
p = crypt(getpass("Password:"), salt);
if (p)
printf("Encrypted password: %s\n", p);
else
printf("Error encrypting password\n");
return (0);
}

View File

@ -1,8 +1,7 @@
$OpenBSD: patch-configure,v 1.3 2000/09/13 09:36:40 fgsch Exp $ $OpenBSD: patch-configure,v 1.4 2001/03/06 06:52:41 fgsch Exp $
--- configure.orig Wed Jul 5 17:22:53 2000
--- configure.orig Wed Jul 5 16:22:53 2000 +++ configure Tue Mar 6 03:23:41 2001
+++ configure Tue Aug 29 00:10:33 2000 @@ -879,16 +879,16 @@ if test "x$enable_fsstd" = "xyes"; then
@@ -879,16 +879,16 @@
else else
ICECAST_BINDIR=${prefix}/bin ICECAST_BINDIR=${prefix}/bin
ICECAST_SBINDIR=${prefix}/bin ICECAST_SBINDIR=${prefix}/bin

View File

@ -1,24 +0,0 @@
$OpenBSD: patch-src_Makefile.in,v 1.1 2000/08/29 04:36:33 brad Exp $
--- src/Makefile.in.orig Wed Jul 5 17:44:54 2000
+++ src/Makefile.in Tue Aug 29 00:12:50 2000
@@ -83,7 +83,7 @@
SUBDIRS = authenticate
-bin_PROGRAMS = icecast
+bin_PROGRAMS = icecast icepass
noinst_HEADERS = admin.h alias.h avl.h avl_functions.h client.h definitions.h commandline.h commands.h connection.h dir.h directory.h globals.h http.h ice_string.h icecast.h icetypes.h log.h logtime.h main.h match.h memory.h relay.h restrict.h sock.h source.h static.h threads.h timer.h utility.h vars.h ice_resolv.h item.h pool.h interpreter.h
@@ -187,6 +187,10 @@
icecast: $(icecast_OBJECTS) $(icecast_DEPENDENCIES)
@rm -f icecast
$(LINK) $(icecast_LDFLAGS) $(icecast_OBJECTS) $(icecast_LDADD) $(LIBS)
+
+icepass: icepass.o
+ @rm -f icepass
+ $(LINK) icepass.o
# This directory's subdirectories are mostly independent; you can cd
# into them and run `make' without going through this Makefile.

View File

@ -1,8 +1,7 @@
$OpenBSD: patch-src_utility.c,v 1.1 2000/08/29 04:36:33 brad Exp $ $OpenBSD: patch-src_utility_c,v 1.1 2001/03/06 06:52:42 fgsch Exp $
--- src/utility.c.orig Wed Jul 5 16:52:40 2000 --- src/utility.c.orig Wed Jul 5 16:52:40 2000
+++ src/utility.c Mon Aug 28 23:06:20 2000 +++ src/utility.c Tue Mar 6 03:23:41 2001
@@ -102,7 +102,6 @@ @@ -102,7 +102,6 @@ int password_match(const char *crypted,
return 0; return 0;
#else #else
@ -10,7 +9,7 @@ $OpenBSD: patch-src_utility.c,v 1.1 2000/08/29 04:36:33 brad Exp $
char *test_crypted; char *test_crypted;
extern char *crypt(const char *, const char *); extern char *crypt(const char *, const char *);
@@ -111,18 +110,8 @@ @@ -111,18 +110,8 @@ int password_match(const char *crypted,
return 0; return 0;
} }

View File

@ -1,6 +1,5 @@
@comment $OpenBSD: PLIST,v 1.2 2000/08/29 03:40:36 fgsch Exp $ @comment $OpenBSD: PLIST,v 1.3 2001/03/06 06:52:43 fgsch Exp $
bin/icecast bin/icecast
bin/icepass
share/doc/icecast/AUTHORS share/doc/icecast/AUTHORS
share/doc/icecast/BUGS share/doc/icecast/BUGS
share/doc/icecast/CHANGES share/doc/icecast/CHANGES
@ -30,6 +29,7 @@ share/icecast/templates/list_directory.html
share/icecast/templates/mountlist.html share/icecast/templates/mountlist.html
share/icecast/templates/statistics.html share/icecast/templates/statistics.html
@dirrm share/icecast/templates @dirrm share/icecast/templates
@dirrm share/icecast/static
@dirrm share/icecast @dirrm share/icecast
@dirrm share/examples/icecast @dirrm share/examples/icecast
@dirrm share/doc/icecast @dirrm share/doc/icecast