From faf5c0210ef156f1dcf96a5458386cdeb70daea5 Mon Sep 17 00:00:00 2001 From: fgsch Date: Tue, 10 Sep 2002 21:32:45 +0000 Subject: [PATCH] icq console client with encryption support; from Margarida Sequeira . --- net/ysmv7/Makefile | 24 ++++++++ net/ysmv7/distinfo | 3 + net/ysmv7/patches/patch-configure_in | 32 +++++++++++ net/ysmv7/patches/patch-src_Makefile_in | 63 +++++++++++++++++++++ net/ysmv7/patches/patch-src_YSM_h | 12 ++++ net/ysmv7/patches/patch-src_man_Makefile_in | 36 ++++++++++++ net/ysmv7/pkg/DESCR | 13 +++++ net/ysmv7/pkg/PLIST | 3 + 8 files changed, 186 insertions(+) create mode 100644 net/ysmv7/Makefile create mode 100644 net/ysmv7/distinfo create mode 100644 net/ysmv7/patches/patch-configure_in create mode 100644 net/ysmv7/patches/patch-src_Makefile_in create mode 100644 net/ysmv7/patches/patch-src_YSM_h create mode 100644 net/ysmv7/patches/patch-src_man_Makefile_in create mode 100644 net/ysmv7/pkg/DESCR create mode 100644 net/ysmv7/pkg/PLIST diff --git a/net/ysmv7/Makefile b/net/ysmv7/Makefile new file mode 100644 index 00000000000..dd0e37319cc --- /dev/null +++ b/net/ysmv7/Makefile @@ -0,0 +1,24 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2002/09/10 21:32:45 fgsch Exp $ + +COMMENT= "icq console client with encryption support" +DISTNAME= ysmv7_2_8_0 +PKGNAME= ${DISTNAME:S/_/-/:S/_/./g} +CATEGORIES= net + +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ysmv7/} + +HOMEPAGE= http://ysmv7.sourceforge.net/ + +MAINTAINER= Margarida Sequeira + +# GPL +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +EXTRACT_SUFX= .tgz + +CONFIGURE_STYLE= autoconf + +.include diff --git a/net/ysmv7/distinfo b/net/ysmv7/distinfo new file mode 100644 index 00000000000..c62538dbfab --- /dev/null +++ b/net/ysmv7/distinfo @@ -0,0 +1,3 @@ +MD5 (ysmv7_2_8_0.tgz) = 74e0c74a3edce66d60e8d4c971d3f93a +RMD160 (ysmv7_2_8_0.tgz) = 9398c36db26d05974bad279270b7cb6cc9c855c4 +SHA1 (ysmv7_2_8_0.tgz) = 62f43b20db224904d1eebb591a034e8710c524e0 diff --git a/net/ysmv7/patches/patch-configure_in b/net/ysmv7/patches/patch-configure_in new file mode 100644 index 00000000000..51267a70971 --- /dev/null +++ b/net/ysmv7/patches/patch-configure_in @@ -0,0 +1,32 @@ +$OpenBSD: patch-configure_in,v 1.1.1.1 2002/09/10 21:32:45 fgsch Exp $ +--- configure.in.orig Tue Sep 10 13:11:46 2002 ++++ configure.in Tue Sep 10 13:12:35 2002 +@@ -28,7 +28,11 @@ AC_CHECK_LIB([nsl], + + if test "$pthread_libs"; then + CFLAGS="$CFLAGS -DYSM_WITH_THREADS" +- LIBS="$pthread_libs $LIBS" ++ if test `uname -s` = "OpenBSD"; then ++ LIBS="-pthread $LIBS" ++ else ++ LIBS="$pthread_libs $LIBS" ++ fi + else + echo "" + echo "YSM NOTICE" +@@ -43,15 +47,5 @@ fi + AC_SUBST(pthread_libs) + + AC_STDC_HEADERS +- +-MANPAGE="ysm.1" +- +-for MANDIR in "/usr/share/man" "/usr/man" +-do +- if test -d $MANDIR ; then +- mandir=$MANDIR; +- break; +- fi +-done + + AC_OUTPUT([Makefile src/Makefile src/man/Makefile]) diff --git a/net/ysmv7/patches/patch-src_Makefile_in b/net/ysmv7/patches/patch-src_Makefile_in new file mode 100644 index 00000000000..1d1a349edaa --- /dev/null +++ b/net/ysmv7/patches/patch-src_Makefile_in @@ -0,0 +1,63 @@ +$OpenBSD: patch-src_Makefile_in,v 1.1.1.1 2002/09/10 21:32:45 fgsch Exp $ +--- src/Makefile.in.orig Tue Aug 20 21:49:59 2002 ++++ src/Makefile.in Tue Sep 10 13:34:43 2002 +@@ -9,10 +9,14 @@ CPPFLAGS= -I. -Irijndael + LIBS= @LIBS@ + + INSTALL= @INSTALL@ +-INSTALL_DIR= /usr/local/bin ++prefix= @prefix@ ++exec_prefix= @exec_prefix@ ++bindir= @bindir@ ++ ++DESTDIR= + + PROG= ysm +-PROG_FLAGS= $(CFLAGS) $(CPPFLAGS) $(LIBS) ++PROG_FLAGS= $(CFLAGS) $(CPPFLAGS) + SRCS= YSM_Main.c YSM_Network.c YSM_Setup.c YSM_ToolBox.c YSM_Win32.c YSM_Slaves.c YSM_Prompt.c YSM_Help.c YSM_Wrappers.c YSM_Crypt.c + OBJS= $(SRCS:.c=.o) + EXTERN_OBJS= rijndael/rijndael-alg-fst.o rijndael/rijndael-api-fst.o +@@ -26,7 +30,7 @@ $(OBJS): $(SRCS) + $(CC) $(CFLAGS) $(CPPFLAGS) -c $(@:.o=.c) -o $@ + + $(PROG): $(OBJS) $(EXTERN_OBJS) +- $(CC) $(PROG_FLAGS) $(OBJS) $(EXTERN_OBJS) -o $@ ++ $(CC) $(PROG_FLAGS) $(OBJS) $(EXTERN_OBJS) -o $@ $(LIBS) + @echo -e \ + "\n"\ + "**********************************************************\n"\ +@@ -43,24 +47,24 @@ distclean: clean + -rm -f Makefile config.h + + install-prog: +- @if [ ! -d $(INSTALL_DIR) ]; then \ +- mkdir -p $(INSTALL_DIR); \ ++ @if [ ! -d $(DESTDIR)$(bindir) ]; then \ ++ mkdir -p $(DESTDIR)$(bindir); \ + fi +- @if [ -f "$(INSTALL_DIR)/$(PROG)" ]; then \ +- mv -f "$(INSTALL_DIR)/$(PROG)" "$(INSTALL_DIR)/$(PROG).old"; \ ++ @if [ -f "$(DESTDIR)$(bindir)/$(PROG)" ]; then \ ++ mv -f "$(DESTDIR)$(bindir)/$(PROG)" "$(DESTDIR)$(bindir)/$(PROG).old"; \ + fi +- $(INSTALL) -s $(PROG) $(INSTALL_DIR)/ ; ++ $(INSTALL) -s $(PROG) $(DESTDIR)$(bindir)/ ; + + @echo -e \ + " **********************************************************\n"\ + "** YSM has been installed !! **\n"\ +- "** Please read the YSM_Manual for further **\n"\ +- "** usage and configuration details. **\n"\ ++ "** Please read the YSM man page, ysm(1), for **\n"\ ++ "** further usage and configuration details. **\n"\ + "**********************************************************\n" + + uninstall-prog: +- @if [ -f "$(INSTALL_DIR)/$(PROG)" ]; then \ +- rm -f "$(INSTALL_DIR)/$(PROG)"; \ ++ @if [ -f "$(DESTDIR)$(bindir)/$(PROG)" ]; then \ ++ rm -f "$(DESTDIR)$(bindir)/$(PROG)"; \ + fi + @echo -e \ + "\n"\ diff --git a/net/ysmv7/patches/patch-src_YSM_h b/net/ysmv7/patches/patch-src_YSM_h new file mode 100644 index 00000000000..c39f5d7fa8a --- /dev/null +++ b/net/ysmv7/patches/patch-src_YSM_h @@ -0,0 +1,12 @@ +$OpenBSD: patch-src_YSM_h,v 1.1.1.1 2002/09/10 21:32:45 fgsch Exp $ +--- src/YSM.h.orig Thu Sep 5 14:55:55 2002 ++++ src/YSM.h Thu Sep 5 14:56:05 2002 +@@ -122,7 +122,7 @@ typedef int DWORD; + #define YSM_SILENT_SLAVES_STATUS + + /* Undocumented hoh */ +-#define YSM_WAR_MODE ++#undef YSM_WAR_MODE + + + /* support for Monochrome ! */ diff --git a/net/ysmv7/patches/patch-src_man_Makefile_in b/net/ysmv7/patches/patch-src_man_Makefile_in new file mode 100644 index 00000000000..28dcf7d47a4 --- /dev/null +++ b/net/ysmv7/patches/patch-src_man_Makefile_in @@ -0,0 +1,36 @@ +$OpenBSD: patch-src_man_Makefile_in,v 1.1.1.1 2002/09/10 21:32:45 fgsch Exp $ +--- src/man/Makefile.in.orig Tue Aug 20 21:49:59 2002 ++++ src/man/Makefile.in Thu Sep 5 20:34:50 2002 +@@ -2,23 +2,26 @@ + # YSM ICQ Client < Manual Page Installation > + # + +-prefix= /usr/local ++prefix= @prefix@ + MANDIR= @mandir@ + MAN= ysm.1 + OMAN= $(MAN:=.gz) + INSTALL = @INSTALL@ + ++DESTDIR= ++ + all: + @echo "all done" + + install maninstall: $(OMAN) + + $(OMAN): +- @if [ ! -d $(MANDIR)/man$(subst .,,$(suffix $(@:%.gz=%))) ]; then \ +- mkdir -p $(MANDIR)/man$(subst .,,$(suffix $(@:%.gz=%))); \ +- fi +- -gzip -cf $(@:%.gz=%) > $(MANDIR)/man$(subst .,,$(suffix $(@:%.gz=%)))/$@ +- ++ @suffix=`echo $(MAN) | sed -e 's/^.*\.\(.\)/\1/'`; \ ++ if [ ! -d $(DESTDIR)$(MANDIR)/man$${suffix} ]; then \ ++ mkdir -p $(DESTDIR)$(MANDIR)/man$${suffix}; \ ++ fi ; \ ++ $(INSTALL) $(MAN) $(DESTDIR)$(MANDIR)/man$${suffix} ++# gzip -cf $(MAN) > $(DESTDIR)$(MANDIR)/man$${suffix}/$(OMAN) + + .PHONY: clean distclean + clean: diff --git a/net/ysmv7/pkg/DESCR b/net/ysmv7/pkg/DESCR new file mode 100644 index 00000000000..fafe7c85e2c --- /dev/null +++ b/net/ysmv7/pkg/DESCR @@ -0,0 +1,13 @@ +YSM (You Sick Me) is an ICQ console client for the ICQ protocol v7, +supporting features like: + +*Crypto between YSM clients using a rijndael algorithm implementation +[AES in CBC mode]. +*Downloading server-side stored ICQ contacts. +*Uploading/Saving in the ICQ servers local ICQ contacts. +*ICQ Clients Fingerprinting, makes possible the recognition of +remote ICQ clients. +*Quick and easy to compile code, leaving aside -must have- library +requirements. + +WWW: ${HOMEPAGE} diff --git a/net/ysmv7/pkg/PLIST b/net/ysmv7/pkg/PLIST new file mode 100644 index 00000000000..d8c9113e21f --- /dev/null +++ b/net/ysmv7/pkg/PLIST @@ -0,0 +1,3 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2002/09/10 21:32:45 fgsch Exp $ +bin/ysm +man/man1/ysm.1