import sic-1.1

sic is an extremely simple IRC client. It consists of less than 250
lines of code. It is the little brother of irc it.

ok giovanni@
This commit is contained in:
zinke 2012-07-10 14:03:18 +00:00
parent ea6b9b87ce
commit 1e5e98ec23
7 changed files with 121 additions and 0 deletions

29
net/sic/Makefile Normal file
View File

@ -0,0 +1,29 @@
# $OpenBSD: Makefile,v 1.1.1.1 2012/07/10 14:03:18 zinke Exp $
COMMENT= simple irc client
DISTNAME= sic-1.1
CATEGORIES= net
HOMEPAGE= http://tools.suckless.org/sic/
MAINTAINER= Joerg Zinke <zinke@openbsd.org>
# MIT/X
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c
MASTER_SITES= http://dl.suckless.org/tools/
MAKE_FLAGS= CC="${CC}"
MAKE_ENV= LDFLAGS="${LDFLAGS}"
FAKE_FLAGS= DESTDIR=""
NO_REGRESS= Yes
.include <bsd.port.mk>

5
net/sic/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (sic-1.1.tar.gz) = hW0OX6oVGulgJxPufTSi1Q==
RMD160 (sic-1.1.tar.gz) = OZDB0m1+0Ge97a4GuC13c6lH3RU=
SHA1 (sic-1.1.tar.gz) = gW1SJ1j20E5q9rc5bIB3wyst37I=
SHA256 (sic-1.1.tar.gz) = 8k1jx65fNxXzw4hfW9B9Rf+hsK+DCiVSO67JRlNITcI=
SIZE (sic-1.1.tar.gz) = 5061

View File

@ -0,0 +1,41 @@
$OpenBSD: patch-Makefile,v 1.1.1.1 2012/07/10 14:03:18 zinke Exp $
--- Makefile.orig Mon Jul 9 12:49:37 2012
+++ Makefile Mon Jul 9 12:54:54 2012
@@ -14,14 +14,12 @@ options:
@echo "CC = ${CC}"
.c.o:
- @echo CC $<
- @${CC} -c ${CFLAGS} $<
+ ${CC} -c ${CFLAGS} $<
${OBJ}: config.mk
sic: ${OBJ}
- @echo CC -o $@
- @${CC} -o $@ ${OBJ} ${LDFLAGS}
+ ${CC} -o $@ ${OBJ} ${LDFLAGS}
clean:
@echo cleaning
@@ -36,14 +34,12 @@ dist: clean
@rm -rf sic-${VERSION}
install: all
- @echo installing executable file to ${DESTDIR}${PREFIX}/bin
- @mkdir -p ${DESTDIR}${PREFIX}/bin
- @cp -f sic ${DESTDIR}${PREFIX}/bin
- @chmod 755 ${DESTDIR}${PREFIX}/bin/sic
- @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
- @mkdir -p ${DESTDIR}${MANPREFIX}/man1
- @sed "s/VERSION/${VERSION}/g" < sic.1 > ${DESTDIR}${MANPREFIX}/man1/sic.1
- @chmod 644 ${DESTDIR}${MANPREFIX}/man1/sic.1
+ ${BSD_INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/bin
+ ${BSD_INSTALL_PROGRAM} sic ${DESTDIR}${PREFIX}/bin
+ ${BSD_INSTALL_MAN_DIR} ${DESTDIR}${MANPREFIX}/man1
+ sed "s/VERSION/${VERSION}/g" < sic.1 > sic.1.tmp
+ mv sic.1.tmp sic.1
+ ${BSD_INSTALL_MAN} sic.1 ${DESTDIR}${MANPREFIX}/man1
uninstall:
@echo removing executable file from ${DESTDIR}${PREFIX}/bin

View File

@ -0,0 +1,29 @@
$OpenBSD: patch-config_mk,v 1.1.1.1 2012/07/10 14:03:18 zinke Exp $
--- config.mk.orig Tue May 25 18:05:48 2010
+++ config.mk Mon Jul 9 13:12:46 2012
@@ -4,17 +4,17 @@ VERSION = 1.1
# Customize below to fit your system
# paths
-PREFIX = /usr/local
-MANPREFIX = ${PREFIX}/share/man
+PREFIX ?= /usr/local
+MANPREFIX = ${PREFIX}/man
# includes and libs
-INCS = -I. -I/usr/include
-LIBS = -L/usr/lib -lc
+INCS = -I${PREFIX}/include
+LIBS = -L${PREFIX}/lib
# flags
-CPPFLAGS = -DVERSION=\"${VERSION}\" -D_GNU_SOURCE
-CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
-LDFLAGS = -s ${LIBS}
+CPPFLAGS += -DVERSION=\"${VERSION}\" -D_GNU_SOURCE
+CFLAGS += -std=c99 -pedantic -Wall ${INCS} ${CPPFLAGS}
+LDFLAGS += ${LIBS}
# compiler and linker
-CC = cc
+CC ?= cc

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-sic_c,v 1.1.1.1 2012/07/10 14:03:18 zinke Exp $
--- sic.c.orig Mon Jul 9 16:02:31 2012
+++ sic.c Mon Jul 9 16:02:41 2012
@@ -9,7 +9,7 @@
#include <unistd.h>
static char *host = "irc.oftc.net";
-static char *port = "ircd";
+static char *port = "6667";
static char *password;
static char nick[32];
static char bufin[4096];

2
net/sic/pkg/DESCR Normal file
View File

@ -0,0 +1,2 @@
sic is an extremely simple IRC client. It consists of less than 250
lines of code. It is the little brother of irc it.

3
net/sic/pkg/PLIST Normal file
View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2012/07/10 14:03:18 zinke Exp $
@bin bin/sic
@man man/man1/sic.1