Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jul 2010 13:22:08 GMT
From:      Armin Pirkovitsch <armin@frozen-zone.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/148791: mail/sigit update to 0.3.0
Message-ID:  <201007201322.o6KDM8lq068379@www.freebsd.org>
Resent-Message-ID: <201007201330.o6KDU1Zl090339@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         148791
>Category:       ports
>Synopsis:       mail/sigit update to 0.3.0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 20 13:30:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Armin Pirkovitsch
>Release:        
>Organization:
>Environment:
>Description:
Had to modify the pthread test program in configure to make sure it builds in tinderbox.
Added LICENSE.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -Nur mail/sigit.orig/Makefile mail/sigit/Makefile
--- mail/sigit.orig/Makefile	2010-07-18 18:32:18.000000000 +0200
+++ mail/sigit/Makefile	2010-07-20 15:20:35.000000000 +0200
@@ -6,8 +6,7 @@
 #
 
 PORTNAME=	sigit
-PORTVERSION=	0.1.0
-PORTREVISION=	1
+PORTVERSION=	0.3.0
 CATEGORIES=	mail
 MASTER_SITES=	http://www.redhead.dk/download/stable/
 DISTNAME=	Sigit-${PORTVERSION}
@@ -15,15 +14,26 @@
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	A tool to create random signatures
 
+LICENSE=	GPLv2
+
+WRKSRC=	${WRKDIR}/Sigit-${PORTVERSION}
+
 USE_PERL5=	yes
 USE_GMAKE=	yes
-WRKSRC=	${WRKDIR}/sigit-${PORTVERSION}
+HAS_CONFIGURE=	yes
+
+CONFIGURE_ARGS=	--prefix=${LOCALBASE}/share/sigit \
+		--bin-dir=${LOCALBASE}/bin \
+		--man-dir=${LOCALBASE}/man \
+		--etc-dir=${LOCALBASE}/etc
+
+BUILD_DEPENDS=	${LOCALBASE}/bin/boxes:${PORTSDIR}/misc/boxes
 
-MAN1=	sigit.1 sigit.rc.1
+MAN1=	sigit.1 sigitdb.1
+MAN5=	sigit.rc.5
 
 post-patch:
-	@${REINPLACE_CMD} -e 's,/etc/sigit.rc,${PREFIX}/etc/sigit.rc,; \
-		s,/usr/share/sigit,${DATADIR},' ${WRKSRC}/config.h
+	@${MV} ${WRKSRC}/data/sigit.rc ${WRKSRC}/data/sigit.rc.dist
 
 post-install:
 	@(if [ ! -f ${PREFIX}/etc/sigit.rc ]; then \
diff -Nur mail/sigit.orig/distinfo mail/sigit/distinfo
--- mail/sigit.orig/distinfo	2010-07-18 18:32:18.000000000 +0200
+++ mail/sigit/distinfo	2010-07-18 18:33:14.000000000 +0200
@@ -1,3 +1,3 @@
-MD5 (Sigit-0.1.0.tar.gz) = 2f668e76780746498d44b15b60549317
-SHA256 (Sigit-0.1.0.tar.gz) = 7346e896dedff863f24e57b76d1be8b1fdb89caf3f22262990228a9b9f08dbdb
-SIZE (Sigit-0.1.0.tar.gz) = 49790
+MD5 (Sigit-0.3.0.tar.gz) = 6cf32ff08467c21a06bb462c6397a7e0
+SHA256 (Sigit-0.3.0.tar.gz) = 1ad816a86fddaddb2d2891bddd30bb8d0296d71b28edf9c809942ed0b10bc1ab
+SIZE (Sigit-0.3.0.tar.gz) = 133414
diff -Nur mail/sigit.orig/files/patch-Makefile mail/sigit/files/patch-Makefile
--- mail/sigit.orig/files/patch-Makefile	2010-07-18 18:32:18.000000000 +0200
+++ mail/sigit/files/patch-Makefile	1970-01-01 01:00:00.000000000 +0100
@@ -1,62 +0,0 @@
---- Makefile.orig	Thu Mar 15 18:28:16 2001
-+++ Makefile	Sat Aug 18 21:03:35 2001
-@@ -6,23 +6,22 @@
- OS=$(shell uname -s)
- 
- # Compiler
--CC=gcc
-+CC?=gcc
- 
- # Install prefix Where the database and original file is placed.. 
- 
--PREFIX=/usr/share/sigit
- 
- # Installation directory -- where the binary will go
- 
--INSTALLDIR=/usr/bin
-+INSTALLDIR=${PREFIX}/bin
- 
- # Where the default sigit configuration will be
- 
--RCDIR=/etc
-+RCDIR=${PREFIX}/etc
- 
- # Where the systems man pages are placed.. 
- 
--MANDIR=/usr/share/man
-+MANDIR=${PREFIX}/man
- 
- # if you want to test something..
- 
-@@ -47,11 +46,11 @@
- endif
- 
- # Compiler flags
--CFLAGS= -Wall -O2 -D$(OS) $(FLAGS)
-+CFLAGS+= -Wall -D$(OS) $(FLAGS)
- 
- # This is needed for "make install"
- OWNER  = root
--GROUP  = root
-+GROUP  = wheel
- INSTALL  = /usr/bin/install -o $(OWNER) -g $(GROUP) 
- 
- 
-@@ -98,14 +97,14 @@
- 
- 
- install:
--	$(INSTALL) -d $(PREFIX)
-+	$(INSTALL) -d $(PREFIX)/share/sigit
- 	$(INSTALL) -d $(INSTALLDIR)
- 	$(INSTALL) -d $(RCDIR)
- 	$(INSTALL) -d $(MANDIR)/man1
- 	$(INSTALL) -m 555 $(EXE) $(INSTALLDIR)
--	$(INSTALL) -m 664 sigit.data $(PREFIX)
--	$(INSTALL) -m 664 sigit.sig $(PREFIX)
--	$(INSTALL) -m 664 sigit.rc $(RCDIR)
-+	$(INSTALL) -m 664 sigit.data $(PREFIX)/share/sigit
-+	$(INSTALL) -m 664 sigit.sig $(PREFIX)/share/sigit
-+	$(INSTALL) -m 664 sigit.rc $(RCDIR)/sigit.rc.dist
- 	$(INSTALL) -m 444 sigit.1 $(MANDIR)/man1
- 	$(INSTALL) -m 444 sigit.rc.1 $(MANDIR)/man1
diff -Nur mail/sigit.orig/files/patch-configure mail/sigit/files/patch-configure
--- mail/sigit.orig/files/patch-configure	1970-01-01 01:00:00.000000000 +0100
+++ mail/sigit/files/patch-configure	2010-07-20 15:00:47.000000000 +0200
@@ -0,0 +1,34 @@
+--- configure.orig	2003-07-28 19:47:51.000000000 +0200
++++ configure	2010-07-20 15:00:43.000000000 +0200
+@@ -1084,16 +1084,25 @@
+     echo $echo_front "Checking for POSIX threads... $echo_end" 1>&5
+ fi
+ cat <<EOF >__conftest.c
+-#include <unistd.h>
+ #include <pthread.h>
+-int count=0;
+-void *handle() { count++;}
+-int main() {
++#include <stdio.h>
++#define NUM_THREADS     5
++
++int count = 0;
++
++void *test_thread()
++{
++  count++;
++  pthread_exit(NULL);
++}
++
++int main (int argc, char *argv[])
++{
+   pthread_t thread;
+-  pthread_attr_t attr;
+-  pthread_create(&thread, &attr, handle, NULL);
++  pthread_create(&thread, NULL, test_thread, 0);
+   return 0;
+ }
++
+ EOF
+ 
+ if [ x"$PRELINK" = x ]; then
diff -Nur mail/sigit.orig/files/patch-data-Makefile mail/sigit/files/patch-data-Makefile
--- mail/sigit.orig/files/patch-data-Makefile	1970-01-01 01:00:00.000000000 +0100
+++ mail/sigit/files/patch-data-Makefile	2010-07-18 20:54:37.000000000 +0200
@@ -0,0 +1,11 @@
+--- data/Makefile.orig	2010-07-18 20:52:04.000000000 +0200
++++ data/Makefile	2010-07-18 20:52:39.000000000 +0200
+@@ -18,7 +18,7 @@
+ 	$(INSTALL) -d $(INSTALLROOT)$(ETCDIR)
+ 	$(INSTALL) -m $(MANMODE) sigit.data $(INSTALLROOT)$(PREFIX)
+ 	$(INSTALL) -m $(MANMODE) sigit.sig $(INSTALLROOT)$(PREFIX)
+-	$(INSTALL) -m $(MANMODE) sigit.rc $(INSTALLROOT)$(ETCDIR)
++	$(INSTALL) -m $(MANMODE) sigit.rc.dist $(INSTALLROOT)$(ETCDIR)
+ 
+ # and a way to remove it again.
+ uninstall:
diff -Nur mail/sigit.orig/files/patch-deamoninit.c mail/sigit/files/patch-deamoninit.c
--- mail/sigit.orig/files/patch-deamoninit.c	2010-07-18 18:32:18.000000000 +0200
+++ mail/sigit/files/patch-deamoninit.c	1970-01-01 01:00:00.000000000 +0100
@@ -1,20 +0,0 @@
---- deamoninit.c.orig	Wed Oct 31 10:19:57 2001
-+++ deamoninit.c	Wed Oct 31 10:22:35 2001
-@@ -113,13 +113,13 @@
-   logging(2, 1, 0, 0, 1, "[ERROR] : Segfault bugtrace started at address: 0x%.8X\n", &ptr);
-   logging(1, 1, 0, 0, 1, "Running as pid: %d, with uid: %d, recieving status: %d\n", 
- 	  &sig->si_pid, &sig->si_uid, &sig->si_status);
--  logging(1, 1, 0, 0, 1, "Consuming %d User time, and %d System time\n", 
--	  &sig->si_utime , &sig->si_stime);
-+  /* logging(1, 1, 0, 0, 1, "Consuming %d User time, and %d System time\n", 
-+	  &sig->si_utime , &sig->si_stime); */
-   logging(1, 1, 0, 0, 1, "Recovering from error code: %d\n", &sig->si_errno);
-   logging(1, 1, 0, 0, 1, "Caused at address: 0x%.8X\n", &sig->si_addr);
--  logging(1, 1, 0, 0, 1, "While mengeling with fd: %d\n", &sig->si_fd);
-+  /* logging(1, 1, 0, 0, 1, "While mengeling with fd: %d\n", &sig->si_fd); */
-   /* hope this 'si_band' can be used here.. */
--  logging(1, 1, 0, 0, 1, "(%score dumped)\n", WCOREDUMP(&sig->si_band) ?"" : "no ");
-+  /* logging(1, 1, 0, 0, 1, "(%score dumped)\n", WCOREDUMP(&sig->si_band) ?"" : "no "); */
-   /*logging(1, 1, 0, 0, 1, "");*/
- 
-   /* hmmm should be a check here, about the syslog, 
diff -Nur mail/sigit.orig/pkg-plist mail/sigit/pkg-plist
--- mail/sigit.orig/pkg-plist	2010-07-18 18:32:18.000000000 +0200
+++ mail/sigit/pkg-plist	2010-07-18 20:47:02.000000000 +0200
@@ -1,4 +1,5 @@
 bin/sigit
+bin/sigitdb
 @unexec if cmp -s %D/etc/sigit.rc.dist %D/etc/sigit.rc; then rm -f %D/etc/sigit.rc; fi
 etc/sigit.rc.dist
 @exec if [ ! -f %D/etc/sigit.rc ]; then cp %D/etc/%f %D/etc/sigit.rc; fi


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007201322.o6KDM8lq068379>