Index: head/astro/wmsolar/Makefile =================================================================== --- head/astro/wmsolar/Makefile (revision 417165) +++ head/astro/wmsolar/Makefile (revision 417166) @@ -1,27 +1,27 @@ # Created by: Patrick Li # $FreeBSD$ PORTNAME= wmsolar PORTVERSION= 1.1 CATEGORIES= astro windowmaker MAINTAINER= tkuiper@inxsoft.net COMMENT= Dockapp that displays the Solar System viewed from the top LICENSE= GPLv2 USE_GITHUB= yes GH_ACCOUNT= engerim42 PLIST_FILES= bin/wmSolar USE_XORG= x11 xext xpm -USES= gmake +USES= dos2unix gmake pre-patch: @${REINPLACE_CMD} -e 's|values.h|float.h|; s|MAXDOUBLE|DBL_MAX|g' \ ${WRKSRC}/wmSolar.c do-install: ${INSTALL_PROGRAM} ${WRKSRC}/wmSolar ${STAGEDIR}${PREFIX}/bin .include Index: head/astro/wmsolar/files/patch-Makefile =================================================================== --- head/astro/wmsolar/files/patch-Makefile (revision 417165) +++ head/astro/wmsolar/files/patch-Makefile (revision 417166) @@ -1,30 +1,30 @@ ---- Makefile.orig Tue Jan 15 17:54:38 2002 -+++ Makefile Tue Jan 15 17:56:37 2002 +--- Makefile.orig 2016-06-20 12:40:27 UTC ++++ Makefile @@ -1,8 +1,6 @@ -CC = g++ -CFLAGS = -O2 -Wall -INCDIR = -I/usr/X11R6/include/X11 -I/usr/X11R6/include +INCDIR = -I${LOCALBASE}/include DESTDIR= /usr/X11R6 -LIBDIR = -L/usr/X11R6/lib +LIBDIR = -L${LOCALBASE}/lib # for linux LIBS = -lXpm -lX11 -lXext -lm # for Solaris -@@ -19,14 +17,14 @@ +@@ -19,14 +17,14 @@ OBJS = wmSolar.o \ RiseSet.o \ Vsop.o .c.o: - $(CC) $(CFLAGS) -D$(shell echo `uname -s`) -c $< -o $*.o $(INCDIR) + $(CXX) $(CXXFLAGS) -c $< -o $*.o $(INCDIR) all: wmSolar.o wmSolar wmSolar.o: wmSolar_master.xpm wmSolar_mask.xbm wmSolar: $(OBJS) - $(CC) $(CFLAGS) $(SYSTEM) -o wmSolar $^ $(INCDIR) $(LIBDIR) $(LIBS) + $(CXX) $(CXXFLAGS) -o wmSolar $^ $(INCDIR) $(LIBDIR) $(LIBS) clean: for i in $(OBJS) ; do \ Index: head/astro/wmsolar/files/patch-Vsop.h =================================================================== --- head/astro/wmsolar/files/patch-Vsop.h (revision 417165) +++ head/astro/wmsolar/files/patch-Vsop.h (revision 417166) @@ -1,10 +1,10 @@ ---- Vsop.h.orig Tue Nov 26 15:41:59 2002 -+++ Vsop.h Tue Nov 26 15:42:13 2002 +--- Vsop.h.orig 2016-06-20 12:40:27 UTC ++++ Vsop.h @@ -12,6 +12,7 @@ - #define VSOP__H - - #include "PlanetData.h" // for enum Planet + #define VSOP__H + + #include "PlanetData.h" // for enum Planet +#include - - // * * * * * simple support structs * * * * * - + + // * * * * * simple support structs * * * * * + Index: head/audio/sphinx/Makefile =================================================================== --- head/audio/sphinx/Makefile (revision 417165) +++ head/audio/sphinx/Makefile (revision 417166) @@ -1,40 +1,41 @@ # Created by: trevor # $FreeBSD$ PORTNAME= sphinx PORTVERSION= 2.0.4 PORTREVISION= 3 CATEGORIES= audio accessibility MASTER_SITES= SF/cmu${PORTNAME}/${PORTNAME}2/0.4 DISTNAME= sphinx2-0.4 MAINTAINER= ports@FreeBSD.org COMMENT= Speech recognition system GNU_CONFIGURE= yes USE_LDCONFIG= yes PKGMESSAGE= ${WRKDIR}/pkg-message -USES= gmake libtool shebangfix +USES= dos2unix gmake libtool shebangfix +DOS2UNIX_FILES= src/libsphinx2fe/fe_sigproc.c SHEBANG_FILES= scripts/sphinx2-demo.in perl_OLD_CMD= "@PERL@ -w" # contains i386 sound code ONLY_FOR_ARCHS= i386 post-patch: @${REINPLACE_CMD} -e 's:::g' \ ${WRKSRC}/src/libsphinx2/CM_funcs.c \ ${WRKSRC}/src/libsphinx2/hash.c \ ${WRKSRC}/src/libsphinx2/list.c \ ${WRKSRC}/src/libsphinx2/salloc.c post-build: ${ECHO_CMD} "*** WARNING ***" > ${PKGMESSAGE} ${ECHO_CMD} "The sphinx 2 port/package has not had" >> ${PKGMESSAGE} ${ECHO_CMD} "proper testing or source review by the" >> ${PKGMESSAGE} ${ECHO_CMD} "FreeBSD maintainer." >> ${PKGMESSAGE} post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libsphinx2*.so .include Index: head/audio/sphinx/files/patch-src-libsphinx2_sc_vq.c =================================================================== --- head/audio/sphinx/files/patch-src-libsphinx2_sc_vq.c (revision 417165) +++ head/audio/sphinx/files/patch-src-libsphinx2_sc_vq.c (nonexistent) @@ -1,10 +0,0 @@ ---- src/libsphinx2/sc_vq.c.orig 2007-12-06 18:38:16.000000000 +0100 -+++ src/libsphinx2/sc_vq.c 2007-12-06 18:38:36.000000000 +0100 -@@ -64,6 +64,7 @@ - - #include - #include -+#include - #include - #include - Property changes on: head/audio/sphinx/files/patch-src-libsphinx2_sc_vq.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/audio/sphinx/files/patch-src-libsphinx2_r_agc_noise.c =================================================================== --- head/audio/sphinx/files/patch-src-libsphinx2_r_agc_noise.c (revision 417165) +++ head/audio/sphinx/files/patch-src-libsphinx2_r_agc_noise.c (nonexistent) @@ -1,10 +0,0 @@ ---- src/libsphinx2/r_agc_noise.c.orig 2007-12-06 18:28:21.000000000 +0100 -+++ src/libsphinx2/r_agc_noise.c 2007-12-06 18:28:49.000000000 +0100 -@@ -34,6 +34,7 @@ - * - */ - #include -+#include - - #include "s2types.h" - #include "c.h" Property changes on: head/audio/sphinx/files/patch-src-libsphinx2_r_agc_noise.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/audio/sphinx/files/patch-src-libsphinx2_cdcn_norm.c =================================================================== --- head/audio/sphinx/files/patch-src-libsphinx2_cdcn_norm.c (revision 417165) +++ head/audio/sphinx/files/patch-src-libsphinx2_cdcn_norm.c (nonexistent) @@ -1,27 +0,0 @@ ---- src/libsphinx2/cdcn_norm.c.orig 2007-12-06 19:24:33.000000000 +0100 -+++ src/libsphinx2/cdcn_norm.c 2007-12-06 19:26:24.000000000 +0100 -@@ -35,6 +35,15 @@ - */ - #include - #include "cdcn.h" -+static void -+actual_cdcn_norm(float variance[][NUM_COEFF+1], /* Speech cepstral variances of modes */ -+ float *prob, /* Ratio of a-prori mode probs. to mod variance */ -+ float *tilt, /* Spectral tilt cepstrum */ -+ float *noise, /* Noise estimate */ -+ float means[][NUM_COEFF+1], /* The cepstrum codebook */ -+ float corrbook[][NUM_COEFF+1], /* The correction factor's codebook */ -+ int num_codes, /* Number of codewords in codebook */ -+ float z[NUM_COEFF+1]); /* The input cepstrum */ - - /************************************************************************ - * Dummy routine to convert from suitcase to sane varibles -@@ -43,8 +52,6 @@ - void cdcn_norm (float z[NUM_COEFF+1], /* The input cepstrum */ - CDCN_type *cdcn_variables) - { -- /* Multidimensional arrays, yuck. */ -- static void actual_cdcn_norm(); - float *variance, *prob, *tilt, *noise, *codebook, *corrbook; - int num_codes; - Property changes on: head/audio/sphinx/files/patch-src-libsphinx2_cdcn_norm.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/audio/sphinx/files/patch-src_libsphinx2ad_ad_oss_bsd.c =================================================================== --- head/audio/sphinx/files/patch-src_libsphinx2ad_ad_oss_bsd.c (revision 417165) +++ head/audio/sphinx/files/patch-src_libsphinx2ad_ad_oss_bsd.c (nonexistent) @@ -1,209 +0,0 @@ -author: Andriy Gapon - ---- src/libsphinx2ad/ad_oss_bsd.c.orig Thu Dec 13 21:11:27 2001 -+++ src/libsphinx2ad/ad_oss_bsd.c Fri Oct 24 04:11:22 2003 -@@ -61,7 +61,7 @@ - #include - #include - #include --#include -+#include - #include - - #include "s2types.h" -@@ -72,14 +72,11 @@ - - #define SPS_EPSILON 200 - --#ifndef SNDCTL_DSP_SETDUPLEX --#define SNDCTL_DSP_SETDUPLEX -1 --#endif - - ad_rec_t *ad_open_sps (int32 sps) { - ad_rec_t *handle; - int32 dspFD, mixerFD; -- int32 nonBlocking=1, sourceMic=1, inputGain=INPUT_GAIN; -+ int32 sourceMic=1, inputGain=INPUT_GAIN; - int32 audioFormat=AUDIO_FORMAT; - int32 dspCaps=0; - int32 sampleRate; -@@ -96,7 +93,6 @@ - } - sampleRate = sps; - -- /* Used to have O_NDELAY. */ - if((dspFD = open ("/dev/dsp", O_RDONLY))<0){ - if (errno == EBUSY) - fprintf(stderr, "Audio device busy\n"); -@@ -105,18 +101,6 @@ - return NULL; - } - -- if (ioctl (dspFD, SNDCTL_DSP_SYNC, 0) < 0){ -- fprintf(stderr, "Audio ioctl(SYNC) failed: %s\n", strerror(errno)); -- close (dspFD); -- return NULL; -- } -- -- if (ioctl (dspFD, SNDCTL_DSP_RESET, 0) < 0){ -- fprintf(stderr, "Audio ioctl(RESET) failed: %s\n", strerror(errno)); -- close (dspFD); -- return NULL; -- } -- - if (ioctl (dspFD, SNDCTL_DSP_SETFMT, &audioFormat) < 0){ - fprintf(stderr, "Audio ioctl(SETFMT 0x%x) failed: %s\n", audioFormat, strerror(errno)); - close (dspFD); -@@ -139,12 +123,6 @@ - return NULL; - } - -- if (ioctl (dspFD, SNDCTL_DSP_NONBLOCK, &nonBlocking) < 0) { -- fprintf(stderr, "ioctl(NONBLOCK) failed: %s\n", strerror(errno)); -- close (dspFD); -- return NULL; -- } -- - if (ioctl (dspFD, SNDCTL_DSP_GETCAPS, &dspCaps) < 0) { - fprintf(stderr, "ioctl(GETCAPS) failed: %s\n", strerror(errno)); - close (dspFD); -@@ -161,8 +139,6 @@ - printf("DSP %s memory map capability.\n", (dspCaps&DSP_CAP_MMAP)?"has":"does not have"); - #endif - -- if ((dspCaps & DSP_CAP_DUPLEX) && (ioctl (dspFD, SNDCTL_DSP_SETDUPLEX, 0) < 0)) -- fprintf(stderr, "ioctl(SETDUPLEX) failed: %s\n", strerror(errno)); - - /* Patched by N. Roy (nickr@ri.cmu.edu), 99/7/23. - Previously, mixer was set through dspFD. This is incorrect. Should -@@ -210,10 +186,10 @@ - } - - handle->dspFD = dspFD; -- handle->recording = 0; - handle->sps = sps; - handle->bps = sizeof(int16); -- -+ handle->recording = 1; -+ - return(handle); - } - -@@ -224,15 +200,10 @@ - - int32 ad_close (ad_rec_t *handle) - { -- if (handle->dspFD < 0) -- return AD_ERR_NOT_OPEN; -- - if (handle->recording) { -- if (ad_stop_rec (handle) < 0) -- return AD_ERR_GEN; -+ ad_stop_rec (handle); - } - -- close (handle->dspFD); - free(handle); - - return(0); -@@ -240,48 +211,62 @@ - - int32 ad_start_rec (ad_rec_t *handle) - { -- if (handle->dspFD < 0) -- return AD_ERR_NOT_OPEN; -- -- if (handle->recording) -- return AD_ERR_GEN; -+ -+ if (!handle->recording) { -+ -+ int32 dspFD; -+ int32 audioFormat=AUDIO_FORMAT; -+ int32 sampleRate=handle->sps; -+ -+ if((dspFD = open ("/dev/dsp", O_RDONLY))<0){ -+ if (errno == EBUSY) -+ fprintf(stderr, "Audio device busy\n"); -+ else -+ fprintf(stderr, "Failed to open audio device: %s\n", strerror(errno)); -+ return AD_ERR_GEN; -+ } - -- /* Sample rate, format, input mix settings, &c. are configured -- * with ioctl(2) calls under Linux. It makes more sense to handle -- * these at device open time and consider the state of the device -- * to be fixed until closed. -- */ -+ if (ioctl (dspFD, SNDCTL_DSP_SETFMT, &audioFormat) < 0){ -+ fprintf(stderr, "Audio ioctl(SETFMT 0x%x) failed: %s\n", audioFormat, strerror(errno)); -+ close (dspFD); -+ return AD_ERR_GEN; -+ } -+ if (audioFormat != AUDIO_FORMAT) { -+ fprintf(stderr, "Audio ioctl(SETFMT): 0x%x, expected: 0x%x\n", audioFormat, AUDIO_FORMAT); -+ close (dspFD); -+ return AD_ERR_GEN; -+ } - -- handle->recording = 1; -- -- /* rkm@cs: This doesn't actually do anything. How do we turn recording on/off? */ -+ if (ioctl (dspFD, SNDCTL_DSP_SPEED, &sampleRate) < 0) { -+ fprintf(stderr, "Audio ioctl(SPEED %d) failed %s\n", sampleRate, strerror(errno)); -+ close (dspFD); -+ return AD_ERR_GEN; -+ } -+ if (sampleRate != handle->sps) { -+ fprintf(stderr, "Audio ioctl(SPEED): %d, expected: %d\n", sampleRate, handle->sps); -+ close (dspFD); -+ return AD_ERR_GEN; -+ } -+ handle->dspFD = dspFD; -+ handle->recording = 1; -+ } - - return(0); - } - - int32 ad_stop_rec (ad_rec_t *handle) - { -- if (handle->dspFD < 0) -- return AD_ERR_NOT_OPEN; -- -- if (! handle->recording) -- return AD_ERR_GEN; -- -- if (ioctl (handle->dspFD, SNDCTL_DSP_SYNC, 0) < 0) { -- fprintf(stderr, "Audio ioctl(SYNC) failed: %s\n", strerror(errno)); -- return AD_ERR_GEN; -- } -- -- handle->recording = 0; -- -+ if (handle->recording) { -+ close (handle->dspFD); -+ handle->dspFD = -1; -+ handle->recording = 0; -+ } - return (0); - } - - int32 ad_read (ad_rec_t *handle, int16 *buf, int32 max) - { -- int32 length; -- -- length = max * handle->bps; /* #samples -> #bytes */ -+ int32 length = max * handle->bps; /* #samples -> #bytes */ - - if ((length = read (handle->dspFD, buf, length)) > 0) { - #if 0 -@@ -292,7 +277,7 @@ - } - - if (length < 0) { -- fprintf(stderr, "Audio read error\n"); -+ perror("Audio read error"); - return AD_ERR_GEN; - } - Property changes on: head/audio/sphinx/files/patch-src_libsphinx2ad_ad_oss_bsd.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/audio/sphinx/files/patch-src-libsphinx2fe_fe_sigproc.c =================================================================== --- head/audio/sphinx/files/patch-src-libsphinx2fe_fe_sigproc.c (revision 417165) +++ head/audio/sphinx/files/patch-src-libsphinx2fe_fe_sigproc.c (nonexistent) @@ -1,11 +0,0 @@ ---- src/libsphinx2fe/fe_sigproc.c.orig 2007-12-06 18:34:10.000000000 +0100 -+++ src/libsphinx2fe/fe_sigproc.c 2007-12-06 18:34:25.000000000 +0100 -@@ -43,7 +43,7 @@ - - #ifndef M_PI - #define M_PI (3.14159265358979323846) --#endif M_PI -+#endif - - #define FORWARD_FFT 1 - #define INVERSE_FFT -1 Property changes on: head/audio/sphinx/files/patch-src-libsphinx2fe_fe_sigproc.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/audio/sphinx/files/patch-src_libsphinx2_cdcn_update.c =================================================================== --- head/audio/sphinx/files/patch-src_libsphinx2_cdcn_update.c (revision 417165) +++ head/audio/sphinx/files/patch-src_libsphinx2_cdcn_update.c (nonexistent) @@ -1,29 +0,0 @@ ---- src/libsphinx2/cdcn_update.c.orig 2001-12-13 22:11:20.000000000 +0100 -+++ src/libsphinx2/cdcn_update.c 2007-12-06 19:40:02.000000000 +0100 -@@ -47,6 +47,11 @@ - * Modified by Uday Jain, June 95 - * - *************************************************************************/ -+static float initialize (float [][NUM_COEFF+1], int, float *, float *, float, -+ float [][NUM_COEFF+1], float *, float [][NUM_COEFF+1], int); -+static void correction(float *, float *, float *, float *, int); -+static float max_q (float *, float *, float *, float *, float *, -+ float *, int, float *, int); - - float - cdcn_update (float *z, /* The observed cepstrum vectors */ -@@ -56,13 +61,7 @@ - float distortion; - float *noise, *tilt, *codebook, *prob, *variance, *corrbook; - int num_codes; -- /* Multidimensional arrays, gar gar gar */ -- static float initialize (float *, int, float *, float *, float, -- float *, float *, float *, int); -- static void correction(float *, float *, float *, float *, int); -- static float max_q (float *, float *, float *, float *, float *, -- float *, int, float *, int); -- -+ - /* - * If error, dont bother - */ Property changes on: head/audio/sphinx/files/patch-src_libsphinx2_cdcn_update.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/audio/sphinx/files/patch-src-libsphinx2_err.c =================================================================== --- head/audio/sphinx/files/patch-src-libsphinx2_err.c (revision 417165) +++ head/audio/sphinx/files/patch-src-libsphinx2_err.c (nonexistent) @@ -1,10 +0,0 @@ ---- src/libsphinx2/err.c.orig 2007-12-06 18:22:49.000000000 +0100 -+++ src/libsphinx2/err.c 2007-12-06 18:23:27.000000000 +0100 -@@ -49,6 +49,7 @@ - */ - - #include -+#include - #if ((! WIN32) && (! _SGI_SOURCE)) - #include - #else Property changes on: head/audio/sphinx/files/patch-src-libsphinx2_err.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/audio/sphinx/files/patch-src-examples_clicore.c =================================================================== --- head/audio/sphinx/files/patch-src-examples_clicore.c (revision 417165) +++ head/audio/sphinx/files/patch-src-examples_clicore.c (nonexistent) @@ -1,11 +0,0 @@ ---- src/examples/clicore.c.orig 2007-12-06 18:36:24.000000000 +0100 -+++ src/examples/clicore.c 2007-12-06 18:36:39.000000000 +0100 -@@ -323,7 +323,7 @@ - memcpy (&addr.sin_addr, hp->h_addr, hp->h_length); - addr.sin_port = htons((u_short) port); - -- if (connect (conn_sd, &addr, sizeof(addr)) == 0) -+ if (connect (conn_sd, (struct sockaddr *)&addr, sizeof(addr)) == 0) - break; - print_errno ("connect"); - cli_close (conn_sd); Property changes on: head/audio/sphinx/files/patch-src-examples_clicore.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/audio/sphinx/files/patch-src-libsphinx2_eht_quit.c =================================================================== --- head/audio/sphinx/files/patch-src-libsphinx2_eht_quit.c (revision 417165) +++ head/audio/sphinx/files/patch-src-libsphinx2_eht_quit.c (nonexistent) @@ -1,10 +0,0 @@ ---- src/libsphinx2/eht_quit.c.orig 2007-12-06 18:21:53.000000000 +0100 -+++ src/libsphinx2/eht_quit.c 2007-12-06 18:22:13.000000000 +0100 -@@ -85,6 +85,7 @@ - */ - - #include -+#include - #include - - void Property changes on: head/audio/sphinx/files/patch-src-libsphinx2_eht_quit.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/audio/sphinx/files/patch-src-libsphinx2_blk_cdcn_norm.c =================================================================== --- head/audio/sphinx/files/patch-src-libsphinx2_blk_cdcn_norm.c (revision 417165) +++ head/audio/sphinx/files/patch-src-libsphinx2_blk_cdcn_norm.c (nonexistent) @@ -1,37 +0,0 @@ ---- src/libsphinx2/blk_cdcn_norm.c.orig 2007-12-06 19:23:43.000000000 +0100 -+++ src/libsphinx2/blk_cdcn_norm.c 2007-12-06 19:23:25.000000000 +0100 -@@ -36,6 +36,18 @@ - #include - #include "cdcn.h" - -+static void -+block_actual_cdcn_norm(float variance[][NUM_COEFF+1], /* Speech cepstral variances of modes */ -+ float *prob, /* Ratio of a-prori mode probs. to mod variance */ -+ float *tilt, /* Spectral tilt cepstrum */ -+ float *noise, /* Noise estimate */ -+ float means[][NUM_COEFF+1], /* The cepstrum codebook */ -+ float corrbook[][NUM_COEFF+1], /* The correction factor's codebook */ -+ int num_codes, /* Number of codewords in codebook */ -+ float z[][NUM_COEFF+1], /* The input cepstrum */ -+ int num_frames); /* Number of frames in utterance */ -+ -+ - /************************************************************************ - * Dummy routine to convert from suitcase to sane varibles - ***************************************************************************/ -@@ -46,7 +58,6 @@ - { - /* Multidimensional arrays in C suck, so we have to - forward-declare-hack this. */ -- static void block_actual_cdcn_norm(); - float *variance, *prob, *tilt, *noise, *codebook, *corrbook; - int num_codes; - -@@ -88,7 +99,6 @@ - * Coded by Alex Acero (acero@s), November 1989 - * - *************************************************************************/ -- - static void - block_actual_cdcn_norm(float variance[][NUM_COEFF+1], /* Speech cepstral variances of modes */ - float *prob, /* Ratio of a-prori mode probs. to mod variance */ Property changes on: head/audio/sphinx/files/patch-src-libsphinx2_blk_cdcn_norm.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/audio/sphinx/files/patch-src-examples_srvcore.c =================================================================== --- head/audio/sphinx/files/patch-src-examples_srvcore.c (revision 417165) +++ head/audio/sphinx/files/patch-src-examples_srvcore.c (nonexistent) @@ -1,11 +0,0 @@ ---- src/examples/srvcore.c.orig 2007-12-06 18:35:25.000000000 +0100 -+++ src/examples/srvcore.c 2007-12-06 18:35:56.000000000 +0100 -@@ -381,7 +381,7 @@ - - ERRLOG((stderr, "%s(%d): Listening at port %d\n", __FILE__, __LINE__, bindport)); - -- if ((conn_sd = accept (listen_sd, &address, &address_len)) == INVALID_SOCKET) { -+ if ((conn_sd = accept (listen_sd, (struct sockaddr *)&address, &address_len)) == INVALID_SOCKET) { - print_errno ("conn_accept"); - return INVALID_SOCKET; - } Property changes on: head/audio/sphinx/files/patch-src-examples_srvcore.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/audio/sphinx/files/patch-src-libsphinx2_linklist.c =================================================================== --- head/audio/sphinx/files/patch-src-libsphinx2_linklist.c (revision 417165) +++ head/audio/sphinx/files/patch-src-libsphinx2_linklist.c (nonexistent) @@ -1,19 +0,0 @@ ---- src/libsphinx2/linklist.c.orig 2007-12-06 18:25:48.000000000 +0100 -+++ src/libsphinx2/linklist.c 2007-12-06 18:27:00.000000000 +0100 -@@ -81,7 +81,6 @@ - - #include - #include --#include - - #include "s2types.h" - -@@ -132,7 +131,7 @@ - cpp = list[i].freelist = (void **) malloc (list[i].n_malloc * elem_size); - cp = (void *) cpp; - for (j = list[i].n_malloc-1; j > 0; --j) { -- (char*)cp += elem_size; -+ cp += elem_size; - *cpp = cp; - cpp = (void **)cp; - } Property changes on: head/audio/sphinx/files/patch-src-libsphinx2_linklist.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/audio/sphinx/files/patch-src-libsphinx2-include_pconf.h =================================================================== --- head/audio/sphinx/files/patch-src-libsphinx2-include_pconf.h (revision 417165) +++ head/audio/sphinx/files/patch-src-libsphinx2-include_pconf.h (nonexistent) @@ -1,8 +0,0 @@ ---- src/libsphinx2/include/pconf.h.orig 2007-12-06 18:24:09.000000000 +0100 -+++ src/libsphinx2/include/pconf.h 2007-12-06 18:24:20.000000000 +0100 -@@ -124,4 +124,4 @@ - char * (*GetDefault)(char const *, char const *), char last); - void pusage(char *prog, Config_t *cp); - --#endif _PCONF_ -+#endif Property changes on: head/audio/sphinx/files/patch-src-libsphinx2-include_pconf.h ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/audio/sphinx/files/patch-src-libsphinx2_search.c =================================================================== --- head/audio/sphinx/files/patch-src-libsphinx2_search.c (revision 417165) +++ head/audio/sphinx/files/patch-src-libsphinx2_search.c (nonexistent) @@ -1,28 +0,0 @@ ---- src/libsphinx2/search.c.orig 2007-12-06 18:29:23.000000000 +0100 -+++ src/libsphinx2/search.c 2007-12-06 18:33:21.000000000 +0100 -@@ -2236,6 +2236,9 @@ - lm_next_frame (); - } - -+static void compute_phone_perplexity( void ); -+static search_hyp_t *fwdtree_pscr_path ( void ); -+ - void - search_finish_fwd (void) - { -@@ -2245,7 +2248,6 @@ - CHAN_T *hmm, /* *thmm,*/ **acl; - /* int32 bp, bestbp, bestscore; */ - /* int32 l_scr; */ -- static void compute_phone_perplexity( void ); - - if ((CurrentFrame > 0) && (topsen_window > 1)) { - /* Wind up remaining frames */ -@@ -2306,7 +2308,6 @@ - /* Get pscr-score for fwdtree recognition */ - { - search_hyp_t *pscrpath; -- static search_hyp_t *fwdtree_pscr_path ( void ); - - if (query_phone_conf ()) { - pscrpath = fwdtree_pscr_path (); Property changes on: head/audio/sphinx/files/patch-src-libsphinx2_search.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/audio/sphinx/files/patch-src-libsphinx2_prime.c =================================================================== --- head/audio/sphinx/files/patch-src-libsphinx2_prime.c (revision 417165) +++ head/audio/sphinx/files/patch-src-libsphinx2_prime.c (nonexistent) @@ -1,9 +0,0 @@ ---- src/libsphinx2/prime.c.orig 2007-12-06 18:27:41.000000000 +0100 -+++ src/libsphinx2/prime.c 2007-12-06 18:27:51.000000000 +0100 -@@ -75,5 +75,4 @@ - } - } - --#endif MAIN -- -+#endif Property changes on: head/audio/sphinx/files/patch-src-libsphinx2_prime.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/audio/sphinx/files/patch-src_examples_clicore.c =================================================================== --- head/audio/sphinx/files/patch-src_examples_clicore.c (nonexistent) +++ head/audio/sphinx/files/patch-src_examples_clicore.c (revision 417166) @@ -0,0 +1,11 @@ +--- src/examples/clicore.c.orig 2001-12-13 21:11:13 UTC ++++ src/examples/clicore.c +@@ -323,7 +323,7 @@ SOCKET cli_open (char *hostname, int32 p + memcpy (&addr.sin_addr, hp->h_addr, hp->h_length); + addr.sin_port = htons((u_short) port); + +- if (connect (conn_sd, &addr, sizeof(addr)) == 0) ++ if (connect (conn_sd, (struct sockaddr *)&addr, sizeof(addr)) == 0) + break; + print_errno ("connect"); + cli_close (conn_sd); Property changes on: head/audio/sphinx/files/patch-src_examples_clicore.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/audio/sphinx/files/patch-src_examples_srvcore.c =================================================================== --- head/audio/sphinx/files/patch-src_examples_srvcore.c (nonexistent) +++ head/audio/sphinx/files/patch-src_examples_srvcore.c (revision 417166) @@ -0,0 +1,11 @@ +--- src/examples/srvcore.c.orig 2001-12-13 21:11:15 UTC ++++ src/examples/srvcore.c +@@ -381,7 +381,7 @@ SOCKET server_await_conn ( void ) + + ERRLOG((stderr, "%s(%d): Listening at port %d\n", __FILE__, __LINE__, bindport)); + +- if ((conn_sd = accept (listen_sd, &address, &address_len)) == INVALID_SOCKET) { ++ if ((conn_sd = accept (listen_sd, (struct sockaddr *)&address, &address_len)) == INVALID_SOCKET) { + print_errno ("conn_accept"); + return INVALID_SOCKET; + } Property changes on: head/audio/sphinx/files/patch-src_examples_srvcore.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/audio/sphinx/files/patch-src_examples_tty-continuous.c =================================================================== --- head/audio/sphinx/files/patch-src_examples_tty-continuous.c (revision 417165) +++ head/audio/sphinx/files/patch-src_examples_tty-continuous.c (revision 417166) @@ -1,12 +1,12 @@ author: Andriy Gapon ---- src/examples/tty-continuous.c.orig Thu Dec 13 21:11:15 2001 -+++ src/examples/tty-continuous.c Mon Oct 20 12:12:58 2003 +--- src/examples/tty-continuous.c.orig 2001-12-13 21:11:15 UTC ++++ src/examples/tty-continuous.c @@ -175,7 +175,6 @@ static void utterance_loop() * listening until current utterance completely decoded */ ad_stop_rec (ad); - while (ad_read (ad, adbuf, 4096) >= 0); cont_ad_reset (cont); printf ("Stopped listening, please wait...\n"); fflush (stdout); Index: head/audio/sphinx/files/patch-src_libsphinx2_blk__cdcn__norm.c =================================================================== --- head/audio/sphinx/files/patch-src_libsphinx2_blk__cdcn__norm.c (nonexistent) +++ head/audio/sphinx/files/patch-src_libsphinx2_blk__cdcn__norm.c (revision 417166) @@ -0,0 +1,37 @@ +--- src/libsphinx2/blk_cdcn_norm.c.orig 2001-12-13 21:11:20 UTC ++++ src/libsphinx2/blk_cdcn_norm.c +@@ -36,6 +36,18 @@ + #include + #include "cdcn.h" + ++static void ++block_actual_cdcn_norm(float variance[][NUM_COEFF+1], /* Speech cepstral variances of modes */ ++ float *prob, /* Ratio of a-prori mode probs. to mod variance */ ++ float *tilt, /* Spectral tilt cepstrum */ ++ float *noise, /* Noise estimate */ ++ float means[][NUM_COEFF+1], /* The cepstrum codebook */ ++ float corrbook[][NUM_COEFF+1], /* The correction factor's codebook */ ++ int num_codes, /* Number of codewords in codebook */ ++ float z[][NUM_COEFF+1], /* The input cepstrum */ ++ int num_frames); /* Number of frames in utterance */ ++ ++ + /************************************************************************ + * Dummy routine to convert from suitcase to sane varibles + ***************************************************************************/ +@@ -46,7 +58,6 @@ void block_cdcn_norm (float z[][NUM_COEF + { + /* Multidimensional arrays in C suck, so we have to + forward-declare-hack this. */ +- static void block_actual_cdcn_norm(); + float *variance, *prob, *tilt, *noise, *codebook, *corrbook; + int num_codes; + +@@ -88,7 +99,6 @@ void block_cdcn_norm (float z[][NUM_COEF + * Coded by Alex Acero (acero@s), November 1989 + * + *************************************************************************/ +- + static void + block_actual_cdcn_norm(float variance[][NUM_COEFF+1], /* Speech cepstral variances of modes */ + float *prob, /* Ratio of a-prori mode probs. to mod variance */ Property changes on: head/audio/sphinx/files/patch-src_libsphinx2_blk__cdcn__norm.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/audio/sphinx/files/patch-src_libsphinx2_cdcn__norm.c =================================================================== --- head/audio/sphinx/files/patch-src_libsphinx2_cdcn__norm.c (nonexistent) +++ head/audio/sphinx/files/patch-src_libsphinx2_cdcn__norm.c (revision 417166) @@ -0,0 +1,27 @@ +--- src/libsphinx2/cdcn_norm.c.orig 2001-12-13 21:11:20 UTC ++++ src/libsphinx2/cdcn_norm.c +@@ -35,6 +35,15 @@ + */ + #include + #include "cdcn.h" ++static void ++actual_cdcn_norm(float variance[][NUM_COEFF+1], /* Speech cepstral variances of modes */ ++ float *prob, /* Ratio of a-prori mode probs. to mod variance */ ++ float *tilt, /* Spectral tilt cepstrum */ ++ float *noise, /* Noise estimate */ ++ float means[][NUM_COEFF+1], /* The cepstrum codebook */ ++ float corrbook[][NUM_COEFF+1], /* The correction factor's codebook */ ++ int num_codes, /* Number of codewords in codebook */ ++ float z[NUM_COEFF+1]); /* The input cepstrum */ + + /************************************************************************ + * Dummy routine to convert from suitcase to sane varibles +@@ -43,8 +52,6 @@ + void cdcn_norm (float z[NUM_COEFF+1], /* The input cepstrum */ + CDCN_type *cdcn_variables) + { +- /* Multidimensional arrays, yuck. */ +- static void actual_cdcn_norm(); + float *variance, *prob, *tilt, *noise, *codebook, *corrbook; + int num_codes; + Property changes on: head/audio/sphinx/files/patch-src_libsphinx2_cdcn__norm.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/audio/sphinx/files/patch-src_libsphinx2_cdcn__update.c =================================================================== --- head/audio/sphinx/files/patch-src_libsphinx2_cdcn__update.c (nonexistent) +++ head/audio/sphinx/files/patch-src_libsphinx2_cdcn__update.c (revision 417166) @@ -0,0 +1,29 @@ +--- src/libsphinx2/cdcn_update.c.orig 2001-12-13 21:11:20 UTC ++++ src/libsphinx2/cdcn_update.c +@@ -47,6 +47,11 @@ + * Modified by Uday Jain, June 95 + * + *************************************************************************/ ++static float initialize (float [][NUM_COEFF+1], int, float *, float *, float, ++ float [][NUM_COEFF+1], float *, float [][NUM_COEFF+1], int); ++static void correction(float *, float *, float *, float *, int); ++static float max_q (float *, float *, float *, float *, float *, ++ float *, int, float *, int); + + float + cdcn_update (float *z, /* The observed cepstrum vectors */ +@@ -56,13 +61,7 @@ cdcn_update (float *z, /* The observed + float distortion; + float *noise, *tilt, *codebook, *prob, *variance, *corrbook; + int num_codes; +- /* Multidimensional arrays, gar gar gar */ +- static float initialize (float *, int, float *, float *, float, +- float *, float *, float *, int); +- static void correction(float *, float *, float *, float *, int); +- static float max_q (float *, float *, float *, float *, float *, +- float *, int, float *, int); +- ++ + /* + * If error, dont bother + */ Property changes on: head/audio/sphinx/files/patch-src_libsphinx2_cdcn__update.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/audio/sphinx/files/patch-src_libsphinx2_eht__quit.c =================================================================== --- head/audio/sphinx/files/patch-src_libsphinx2_eht__quit.c (nonexistent) +++ head/audio/sphinx/files/patch-src_libsphinx2_eht__quit.c (revision 417166) @@ -0,0 +1,10 @@ +--- src/libsphinx2/eht_quit.c.orig 2001-12-13 21:11:20 UTC ++++ src/libsphinx2/eht_quit.c +@@ -85,6 +85,7 @@ + */ + + #include ++#include + #include + + void Property changes on: head/audio/sphinx/files/patch-src_libsphinx2_eht__quit.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/audio/sphinx/files/patch-src_libsphinx2_err.c =================================================================== --- head/audio/sphinx/files/patch-src_libsphinx2_err.c (nonexistent) +++ head/audio/sphinx/files/patch-src_libsphinx2_err.c (revision 417166) @@ -0,0 +1,10 @@ +--- src/libsphinx2/err.c.orig 2001-12-13 21:11:20 UTC ++++ src/libsphinx2/err.c +@@ -49,6 +49,7 @@ + */ + + #include ++#include + #if ((! WIN32) && (! _SGI_SOURCE)) + #include + #else Property changes on: head/audio/sphinx/files/patch-src_libsphinx2_err.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/audio/sphinx/files/patch-src_libsphinx2_include_pconf.h =================================================================== --- head/audio/sphinx/files/patch-src_libsphinx2_include_pconf.h (nonexistent) +++ head/audio/sphinx/files/patch-src_libsphinx2_include_pconf.h (revision 417166) @@ -0,0 +1,8 @@ +--- src/libsphinx2/include/pconf.h.orig 2001-12-13 21:11:27 UTC ++++ src/libsphinx2/include/pconf.h +@@ -124,4 +124,4 @@ int ppconf(int argc, char *argv[], + char * (*GetDefault)(char const *, char const *), char last); + void pusage(char *prog, Config_t *cp); + +-#endif _PCONF_ ++#endif Property changes on: head/audio/sphinx/files/patch-src_libsphinx2_include_pconf.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/audio/sphinx/files/patch-src_libsphinx2_linklist.c =================================================================== --- head/audio/sphinx/files/patch-src_libsphinx2_linklist.c (nonexistent) +++ head/audio/sphinx/files/patch-src_libsphinx2_linklist.c (revision 417166) @@ -0,0 +1,19 @@ +--- src/libsphinx2/linklist.c.orig 2001-12-13 21:11:22 UTC ++++ src/libsphinx2/linklist.c +@@ -81,7 +81,6 @@ + + #include + #include +-#include + + #include "s2types.h" + +@@ -132,7 +131,7 @@ void *listelem_alloc (int32 elem_size) + cpp = list[i].freelist = (void **) malloc (list[i].n_malloc * elem_size); + cp = (void *) cpp; + for (j = list[i].n_malloc-1; j > 0; --j) { +- (char*)cp += elem_size; ++ cp += elem_size; + *cpp = cp; + cpp = (void **)cp; + } Property changes on: head/audio/sphinx/files/patch-src_libsphinx2_linklist.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/audio/sphinx/files/patch-src_libsphinx2_prime.c =================================================================== --- head/audio/sphinx/files/patch-src_libsphinx2_prime.c (nonexistent) +++ head/audio/sphinx/files/patch-src_libsphinx2_prime.c (revision 417166) @@ -0,0 +1,9 @@ +--- src/libsphinx2/prime.c.orig 2001-12-13 21:11:23 UTC ++++ src/libsphinx2/prime.c +@@ -75,5 +75,4 @@ main () + } + } + +-#endif MAIN +- ++#endif Property changes on: head/audio/sphinx/files/patch-src_libsphinx2_prime.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/audio/sphinx/files/patch-src_libsphinx2_r__agc__noise.c =================================================================== --- head/audio/sphinx/files/patch-src_libsphinx2_r__agc__noise.c (nonexistent) +++ head/audio/sphinx/files/patch-src_libsphinx2_r__agc__noise.c (revision 417166) @@ -0,0 +1,10 @@ +--- src/libsphinx2/r_agc_noise.c.orig 2001-12-13 21:11:23 UTC ++++ src/libsphinx2/r_agc_noise.c +@@ -34,6 +34,7 @@ + * + */ + #include ++#include + + #include "s2types.h" + #include "c.h" Property changes on: head/audio/sphinx/files/patch-src_libsphinx2_r__agc__noise.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/audio/sphinx/files/patch-src_libsphinx2_sc__vq.c =================================================================== --- head/audio/sphinx/files/patch-src_libsphinx2_sc__vq.c (nonexistent) +++ head/audio/sphinx/files/patch-src_libsphinx2_sc__vq.c (revision 417166) @@ -0,0 +1,10 @@ +--- src/libsphinx2/sc_vq.c.orig 2001-12-13 21:11:23 UTC ++++ src/libsphinx2/sc_vq.c +@@ -64,6 +64,7 @@ + + #include + #include ++#include + #include + #include + Property changes on: head/audio/sphinx/files/patch-src_libsphinx2_sc__vq.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/audio/sphinx/files/patch-src_libsphinx2_search.c =================================================================== --- head/audio/sphinx/files/patch-src_libsphinx2_search.c (nonexistent) +++ head/audio/sphinx/files/patch-src_libsphinx2_search.c (revision 417166) @@ -0,0 +1,28 @@ +--- src/libsphinx2/search.c.orig 2001-12-13 21:11:24 UTC ++++ src/libsphinx2/search.c +@@ -2236,6 +2236,9 @@ search_one_ply_fwd (void) + lm_next_frame (); + } + ++static void compute_phone_perplexity( void ); ++static search_hyp_t *fwdtree_pscr_path ( void ); ++ + void + search_finish_fwd (void) + { +@@ -2245,7 +2248,6 @@ search_finish_fwd (void) + CHAN_T *hmm, /* *thmm,*/ **acl; + /* int32 bp, bestbp, bestscore; */ + /* int32 l_scr; */ +- static void compute_phone_perplexity( void ); + + if ((CurrentFrame > 0) && (topsen_window > 1)) { + /* Wind up remaining frames */ +@@ -2306,7 +2308,6 @@ search_finish_fwd (void) + /* Get pscr-score for fwdtree recognition */ + { + search_hyp_t *pscrpath; +- static search_hyp_t *fwdtree_pscr_path ( void ); + + if (query_phone_conf ()) { + pscrpath = fwdtree_pscr_path (); Property changes on: head/audio/sphinx/files/patch-src_libsphinx2_search.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/audio/sphinx/files/patch-src_libsphinx2ad_ad__oss__bsd.c =================================================================== --- head/audio/sphinx/files/patch-src_libsphinx2ad_ad__oss__bsd.c (nonexistent) +++ head/audio/sphinx/files/patch-src_libsphinx2ad_ad__oss__bsd.c (revision 417166) @@ -0,0 +1,209 @@ +author: Andriy Gapon + +--- src/libsphinx2ad/ad_oss_bsd.c.orig 2001-12-13 21:11:27 UTC ++++ src/libsphinx2ad/ad_oss_bsd.c +@@ -61,7 +61,7 @@ + #include + #include + #include +-#include ++#include + #include + + #include "s2types.h" +@@ -72,14 +72,11 @@ + + #define SPS_EPSILON 200 + +-#ifndef SNDCTL_DSP_SETDUPLEX +-#define SNDCTL_DSP_SETDUPLEX -1 +-#endif + + ad_rec_t *ad_open_sps (int32 sps) { + ad_rec_t *handle; + int32 dspFD, mixerFD; +- int32 nonBlocking=1, sourceMic=1, inputGain=INPUT_GAIN; ++ int32 sourceMic=1, inputGain=INPUT_GAIN; + int32 audioFormat=AUDIO_FORMAT; + int32 dspCaps=0; + int32 sampleRate; +@@ -96,7 +93,6 @@ ad_rec_t *ad_open_sps (int32 sps) { + } + sampleRate = sps; + +- /* Used to have O_NDELAY. */ + if((dspFD = open ("/dev/dsp", O_RDONLY))<0){ + if (errno == EBUSY) + fprintf(stderr, "Audio device busy\n"); +@@ -105,18 +101,6 @@ ad_rec_t *ad_open_sps (int32 sps) { + return NULL; + } + +- if (ioctl (dspFD, SNDCTL_DSP_SYNC, 0) < 0){ +- fprintf(stderr, "Audio ioctl(SYNC) failed: %s\n", strerror(errno)); +- close (dspFD); +- return NULL; +- } +- +- if (ioctl (dspFD, SNDCTL_DSP_RESET, 0) < 0){ +- fprintf(stderr, "Audio ioctl(RESET) failed: %s\n", strerror(errno)); +- close (dspFD); +- return NULL; +- } +- + if (ioctl (dspFD, SNDCTL_DSP_SETFMT, &audioFormat) < 0){ + fprintf(stderr, "Audio ioctl(SETFMT 0x%x) failed: %s\n", audioFormat, strerror(errno)); + close (dspFD); +@@ -139,12 +123,6 @@ ad_rec_t *ad_open_sps (int32 sps) { + return NULL; + } + +- if (ioctl (dspFD, SNDCTL_DSP_NONBLOCK, &nonBlocking) < 0) { +- fprintf(stderr, "ioctl(NONBLOCK) failed: %s\n", strerror(errno)); +- close (dspFD); +- return NULL; +- } +- + if (ioctl (dspFD, SNDCTL_DSP_GETCAPS, &dspCaps) < 0) { + fprintf(stderr, "ioctl(GETCAPS) failed: %s\n", strerror(errno)); + close (dspFD); +@@ -161,8 +139,6 @@ ad_rec_t *ad_open_sps (int32 sps) { + printf("DSP %s memory map capability.\n", (dspCaps&DSP_CAP_MMAP)?"has":"does not have"); + #endif + +- if ((dspCaps & DSP_CAP_DUPLEX) && (ioctl (dspFD, SNDCTL_DSP_SETDUPLEX, 0) < 0)) +- fprintf(stderr, "ioctl(SETDUPLEX) failed: %s\n", strerror(errno)); + + /* Patched by N. Roy (nickr@ri.cmu.edu), 99/7/23. + Previously, mixer was set through dspFD. This is incorrect. Should +@@ -210,10 +186,10 @@ ad_rec_t *ad_open_sps (int32 sps) { + } + + handle->dspFD = dspFD; +- handle->recording = 0; + handle->sps = sps; + handle->bps = sizeof(int16); +- ++ handle->recording = 1; ++ + return(handle); + } + +@@ -224,15 +200,10 @@ ad_rec_t *ad_open ( void ) + + int32 ad_close (ad_rec_t *handle) + { +- if (handle->dspFD < 0) +- return AD_ERR_NOT_OPEN; +- + if (handle->recording) { +- if (ad_stop_rec (handle) < 0) +- return AD_ERR_GEN; ++ ad_stop_rec (handle); + } + +- close (handle->dspFD); + free(handle); + + return(0); +@@ -240,48 +211,62 @@ int32 ad_close (ad_rec_t *handle) + + int32 ad_start_rec (ad_rec_t *handle) + { +- if (handle->dspFD < 0) +- return AD_ERR_NOT_OPEN; +- +- if (handle->recording) +- return AD_ERR_GEN; ++ ++ if (!handle->recording) { ++ ++ int32 dspFD; ++ int32 audioFormat=AUDIO_FORMAT; ++ int32 sampleRate=handle->sps; ++ ++ if((dspFD = open ("/dev/dsp", O_RDONLY))<0){ ++ if (errno == EBUSY) ++ fprintf(stderr, "Audio device busy\n"); ++ else ++ fprintf(stderr, "Failed to open audio device: %s\n", strerror(errno)); ++ return AD_ERR_GEN; ++ } + +- /* Sample rate, format, input mix settings, &c. are configured +- * with ioctl(2) calls under Linux. It makes more sense to handle +- * these at device open time and consider the state of the device +- * to be fixed until closed. +- */ ++ if (ioctl (dspFD, SNDCTL_DSP_SETFMT, &audioFormat) < 0){ ++ fprintf(stderr, "Audio ioctl(SETFMT 0x%x) failed: %s\n", audioFormat, strerror(errno)); ++ close (dspFD); ++ return AD_ERR_GEN; ++ } ++ if (audioFormat != AUDIO_FORMAT) { ++ fprintf(stderr, "Audio ioctl(SETFMT): 0x%x, expected: 0x%x\n", audioFormat, AUDIO_FORMAT); ++ close (dspFD); ++ return AD_ERR_GEN; ++ } + +- handle->recording = 1; +- +- /* rkm@cs: This doesn't actually do anything. How do we turn recording on/off? */ ++ if (ioctl (dspFD, SNDCTL_DSP_SPEED, &sampleRate) < 0) { ++ fprintf(stderr, "Audio ioctl(SPEED %d) failed %s\n", sampleRate, strerror(errno)); ++ close (dspFD); ++ return AD_ERR_GEN; ++ } ++ if (sampleRate != handle->sps) { ++ fprintf(stderr, "Audio ioctl(SPEED): %d, expected: %d\n", sampleRate, handle->sps); ++ close (dspFD); ++ return AD_ERR_GEN; ++ } ++ handle->dspFD = dspFD; ++ handle->recording = 1; ++ } + + return(0); + } + + int32 ad_stop_rec (ad_rec_t *handle) + { +- if (handle->dspFD < 0) +- return AD_ERR_NOT_OPEN; +- +- if (! handle->recording) +- return AD_ERR_GEN; +- +- if (ioctl (handle->dspFD, SNDCTL_DSP_SYNC, 0) < 0) { +- fprintf(stderr, "Audio ioctl(SYNC) failed: %s\n", strerror(errno)); +- return AD_ERR_GEN; +- } +- +- handle->recording = 0; +- ++ if (handle->recording) { ++ close (handle->dspFD); ++ handle->dspFD = -1; ++ handle->recording = 0; ++ } + return (0); + } + + int32 ad_read (ad_rec_t *handle, int16 *buf, int32 max) + { +- int32 length; +- +- length = max * handle->bps; /* #samples -> #bytes */ ++ int32 length = max * handle->bps; /* #samples -> #bytes */ + + if ((length = read (handle->dspFD, buf, length)) > 0) { + #if 0 +@@ -292,7 +277,7 @@ int32 ad_read (ad_rec_t *handle, int16 * + } + + if (length < 0) { +- fprintf(stderr, "Audio read error\n"); ++ perror("Audio read error"); + return AD_ERR_GEN; + } + Property changes on: head/audio/sphinx/files/patch-src_libsphinx2ad_ad__oss__bsd.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/audio/sphinx/files/patch-src_libsphinx2fe_fe__sigproc.c =================================================================== --- head/audio/sphinx/files/patch-src_libsphinx2fe_fe__sigproc.c (nonexistent) +++ head/audio/sphinx/files/patch-src_libsphinx2fe_fe__sigproc.c (revision 417166) @@ -0,0 +1,11 @@ +--- src/libsphinx2fe/fe_sigproc.c.orig 2016-06-20 13:31:26 UTC ++++ src/libsphinx2fe/fe_sigproc.c +@@ -43,7 +43,7 @@ + + #ifndef M_PI + #define M_PI (3.14159265358979323846) +-#endif M_PI ++#endif + + #define FORWARD_FFT 1 + #define INVERSE_FFT -1 Property changes on: head/audio/sphinx/files/patch-src_libsphinx2fe_fe__sigproc.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/benchmarks/himenobench/Makefile =================================================================== --- head/benchmarks/himenobench/Makefile (revision 417165) +++ head/benchmarks/himenobench/Makefile (revision 417166) @@ -1,84 +1,85 @@ # Created by: NAKATA Maho # $FreeBSD$ PORTNAME= himenobench PORTVERSION= 2015.07.09 CATEGORIES= benchmarks MASTER_SITES= http://accc.riken.jp/wp-content/uploads/2015/07/ DISTFILES= himenobmtxp_xl.zip himenobmtxp_l.zip \ himenobmtxp_m.zip himenobmtxp_s.zip \ cc_himenobmtxp_xl.zip cc_himenobmtxp_l.zip \ cc_himenobmtxp_m.zip cc_himenobmtxp_s.zip \ f90_xp.zip himenobmtxpa.zip DIST_SUBDIR= himeno MAINTAINER= ports@FreeBSD.org COMMENT= Tool for measureing performance of floating point operation LICENSE= LGPL20 # (or later) EXTRACT_DEPENDS= lha:archivers/lha -USES= fortran zip +USES= dos2unix fortran zip +DOS2UNIX_GLOB= *.c *.f NO_WRKSUBDIR= yes OPTIONS_DEFINE= ICC OPTIMIZED_CFLAGS OPTIONS_SUB= yes ICC_DESC= Intel C compiler support ICC_BUILD_DEPENDS= ${LOCALBASE}/intel_cc_80/bin/icc:lang/icc OPTIMIZED_CFLAGS_CFLAGS=${OPTFLAGS} OPTIMIZED_CFLAGS_VARS= FFLAGS+="${OPTFLAGS}" ICC= ${LOCALBASE}/intel_cc_80/bin/icc CFLAGS_ICC= -O3 -tpp7 -axN -Vaxlib OPTFLAGS= -O2 -ffast-math -finline-functions -fomit-frame-pointer \ -funroll-loops -fexpensive-optimizations post-extract: @${FIND} ${WRKSRC} -name "*.lzh" -type f -maxdepth 1 -exec lha \ xfpw=${WRKSRC} {} \; do-build: # cd ${WRKSRC} ; ${FC} ${FFLAGS} -o himenobmtxp_xl himenobmtxp_xl.f #Too large cd ${WRKSRC} ; ${FC} ${FFLAGS} -o himenobmtxp_l himenobmtxp_l.f cd ${WRKSRC} ; ${FC} ${FFLAGS} -o himenobmtxp_m himenobmtxp_m.f cd ${WRKSRC} ; ${FC} ${FFLAGS} -o himenobmtxp_s himenobmtxp_s.f # cd ${WRKSRC} ; ${CC} ${CFLAGS} -DELARGE -o himenobmtxps_xl himenobmtxps.c #Too large cd ${WRKSRC} ; ${CC} ${CFLAGS} -DLARGE -o himenobmtxps_l himenobmtxps.c cd ${WRKSRC} ; ${CC} ${CFLAGS} -DMIDDLE -o himenobmtxps_m himenobmtxps.c cd ${WRKSRC} ; ${CC} ${CFLAGS} -DSMALL -o himenobmtxps_s himenobmtxps.c cd ${WRKSRC} ; ${CC} ${CFLAGS} -DSSMALL -o himenobmtxps_ss himenobmtxps.c cd ${WRKSRC} ; ${CC} ${CFLAGS} -o himenobmtxpa himenobmtxpa.c cd ${WRKSRC} ; ${FC} ${FFLAGS} -o himenobmtxp himenobmtxp.f90 do-build-ICC-on: # cd ${WRKSRC} ; ${ICC} ${CFLAGS_ICC} -DELARGE -o himenobmtxps_xl.icc himenobmtxps.c #Too large cd ${WRKSRC} ; ${ICC} ${CFLAGS_ICC} -DLARGE -o himenobmtxps_l.icc himenobmtxps.c cd ${WRKSRC} ; ${ICC} ${CFLAGS_ICC} -DMIDDLE -o himenobmtxps_m.icc himenobmtxps.c cd ${WRKSRC} ; ${ICC} ${CFLAGS_ICC} -DSMALL -o himenobmtxps_s.icc himenobmtxps.c cd ${WRKSRC} ; ${ICC} ${CFLAGS_ICC} -DSSMALL -o himenobmtxps_ss.icc himenobmtxps.c cd ${WRKSRC} ; ${ICC} ${CFLAGS_ICC} -o himenobmtxpa.icc himenobmtxpa.c do-install: # ${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxp_xl ${STAGEDIR}${PREFIX}/bin #Too large ${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxp_l ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxp_m ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxp_s ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxpa ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxps_l ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxps_m ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxps_s ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxps_ss ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxp ${STAGEDIR}${PREFIX}/bin do-install-ICC-on: # ${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxps_xl.icc ${STAGEDIR}${PREFIX}/bin #Too large ${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxps_l.icc ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxps_m.icc ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxps_s.icc ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxps_ss.icc ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/himenobmtxpa.icc ${STAGEDIR}${PREFIX}/bin .include Index: head/benchmarks/himenobench/files/patch-himenobmtxp__l.f =================================================================== --- head/benchmarks/himenobench/files/patch-himenobmtxp__l.f (revision 417165) +++ head/benchmarks/himenobench/files/patch-himenobmtxp__l.f (revision 417166) @@ -1,10 +1,10 @@ ---- himenobmtxp_l.f.orig 2002-01-07 04:54:46 UTC +--- himenobmtxp_l.f.orig 2016-06-20 13:01:22 UTC +++ himenobmtxp_l.f -@@ -39,7 +39,6 @@ C ------------------- - C "use portlib" statement on the next line is for Visual fortran - C to use UNIX libraries. Please remove it if your system is UNIX. - C ------------------- -- use portlib - IMPLICIT REAL*4(a-h,o-z) - C - PARAMETER (mimax=513,mjmax=257,mkmax=257) +@@ -39,7 +39,6 @@ C ------------------- + C "use portlib" statement on the next line is for Visual fortran + C to use UNIX libraries. Please remove it if your system is UNIX. + C ------------------- +- use portlib + IMPLICIT REAL*4(a-h,o-z) + C + PARAMETER (mimax=513,mjmax=257,mkmax=257) Index: head/benchmarks/himenobench/files/patch-himenobmtxp__m.f =================================================================== --- head/benchmarks/himenobench/files/patch-himenobmtxp__m.f (revision 417165) +++ head/benchmarks/himenobench/files/patch-himenobmtxp__m.f (revision 417166) @@ -1,10 +1,10 @@ ---- himenobmtxp_m.f.orig 2002-01-07 04:54:48 UTC +--- himenobmtxp_m.f.orig 2016-06-20 13:01:22 UTC +++ himenobmtxp_m.f -@@ -39,7 +39,6 @@ C ------------------- - C "use portlib" statement on the next line is for Visual fortran - C to use UNIX libraries. Please remove it if your system is UNIX. - C ------------------- -- use portlib - IMPLICIT REAL*4(a-h,o-z) - C - C PARAMETER (mimax=513,mjmax=257,mkmax=257) +@@ -39,7 +39,6 @@ C ------------------- + C "use portlib" statement on the next line is for Visual fortran + C to use UNIX libraries. Please remove it if your system is UNIX. + C ------------------- +- use portlib + IMPLICIT REAL*4(a-h,o-z) + C + C PARAMETER (mimax=513,mjmax=257,mkmax=257) Index: head/benchmarks/himenobench/files/patch-himenobmtxp__s.f =================================================================== --- head/benchmarks/himenobench/files/patch-himenobmtxp__s.f (revision 417165) +++ head/benchmarks/himenobench/files/patch-himenobmtxp__s.f (revision 417166) @@ -1,10 +1,10 @@ ---- himenobmtxp_s.f.orig 2001-12-17 07:45:16 UTC +--- himenobmtxp_s.f.orig 2016-06-20 13:01:22 UTC +++ himenobmtxp_s.f -@@ -39,7 +39,6 @@ C ------------------- - C "use portlib" statement on the next line is for Visual fortran - C to use UNIX libraries. Please remove it if your system is UNIX. - C ------------------- -- use portlib - IMPLICIT REAL*4(a-h,o-z) - C - C PARAMETER (mimax=513,mjmax=257,mkmax=257) +@@ -39,7 +39,6 @@ C ------------------- + C "use portlib" statement on the next line is for Visual fortran + C to use UNIX libraries. Please remove it if your system is UNIX. + C ------------------- +- use portlib + IMPLICIT REAL*4(a-h,o-z) + C + C PARAMETER (mimax=513,mjmax=257,mkmax=257) Index: head/benchmarks/himenobench/files/patch-himenobmtxp__xl.f =================================================================== --- head/benchmarks/himenobench/files/patch-himenobmtxp__xl.f (revision 417165) +++ head/benchmarks/himenobench/files/patch-himenobmtxp__xl.f (revision 417166) @@ -1,10 +1,10 @@ ---- himenobmtxp_xl.f.orig 2002-01-07 04:54:42 UTC +--- himenobmtxp_xl.f.orig 2016-06-20 13:01:22 UTC +++ himenobmtxp_xl.f -@@ -39,7 +39,6 @@ C ------------------- - C "use portlib" statement on the next line is for Visual fortran - C to use UNIX libraries. Please remove it if your system is UNIX. - C ------------------- -- use portlib - IMPLICIT REAL*4(a-h,o-z) - C - PARAMETER (mimax=1025,mjmax=513,mkmax=513) +@@ -39,7 +39,6 @@ C ------------------- + C "use portlib" statement on the next line is for Visual fortran + C to use UNIX libraries. Please remove it if your system is UNIX. + C ------------------- +- use portlib + IMPLICIT REAL*4(a-h,o-z) + C + PARAMETER (mimax=1025,mjmax=513,mkmax=513) Index: head/benchmarks/himenobench/files/patch-himenobmtxps.c =================================================================== --- head/benchmarks/himenobench/files/patch-himenobmtxps.c (revision 417165) +++ head/benchmarks/himenobench/files/patch-himenobmtxps.c (revision 417166) @@ -1,18 +1,18 @@ ---- himenobmtxps.c.orig 2002-02-21 00:27:48 UTC +--- himenobmtxps.c.orig 2016-06-20 13:01:22 UTC +++ himenobmtxps.c @@ -37,6 +37,7 @@ - ********************************************************************/ - - #include -+#include - - #ifdef SSMALL - #define MIMAX 33 -@@ -245,7 +246,6 @@ mflops(int nn,double cpu,double flop) - double - second() - { --#include - - struct timeval tm; - double t ; + ********************************************************************/ + + #include ++#include + + #ifdef SSMALL + #define MIMAX 33 +@@ -245,7 +246,6 @@ mflops(int nn,double cpu,double flop) + double + second() + { +-#include + + struct timeval tm; + double t ; Index: head/benchmarks/netio/Makefile =================================================================== --- head/benchmarks/netio/Makefile (revision 417165) +++ head/benchmarks/netio/Makefile (revision 417166) @@ -1,37 +1,37 @@ # Created by: arved # $FreeBSD$ PORTNAME= netio PORTVERSION= 1.32 CATEGORIES= benchmarks net ipv6 MASTER_SITES= LOCAL/arved DISTNAME= netio132 MAINTAINER= arved@FreeBSD.org COMMENT= Network benchmark WRKSRC= ${WRKDIR} -USES= gmake zip -PATCH_ARGS= -d ${PATCH_WRKSRC} -N -s -E ${PATCH_STRIP} -l +USES= dos2unix gmake zip +DOS2UNIX_FILES= Makefile netio.c PLIST_FILES= bin/netio CFLAGS+= -DUNIX -DSOCKLEN_T LIBS+= -pthread MAKE_ENV+= OUT=-o OPTIONS_DEFINE= IPV6 IPV6_PLIST_FILES= bin/netio6 do-build: @(cd ${WRKSRC} && \ ${SETENV} ${MAKE_ENV} O=.o CFLAGS="${CFLAGS}" ${MAKE_CMD} all) do-build-IPV6-on: @(cd ${WRKSRC} && \ ${MAKE_ENV} O=.6o X=6 CFLAGS="${CFLAGS} -DUSE_IPV6" ${MAKE_CMD} all) do-install: ${INSTALL_PROGRAM} ${WRKSRC}/netio ${STAGEDIR}${PREFIX}/bin do-install-IPV6-on: ${INSTALL_PROGRAM} ${WRKSRC}/netio6 ${STAGEDIR}${PREFIX}/bin .include Index: head/benchmarks/netio/files/patch-Makefile =================================================================== --- head/benchmarks/netio/files/patch-Makefile (revision 417165) +++ head/benchmarks/netio/files/patch-Makefile (revision 417166) @@ -1,11 +1,11 @@ ---- Makefile.orig Sat Sep 2 13:27:40 2006 -+++ Makefile Sat Sep 2 13:29:30 2006 -@@ -96,7 +96,7 @@ - - .SUFFIXES: .c $O - .c$O: -- $(CC) $(CFLAGS) $(INC) -c $*.c -+ $(CC) $(OUT) $@ $(CFLAGS) $(INC) -c $*.c - - netio$O: netio.c netbios.h getopt.h - netbios$O: netbios.c netbios.h +--- Makefile.orig 2016-06-20 13:21:43 UTC ++++ Makefile +@@ -102,7 +102,7 @@ netio$X: netio$O getopt$O + + .SUFFIXES: .c $O + .c$O: +- $(CC) $(CFLAGS) $(INC) -c $*.c ++ $(CC) $(OUT) $@ $(CFLAGS) $(INC) -c $*.c + + netio$O: netio.c getopt.h + getopt$O: getopt.c getopt.h Index: head/benchmarks/netio/files/patch-netio.c =================================================================== --- head/benchmarks/netio/files/patch-netio.c (revision 417165) +++ head/benchmarks/netio/files/patch-netio.c (revision 417166) @@ -1,335 +1,335 @@ ---- netio.c.orig 2012-11-22 17:47:38.000000000 +0100 -+++ netio.c 2015-03-23 11:52:42.000000000 +0100 -@@ -136,6 +136,7 @@ - #include - #include - #if defined(UNIX) || defined(DJGPP) +--- netio.c.orig 2016-06-20 13:21:43 UTC ++++ netio.c +@@ -136,6 +136,7 @@ static char *rcsrev = "$Revision: 1.32 $ + #include + #include + #if defined(UNIX) || defined(DJGPP) +#include - #include - #include - #include -@@ -546,7 +547,7 @@ - - int recv_data(int socket, void *buffer, size_t size, int flags) - { -- size_t rc = recv(socket, buffer, size, flags); + #include + #include + #include +@@ -546,7 +547,7 @@ int send_data(int socket, void *buffer, + + int recv_data(int socket, void *buffer, size_t size, int flags) + { +- size_t rc = recv(socket, buffer, size, flags); + ssize_t rc = recv(socket, buffer, size, flags); - - if (rc < 0) - { -@@ -563,8 +564,13 @@ - const int sobufsize = 131072; - int nPort = DEFAULTPORT; - int nAuxPort = DEFAULTPORT + 1; + + if (rc < 0) + { +@@ -563,8 +564,13 @@ int recv_data(int socket, void *buffer, + const int sobufsize = 131072; + int nPort = DEFAULTPORT; + int nAuxPort = DEFAULTPORT + 1; +#ifdef USE_IPV6 +struct in6_addr addr_server; +struct in6_addr addr_local; +#else - struct in_addr addr_server; - struct in_addr addr_local; + struct in_addr addr_server; + struct in_addr addr_local; +#endif - - int udpsocket, udpd; - unsigned long nUDPCount; -@@ -577,7 +583,11 @@ - TIMER nTimer; - long nTime; - long long nData; + + int udpsocket, udpd; + unsigned long nUDPCount; +@@ -577,7 +583,11 @@ THREAD TCP_Server(void *arg) + TIMER nTimer; + long nTime; + long long nData; +#ifdef USE_IPV6 + struct sockaddr_in6 sa_server, sa_client; +#else - struct sockaddr_in sa_server, sa_client; + struct sockaddr_in sa_server, sa_client; +#endif - int server, client; - socklen_type length; - struct timeval tv; -@@ -591,7 +601,11 @@ - return THREADRESULT; - } - + int server, client; + socklen_type length; + struct timeval tv; +@@ -591,7 +601,11 @@ THREAD TCP_Server(void *arg) + return THREADRESULT; + } + +#ifdef USE_IPV6 + if ((server = socket(PF_INET6, SOCK_STREAM, 0)) < 0) +#else - if ((server = socket(PF_INET, SOCK_STREAM, 0)) < 0) + if ((server = socket(PF_INET, SOCK_STREAM, 0)) < 0) +#endif - { - psock_errno("socket()"); - free(cBuffer); -@@ -601,9 +615,15 @@ - setsockopt(server, SOL_SOCKET, SO_RCVBUF, (char *) &sobufsize, sizeof(sobufsize)); - setsockopt(server, SOL_SOCKET, SO_SNDBUF, (char *) &sobufsize, sizeof(sobufsize)); - + { + psock_errno("socket()"); + free(cBuffer); +@@ -601,9 +615,15 @@ THREAD TCP_Server(void *arg) + setsockopt(server, SOL_SOCKET, SO_RCVBUF, (char *) &sobufsize, sizeof(sobufsize)); + setsockopt(server, SOL_SOCKET, SO_SNDBUF, (char *) &sobufsize, sizeof(sobufsize)); + +#ifdef USE_IPV6 + sa_server.sin6_family = AF_INET6; + sa_server.sin6_port = htons(nPort); + sa_server.sin6_addr = addr_local; +#else - sa_server.sin_family = AF_INET; - sa_server.sin_port = htons(nPort); - sa_server.sin_addr = addr_local; + sa_server.sin_family = AF_INET; + sa_server.sin_port = htons(nPort); + sa_server.sin_addr = addr_local; +#endif - - if (bind(server, (struct sockaddr *) &sa_server, sizeof(sa_server)) < 0) - { -@@ -753,7 +773,11 @@ - long nTime; - long long nData; - int i; + + if (bind(server, (struct sockaddr *) &sa_server, sizeof(sa_server)) < 0) + { +@@ -753,7 +773,11 @@ void TCP_Bench(void *arg) + long nTime; + long long nData; + int i; +#ifdef USE_IPV6 + struct sockaddr_in6 sa_server, sa_client; +#else - struct sockaddr_in sa_server, sa_client; + struct sockaddr_in sa_server, sa_client; +#endif - int server; - int rc; - int nByte; -@@ -764,7 +788,11 @@ - return; - } - + int server; + int rc; + int nByte; +@@ -764,7 +788,11 @@ void TCP_Bench(void *arg) + return; + } + +#ifdef USE_IPV6 + if ((server = socket(PF_INET6, SOCK_STREAM, 0)) < 0) +#else - if ((server = socket(PF_INET, SOCK_STREAM, 0)) < 0) + if ((server = socket(PF_INET, SOCK_STREAM, 0)) < 0) +#endif - { - psock_errno("socket()"); - free(cBuffer); -@@ -774,21 +802,33 @@ - setsockopt(server, SOL_SOCKET, SO_RCVBUF, (char *) &sobufsize, sizeof(sobufsize)); - setsockopt(server, SOL_SOCKET, SO_SNDBUF, (char *) &sobufsize, sizeof(sobufsize)); - + { + psock_errno("socket()"); + free(cBuffer); +@@ -774,21 +802,33 @@ void TCP_Bench(void *arg) + setsockopt(server, SOL_SOCKET, SO_RCVBUF, (char *) &sobufsize, sizeof(sobufsize)); + setsockopt(server, SOL_SOCKET, SO_SNDBUF, (char *) &sobufsize, sizeof(sobufsize)); + +#ifdef USE_IPV6 + sa_client.sin6_family = AF_INET6; + sa_client.sin6_port = htons(0); + sa_client.sin6_addr = addr_local; +#else - sa_client.sin_family = AF_INET; - sa_client.sin_port = htons(0); - sa_client.sin_addr = addr_local; + sa_client.sin_family = AF_INET; + sa_client.sin_port = htons(0); + sa_client.sin_addr = addr_local; +#endif - - if (bind(server, (struct sockaddr *) &sa_client, sizeof(sa_client)) < 0) - { - psock_errno("bind()"); - soclose(server); - free(cBuffer); -- return THREADRESULT; + + if (bind(server, (struct sockaddr *) &sa_client, sizeof(sa_client)) < 0) + { + psock_errno("bind()"); + soclose(server); + free(cBuffer); +- return THREADRESULT; + return; - } - + } + +#ifdef USE_IPV6 + sa_server.sin6_family = AF_INET6; + sa_server.sin6_port = htons(nPort); + sa_server.sin6_addr = addr_server; +#else - sa_server.sin_family = AF_INET; - sa_server.sin_port = htons(nPort); - sa_server.sin_addr = addr_server; + sa_server.sin_family = AF_INET; + sa_server.sin_port = htons(nPort); + sa_server.sin_addr = addr_server; +#endif - - if (connect(server, (struct sockaddr *) &sa_server, sizeof(sa_server)) < 0) - { -@@ -911,7 +951,11 @@ - THREAD UDP_Receiver(void *arg) - { - char *cBuffer; + + if (connect(server, (struct sockaddr *) &sa_server, sizeof(sa_server)) < 0) + { +@@ -911,7 +951,11 @@ void TCP_Bench(void *arg) + THREAD UDP_Receiver(void *arg) + { + char *cBuffer; +#ifdef USE_IPV6 + struct sockaddr_in6 sa_server, sa_client; +#else - struct sockaddr_in sa_server, sa_client; + struct sockaddr_in sa_server, sa_client; +#endif - int rc; - socklen_type nBytes; - -@@ -921,7 +965,11 @@ - return THREADRESULT; - } - + int rc; + socklen_type nBytes; + +@@ -921,7 +965,11 @@ THREAD UDP_Receiver(void *arg) + return THREADRESULT; + } + +#ifdef USE_IPV6 + if ((udpsocket = socket(PF_INET6, SOCK_DGRAM, 0)) < 0) +#else - if ((udpsocket = socket(PF_INET, SOCK_DGRAM, 0)) < 0) + if ((udpsocket = socket(PF_INET, SOCK_DGRAM, 0)) < 0) +#endif - { - psock_errno("socket(DGRAM)"); - free(cBuffer); -@@ -931,9 +979,15 @@ - setsockopt(udpsocket, SOL_SOCKET, SO_RCVBUF, (char *) &sobufsize, sizeof(sobufsize)); - setsockopt(udpsocket, SOL_SOCKET, SO_SNDBUF, (char *) &sobufsize, sizeof(sobufsize)); - + { + psock_errno("socket(DGRAM)"); + free(cBuffer); +@@ -931,9 +979,15 @@ THREAD UDP_Receiver(void *arg) + setsockopt(udpsocket, SOL_SOCKET, SO_RCVBUF, (char *) &sobufsize, sizeof(sobufsize)); + setsockopt(udpsocket, SOL_SOCKET, SO_SNDBUF, (char *) &sobufsize, sizeof(sobufsize)); + +#ifdef USE_IPV6 + sa_server.sin6_family = AF_INET6; + sa_server.sin6_port = htons(nAuxPort); + sa_server.sin6_addr = addr_local; +#else - sa_server.sin_family = AF_INET; - sa_server.sin_port = htons(nAuxPort); - sa_server.sin_addr = addr_local; + sa_server.sin_family = AF_INET; + sa_server.sin_port = htons(nAuxPort); + sa_server.sin_addr = addr_local; +#endif - - if (bind(udpsocket, (struct sockaddr *) &sa_server, sizeof(sa_server)) < 0) - { -@@ -973,7 +1027,11 @@ - TIMER nTimer; - long nTime; - long long nData; + + if (bind(udpsocket, (struct sockaddr *) &sa_server, sizeof(sa_server)) < 0) + { +@@ -973,7 +1027,11 @@ THREAD UDP_Server(void *arg) + TIMER nTimer; + long nTime; + long long nData; +#ifdef USE_IPV6 + struct sockaddr_in6 sa_server, sa_client; +#else - struct sockaddr_in sa_server, sa_client; + struct sockaddr_in sa_server, sa_client; +#endif - int server, client; - struct timeval tv; - fd_set fds; -@@ -986,7 +1044,11 @@ - return THREADRESULT; - } - + int server, client; + struct timeval tv; + fd_set fds; +@@ -986,7 +1044,11 @@ THREAD UDP_Server(void *arg) + return THREADRESULT; + } + +#ifdef USE_IPV6 + if ((server = socket(PF_INET6, SOCK_STREAM, 0)) < 0) +#else - if ((server = socket(PF_INET, SOCK_STREAM, 0)) < 0) + if ((server = socket(PF_INET, SOCK_STREAM, 0)) < 0) +#endif - { - psock_errno("socket(STREAM)"); - free(cBuffer); -@@ -996,9 +1058,15 @@ - setsockopt(server, SOL_SOCKET, SO_RCVBUF, (char *) &sobufsize, sizeof(sobufsize)); - setsockopt(server, SOL_SOCKET, SO_SNDBUF, (char *) &sobufsize, sizeof(sobufsize)); - + { + psock_errno("socket(STREAM)"); + free(cBuffer); +@@ -996,9 +1058,15 @@ THREAD UDP_Server(void *arg) + setsockopt(server, SOL_SOCKET, SO_RCVBUF, (char *) &sobufsize, sizeof(sobufsize)); + setsockopt(server, SOL_SOCKET, SO_SNDBUF, (char *) &sobufsize, sizeof(sobufsize)); + +#ifdef USE_IPV6 + sa_server.sin6_family = AF_INET6; + sa_server.sin6_port = htons(nAuxPort); + sa_server.sin6_addr = addr_local; +#else - sa_server.sin_family = AF_INET; - sa_server.sin_port = htons(nAuxPort); - sa_server.sin_addr = addr_local; + sa_server.sin_family = AF_INET; + sa_server.sin_port = htons(nAuxPort); + sa_server.sin_addr = addr_local; +#endif - - if (bind(server, (struct sockaddr *) &sa_server, sizeof(sa_server)) < 0) - { -@@ -1044,7 +1112,11 @@ - printf("UDP connection established ... "); - fflush(stdout); - + + if (bind(server, (struct sockaddr *) &sa_server, sizeof(sa_server)) < 0) + { +@@ -1044,7 +1112,11 @@ THREAD UDP_Server(void *arg) + printf("UDP connection established ... "); + fflush(stdout); + +#ifdef USE_IPV6 + sa_client.sin6_port = htons(nAuxPort); +#else - sa_client.sin_port = htons(nAuxPort); + sa_client.sin_port = htons(nAuxPort); +#endif - - for (;;) - { -@@ -1160,7 +1232,11 @@ - long nResult; - long long nData; - int i; + + for (;;) + { +@@ -1160,7 +1232,11 @@ void UDP_Bench(void *arg) + long nResult; + long long nData; + int i; +#ifdef USE_IPV6 + struct sockaddr_in6 sa_server, sa_client; +#else - struct sockaddr_in sa_server, sa_client; + struct sockaddr_in sa_server, sa_client; +#endif - int server; - int rc, nByte; - -@@ -1170,7 +1246,11 @@ - return; - } - + int server; + int rc, nByte; + +@@ -1170,7 +1246,11 @@ void UDP_Bench(void *arg) + return; + } + +#ifdef USE_IPV6 + if ((server = socket(PF_INET6, SOCK_STREAM, 0)) < 0) +#else - if ((server = socket(PF_INET, SOCK_STREAM, 0)) < 0) + if ((server = socket(PF_INET, SOCK_STREAM, 0)) < 0) +#endif - { - psock_errno("socket()"); - free(cBuffer); -@@ -1180,21 +1260,33 @@ - setsockopt(server, SOL_SOCKET, SO_RCVBUF, (char *) &sobufsize, sizeof(sobufsize)); - setsockopt(server, SOL_SOCKET, SO_SNDBUF, (char *) &sobufsize, sizeof(sobufsize)); - + { + psock_errno("socket()"); + free(cBuffer); +@@ -1180,21 +1260,33 @@ void UDP_Bench(void *arg) + setsockopt(server, SOL_SOCKET, SO_RCVBUF, (char *) &sobufsize, sizeof(sobufsize)); + setsockopt(server, SOL_SOCKET, SO_SNDBUF, (char *) &sobufsize, sizeof(sobufsize)); + +#ifdef USE_IPV6 + sa_client.sin6_family = AF_INET6; + sa_client.sin6_port = htons(0); + sa_client.sin6_addr = addr_local; +#else - sa_client.sin_family = AF_INET; - sa_client.sin_port = htons(0); - sa_client.sin_addr = addr_local; + sa_client.sin_family = AF_INET; + sa_client.sin_port = htons(0); + sa_client.sin_addr = addr_local; +#endif - - if (bind(server, (struct sockaddr *) &sa_client, sizeof(sa_client)) < 0) - { - psock_errno("bind(STREAM)"); - soclose(server); - free(cBuffer); -- return THREADRESULT; + + if (bind(server, (struct sockaddr *) &sa_client, sizeof(sa_client)) < 0) + { + psock_errno("bind(STREAM)"); + soclose(server); + free(cBuffer); +- return THREADRESULT; + return; - } - + } + +#ifdef USE_IPV6 + sa_server.sin6_family = AF_INET6; + sa_server.sin6_port = htons(nAuxPort); + sa_server.sin6_addr = addr_server; +#else - sa_server.sin_family = AF_INET; - sa_server.sin_port = htons(nAuxPort); - sa_server.sin_addr = addr_server; + sa_server.sin_family = AF_INET; + sa_server.sin_port = htons(nAuxPort); + sa_server.sin_addr = addr_server; +#endif - - if (connect(server, (struct sockaddr *) &sa_server, sizeof(sa_server)) < 0) - { -@@ -1425,17 +1517,29 @@ - return psock_errno("sock_init()"), 1; - - if (szLocal == 0) + + if (connect(server, (struct sockaddr *) &sa_server, sizeof(sa_server)) < 0) + { +@@ -1425,17 +1517,29 @@ int main(int argc, char **argv) + return psock_errno("sock_init()"), 1; + + if (szLocal == 0) +#ifdef USE_IPV6 + addr_local = in6addr_any; +#else - addr_local.s_addr = INADDR_ANY; + addr_local.s_addr = INADDR_ANY; +#endif - else - { - if (isdigit(*szLocal)) + else + { + if (isdigit(*szLocal)) +#ifdef USE_IPV6 + inet_pton(AF_INET6, szLocal, &addr_local); +#else - addr_local.s_addr = inet_addr(szLocal); + addr_local.s_addr = inet_addr(szLocal); +#endif - else - { - if ((host = gethostbyname(szLocal)) == NULL) - return psock_errno("gethostbyname()"), 1; - + else + { + if ((host = gethostbyname(szLocal)) == NULL) + return psock_errno("gethostbyname()"), 1; + +#ifdef USE_IPV6 + addr_local = * (struct in6_addr *) (host->h_addr); +#else - addr_local = * (struct in_addr *) (host->h_addr); + addr_local = * (struct in_addr *) (host->h_addr); +#endif - } - } - -@@ -1445,13 +1549,21 @@ - usage(); - - if (isdigit(*argv[optind])) + } + } + +@@ -1445,13 +1549,21 @@ int main(int argc, char **argv) + usage(); + + if (isdigit(*argv[optind])) +#ifdef USE_IPV6 + inet_pton(AF_INET6, argv[optind], &addr_server); +#else - addr_server.s_addr = inet_addr(argv[optind]); + addr_server.s_addr = inet_addr(argv[optind]); +#endif - else - { - if ((host = gethostbyname(argv[optind])) == NULL) - return psock_errno("gethostbyname()"), 1; - + else + { + if ((host = gethostbyname(argv[optind])) == NULL) + return psock_errno("gethostbyname()"), 1; + +#ifdef USE_IPV6 + addr_server = * (struct in6_addr *) (host->h_addr); +#else - addr_server = * (struct in_addr *) (host->h_addr); + addr_server = * (struct in_addr *) (host->h_addr); +#endif - } - } - } + } + } + } Index: head/comms/mlan3/Makefile =================================================================== --- head/comms/mlan3/Makefile (revision 417165) +++ head/comms/mlan3/Makefile (revision 417166) @@ -1,23 +1,24 @@ # Created by: hm # $FreeBSD$ PORTNAME= mlan3 PORTVERSION= 1.00 CATEGORIES= comms MASTER_SITES= http://files.maximintegrated.com/sia_bu/public/ DISTNAME= owpd300b MAINTAINER= portmaster@bsdforge.com COMMENT= Version 3.00 beta API for Dallas Semiconductors 1-wire lan devices LICENSE= MIT LICENSE_FILE= ${WRKSRC}/license.txt NO_WRKSUBDIR= yes -USES= uidfix zip +USES= dos2unix uidfix zip +DOS2UNIX_GLOB= *.c *.h post-patch: @${REINPLACE_CMD} -e '/int main/s/short argc/int argc/' \ ${WRKSRC}/apps/gethumd/gethumd.c ${WRKSRC}/apps/shaapp/shaapp.c .include Index: head/comms/mlan3/files/patch-Makefiles =================================================================== --- head/comms/mlan3/files/patch-Makefiles (revision 417165) +++ head/comms/mlan3/files/patch-Makefiles (revision 417166) @@ -1,301 +1,301 @@ ---- Makefile Thu Jan 1 01:00:00 1970 -+++ Makefile Wed Oct 27 17:03:17 2004 +--- Makefile.orig 2016-06-20 12:38:29 UTC ++++ Makefile @@ -0,0 +1,4 @@ + +SUBDIR= lib apps + +.include ---- apps/Makefile Thu Jan 1 01:00:00 1970 -+++ apps/Makefile Wed Oct 27 17:03:17 2004 +--- apps/Makefile.orig 2016-06-20 12:38:29 UTC ++++ apps/Makefile @@ -0,0 +1,6 @@ + +SUBDIR= atodtst counter coupler fish gethumd memutil mweather shaapp \ + swtsngl temp tstfind + +.include + ---- apps/atodtst/Makefile Thu Jan 1 01:00:00 1970 -+++ apps/atodtst/Makefile Wed Oct 27 17:03:17 2004 +--- apps/atodtst/Makefile.orig 2016-06-20 12:38:29 UTC ++++ apps/atodtst/Makefile @@ -0,0 +1,15 @@ +PROG= atodtst +PREFIX?= /usr/local +BINDIR= ${PREFIX}/bin +MLANCOM= ${.CURDIR}/../../common +MLANLIB= ${.CURDIR}/../../lib/userial +CFLAGS= -I. -Wall -I${MLANCOM} +LDADD= -L${MLANLIB} -lmlan +DPADD= ${MLANLIB}/libmlan.a +NO_MAN= 1 +SRCS= ${PROG}.c + +test: ${PROG} + ./${PROG} /dev/cuaa0 + +.include ---- apps/counter/Makefile Thu Jan 1 01:00:00 1970 -+++ apps/counter/Makefile Wed Oct 27 17:03:17 2004 +--- apps/counter/Makefile.orig 2016-06-20 12:38:29 UTC ++++ apps/counter/Makefile @@ -0,0 +1,15 @@ +PROG= counter +PREFIX?= /usr/local +BINDIR= ${PREFIX}/bin +MLANCOM= ${.CURDIR}/../../common +MLANLIB= ${.CURDIR}/../../lib/userial +CFLAGS= -I. -Wall -I${MLANCOM} +LDADD= -L${MLANLIB} -lmlan +DPADD= ${MLANLIB}/libmlan.a +NO_MAN= 1 +SRCS= ${PROG}.c + +test: ${PROG} + ./${PROG} /dev/cuaa0 + +.include ---- apps/coupler/Makefile Thu Jan 1 01:00:00 1970 -+++ apps/coupler/Makefile Wed Oct 27 17:03:17 2004 +--- apps/coupler/Makefile.orig 2016-06-20 12:38:29 UTC ++++ apps/coupler/Makefile @@ -0,0 +1,15 @@ +PROG= coupler +PREFIX?= /usr/local +BINDIR= ${PREFIX}/bin +MLANCOM= ${.CURDIR}/../../common +MLANLIB= ${.CURDIR}/../../lib/userial +CFLAGS= -I. -Wall -I${MLANCOM} +LDADD= -L${MLANLIB} -lmlan +DPADD= ${MLANLIB}/libmlan.a +NO_MAN= 1 +SRCS= ${PROG}.c + +test: ${PROG} + ./${PROG} /dev/cuaa0 + +.include ---- apps/fish/Makefile Thu Jan 1 01:00:00 1970 -+++ apps/fish/Makefile Wed Oct 27 17:03:17 2004 +--- apps/fish/Makefile.orig 2016-06-20 12:38:29 UTC ++++ apps/fish/Makefile @@ -0,0 +1,15 @@ +PROG= fish +PREFIX?= /usr/local +BINDIR= ${PREFIX}/bin +MLANCOM= ${.CURDIR}/../../common +MLANLIB= ${.CURDIR}/../../lib/userial +CFLAGS= -I. -Wall -I${MLANCOM} +LDADD= -L${MLANLIB} -lmlan +DPADD= ${MLANLIB}/libmlan.a +NO_MAN= 1 +SRCS= ${PROG}.c + +test: ${PROG} + ./${PROG} /dev/cuaa0 + +.include ---- apps/gethumd/Makefile Thu Jan 1 01:00:00 1970 -+++ apps/gethumd/Makefile Wed Oct 27 17:03:17 2004 +--- apps/gethumd/Makefile.orig 2016-06-20 12:38:29 UTC ++++ apps/gethumd/Makefile @@ -0,0 +1,15 @@ +PROG= gethumd +PREFIX?= /usr/local +BINDIR= ${PREFIX}/bin +MLANCOM= ${.CURDIR}/../../common +MLANLIB= ${.CURDIR}/../../lib/userial +CFLAGS= -I. -Wall -I${MLANCOM} +LDADD= -L${MLANLIB} -lmlan +DPADD= ${MLANLIB}/libmlan.a +NO_MAN= 1 +SRCS= ${PROG}.c + +test: ${PROG} + ./${PROG} /dev/cuaa0 + +.include ---- apps/memutil/Makefile Thu Jan 1 01:00:00 1970 -+++ apps/memutil/Makefile Wed Oct 27 17:03:17 2004 +--- apps/memutil/Makefile.orig 2016-06-20 12:38:29 UTC ++++ apps/memutil/Makefile @@ -0,0 +1,15 @@ +PROG= memutil +PREFIX?= /usr/local +BINDIR= ${PREFIX}/bin +MLANCOM= ${.CURDIR}/../../common +MLANLIB= ${.CURDIR}/../../lib/userial +CFLAGS= -I. -Wall -I${MLANCOM} +LDADD= -L${MLANLIB} -lmlan +DPADD= ${MLANLIB}/libmlan.a +NO_MAN= 1 +SRCS= ${PROG}.c + +test: ${PROG} + ./${PROG} /dev/cuaa0 + +.include ---- apps/mweather/Makefile Thu Jan 1 01:00:00 1970 -+++ apps/mweather/Makefile Wed Oct 27 17:03:17 2004 +--- apps/mweather/Makefile.orig 2016-06-20 12:38:29 UTC ++++ apps/mweather/Makefile @@ -0,0 +1,15 @@ +PROG= mweather +PREFIX?= /usr/local +BINDIR= ${PREFIX}/bin +MLANCOM= ${.CURDIR}/../../common +MLANLIB= ${.CURDIR}/../../lib/userial +CFLAGS= -I. -Wall -I${MLANCOM} +LDADD= -L${MLANLIB} -lmlan +DPADD= ${MLANLIB}/libmlan.a +NO_MAN= 1 +SRCS= ${PROG}.c + +test: ${PROG} + ./${PROG} /dev/cuaa0 + +.include ---- apps/shaapp/Makefile Thu Jan 1 01:00:00 1970 -+++ apps/shaapp/Makefile Wed Oct 27 17:03:17 2004 +--- apps/shaapp/Makefile.orig 2016-06-20 12:38:29 UTC ++++ apps/shaapp/Makefile @@ -0,0 +1,15 @@ +PROG= shaapp +PREFIX?= /usr/local +BINDIR= ${PREFIX}/bin +MLANCOM= ${.CURDIR}/../../common +MLANLIB= ${.CURDIR}/../../lib/userial +CFLAGS= -I. -Wall -I${MLANCOM} +LDADD= -L${MLANLIB} -lmlan +DPADD= ${MLANLIB}/libmlan.a +NO_MAN= 1 +SRCS= ${PROG}.c + +test: ${PROG} + ./${PROG} /dev/cuaa0 + +.include ---- apps/swtloop/Makefile.app Thu Jan 1 01:00:00 1970 -+++ apps/swtloop/Makefile.app Wed Oct 27 17:03:17 2004 +--- apps/swtloop/Makefile.app.orig 2016-06-20 12:38:29 UTC ++++ apps/swtloop/Makefile.app @@ -0,0 +1,8 @@ +PROG= tstfind +CFLAGS= -I. -Wall -I ../../common +LDFLAGS= -L ../../common -L ../../lib/userial +LDADD= -lmlanser -lmlancom +NO_MAN= true +SRCS= tstfind.c + +.include ---- apps/swtsngl/Makefile Thu Jan 1 01:00:00 1970 -+++ apps/swtsngl/Makefile Wed Oct 27 17:03:17 2004 +--- apps/swtsngl/Makefile.orig 2016-06-20 12:38:29 UTC ++++ apps/swtsngl/Makefile @@ -0,0 +1,15 @@ +PROG= swtsngl +PREFIX?= /usr/local +BINDIR= ${PREFIX}/bin +MLANCOM= ${.CURDIR}/../../common +MLANLIB= ${.CURDIR}/../../lib/userial +CFLAGS= -I. -Wall -I${MLANCOM} +LDADD= -L${MLANLIB} -lmlan +DPADD= ${MLANLIB}/libmlan.a +NO_MAN= 1 +SRCS= ${PROG}.c + +test: ${PROG} + ./${PROG} /dev/cuaa0 + +.include ---- apps/temp/Makefile Thu Jan 1 01:00:00 1970 -+++ apps/temp/Makefile Wed Oct 27 17:03:17 2004 +--- apps/temp/Makefile.orig 2016-06-20 12:38:29 UTC ++++ apps/temp/Makefile @@ -0,0 +1,15 @@ +PROG= temp +PREFIX?= /usr/local +BINDIR= ${PREFIX}/bin +MLANCOM= ${.CURDIR}/../../common +MLANLIB= ${.CURDIR}/../../lib/userial +CFLAGS= -I. -Wall -I${MLANCOM} +LDADD= -L${MLANLIB} -lmlan +DPADD= ${MLANLIB}/libmlan.a +NO_MAN= 1 +SRCS= ${PROG}.c + +test: ${PROG} + ./${PROG} /dev/cuaa0 + +.include ---- apps/thermo/Makefile.app Thu Jan 1 01:00:00 1970 -+++ apps/thermo/Makefile.app Wed Oct 27 17:03:17 2004 +--- apps/thermo/Makefile.app.orig 2016-06-20 12:38:29 UTC ++++ apps/thermo/Makefile.app @@ -0,0 +1,8 @@ +PROG= tstfind +CFLAGS= -I. -Wall -I ../../common +LDFLAGS= -L ../../common -L ../../lib/userial +LDADD= -lmlanser -lmlancom +NO_MAN= true +SRCS= tstfind.c + +.include ---- apps/tstfind/Makefile Thu Jan 1 01:00:00 1970 -+++ apps/tstfind/Makefile Wed Oct 27 17:03:17 2004 +--- apps/tstfind/Makefile.orig 2016-06-20 12:38:29 UTC ++++ apps/tstfind/Makefile @@ -0,0 +1,15 @@ +PROG= tstfind +PREFIX?= /usr/local +BINDIR= ${PREFIX}/bin +MLANCOM= ${.CURDIR}/../../common +MLANLIB= ${.CURDIR}/../../lib/userial +CFLAGS= -I. -Wall -I${MLANCOM} +LDADD= -L${MLANLIB} -lmlan +DPADD= ${MLANLIB}/libmlan.a +NO_MAN= 1 +SRCS= ${PROG}.c + +test: ${PROG} + ./${PROG} /dev/cuaa0 + +.include ---- common/ownet.h Fri Sep 28 21:42:02 2001 -+++ common/ownet.h Wed Oct 27 17:03:17 2004 +--- common/ownet.h.orig 2016-06-20 12:38:29 UTC ++++ common/ownet.h @@ -133,6 +133,10 @@ - typedef unsigned short ushort; - typedef unsigned long ulong; - #endif + typedef unsigned short ushort; + typedef unsigned long ulong; + #endif + #if (__FreeBSD__) + #include + typedef unsigned long ulong; + #endif - #endif - #ifdef SDCC - //intent of ushort is 2 bytes unsigned. ---- lib/Makefile Thu Jan 1 01:00:00 1970 -+++ lib/Makefile Wed Oct 27 17:03:17 2004 + #endif + #ifdef SDCC + //intent of ushort is 2 bytes unsigned. +--- lib/Makefile.orig 2016-06-20 12:38:29 UTC ++++ lib/Makefile @@ -0,0 +1,3 @@ +SUBDIR= userial + +.include ---- lib/userial/Link/linuxlnk.c Fri Sep 28 21:42:14 2001 -+++ lib/userial/Link/linuxlnk.c Wed Oct 27 17:03:17 2004 +--- lib/userial/Link/linuxlnk.c.orig 2016-06-20 12:38:29 UTC ++++ lib/userial/Link/linuxlnk.c @@ -93,6 +93,7 @@ - #include - #include - #include + #include + #include + #include +#include - - #include "ds2480.h" - #include "ownet.h" ---- lib/userial/Makefile Thu Jan 1 01:00:00 1970 -+++ lib/userial/Makefile Wed Oct 27 17:03:56 2004 + + #include "ds2480.h" + #include "ownet.h" +--- lib/userial/Makefile.orig 2016-06-20 12:38:29 UTC ++++ lib/userial/Makefile @@ -0,0 +1,33 @@ +MLANCOM= ${.CURDIR}/../../common +MLANLNK= ${.CURDIR}/Link +LIB= mlan +CFLAGS= -I. -Wall -I${MLANCOM} +NO_PROFILE= yes +PREFIX?= /usr/local +LIBDIR= ${PREFIX}/lib + + +.PATH: ${MLANCOM} ${MLANLNK} + +SRCS= ds2480ut.c owllu.c ownetu.c owsesu.c owtrnu.c + +SRCS+= linuxlnk.c + +SRCS+= ad26.c atod20.c cnt1d.c \ + crcutil.c findtype.c ibsha33o.c \ + ioutil.c mbappreg.c mbee.c \ + mbeprom.c mbnv.c mbnvcrc.c \ + mbscr.c mbscrcrc.c mbscree.c \ + mbscrex.c mbsha.c mbshaee.c \ + owcache.c owerr.c owfile.c \ + owpgrw.c owprgm.c rawmem.c \ + screenio.c sha18.c sha33.c \ + shadebit.c shadebitvm.c shaibutton.c \ + swt05.c swt12.c swt1f.c \ + temp10.c thermo21.c weather.c + +beforeinstall: + ${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ + ${_INSTALLFLAGS} ${MLANCOM}/ownet.h ${DESTDIR}/${PREFIX}/include + +.include Index: head/databases/pgagent/Makefile =================================================================== --- head/databases/pgagent/Makefile (revision 417165) +++ head/databases/pgagent/Makefile (revision 417166) @@ -1,25 +1,25 @@ # Created by: Max Khon # $FreeBSD$ PORTNAME= pgagent PORTVERSION= 3.4.0 PORTREVISION= 2 CATEGORIES= databases MASTER_SITES= PGSQL/pgadmin3/release/pgagent DISTNAME= pgAgent-${PORTVERSION}-Source MAINTAINER= fjoe@FreeBSD.org COMMENT= Job scheduler for PostgreSQL -USES= cmake pgsql +USES= cmake dos2unix pgsql +DOS2UNIX_GLOB= *.txt CMAKE_ARGS= -DSTATIC_BUILD:BOOL=NO -DWX_CONFIG_PATH:FILEPATH="${WX_CONFIG}" USE_WX= 2.8 -WX_UNICODE= yes PLIST_FILES= bin/pgagent \ share/postgresql/extension/pgagent--3.4.sql \ share/postgresql/extension/pgagent--unpackaged--3.4.sql \ share/postgresql/extension/pgagent.control PORTDATA= * .include Index: head/databases/pgagent/files/patch-CMakeLists.txt =================================================================== --- head/databases/pgagent/files/patch-CMakeLists.txt (revision 417165) +++ head/databases/pgagent/files/patch-CMakeLists.txt (revision 417166) @@ -1,19 +1,19 @@ ---- CMakeLists.txt.orig 2014-02-26 04:48:45.000000000 +0700 -+++ CMakeLists.txt 2015-01-28 08:06:29.000000000 +0600 -@@ -134,12 +134,12 @@ - INSTALL(FILES ${pgagent_SOURCE_DIR}/sql/pgagent_upgrade.sql DESTINATION .) - ELSE(WIN32) - INSTALL(TARGETS pgagent DESTINATION bin) -- INSTALL(FILES ${pgagent_SOURCE_DIR}/sql/pgagent.sql DESTINATION share) -- INSTALL(FILES ${pgagent_SOURCE_DIR}/sql/pgagent_upgrade.sql DESTINATION share) -+ INSTALL(FILES ${pgagent_SOURCE_DIR}/sql/pgagent.sql DESTINATION share/pgagent) -+ INSTALL(FILES ${pgagent_SOURCE_DIR}/sql/pgagent_upgrade.sql DESTINATION share/pgagent) - ENDIF(WIN32) - --INSTALL(FILES ${pgagent_SOURCE_DIR}/README DESTINATION .) --INSTALL(FILES ${pgagent_SOURCE_DIR}/LICENSE DESTINATION .) -+INSTALL(FILES ${pgagent_SOURCE_DIR}/README DESTINATION share/pgagent) -+INSTALL(FILES ${pgagent_SOURCE_DIR}/LICENSE DESTINATION share/pgagent) - - # Extension - IF(PG_EXTENSION) +--- CMakeLists.txt.orig 2016-06-20 15:30:20 UTC ++++ CMakeLists.txt +@@ -134,12 +134,12 @@ IF (WIN32) + INSTALL(FILES ${pgagent_SOURCE_DIR}/sql/pgagent_upgrade.sql DESTINATION .) + ELSE(WIN32) + INSTALL(TARGETS pgagent DESTINATION bin) +- INSTALL(FILES ${pgagent_SOURCE_DIR}/sql/pgagent.sql DESTINATION share) +- INSTALL(FILES ${pgagent_SOURCE_DIR}/sql/pgagent_upgrade.sql DESTINATION share) ++ INSTALL(FILES ${pgagent_SOURCE_DIR}/sql/pgagent.sql DESTINATION share/pgagent) ++ INSTALL(FILES ${pgagent_SOURCE_DIR}/sql/pgagent_upgrade.sql DESTINATION share/pgagent) + ENDIF(WIN32) + +-INSTALL(FILES ${pgagent_SOURCE_DIR}/README DESTINATION .) +-INSTALL(FILES ${pgagent_SOURCE_DIR}/LICENSE DESTINATION .) ++INSTALL(FILES ${pgagent_SOURCE_DIR}/README DESTINATION share/pgagent) ++INSTALL(FILES ${pgagent_SOURCE_DIR}/LICENSE DESTINATION share/pgagent) + + # Extension + IF(PG_EXTENSION) Index: head/deskutils/everygui/Makefile =================================================================== --- head/deskutils/everygui/Makefile (revision 417165) +++ head/deskutils/everygui/Makefile (revision 417166) @@ -1,29 +1,30 @@ # Created by: Remington Lang # $FreeBSD$ PORTNAME= everygui PORTVERSION= 0.99.b PORTREVISION= 7 CATEGORIES= deskutils gnome MASTER_SITES= SF MAINTAINER= ports@FreeBSD.org COMMENT= Dynamic GUI for an OS command -USES= python +USES= dos2unix python +DOS2UNIX_GLOB= *.py USE_PYTHON= distutils autoplist USE_GNOME= libglade2 pygnome2 WRKSRC= ${WRKDIR}/${PORTNAME} post-patch: @${FIND} ${WRKSRC} -name "*.py" | ${XARGS} ${REINPLACE_CMD} -e\ 's,/usr/share,${PREFIX}/share,g' -e\ 's,/usr/src,${PREFIX}/src,g' @${REINPLACE_CMD} -e 's,/usr/src/everygui,${PREFIX}/src/everygui,g' \ ${WRKSRC}/everygui @${REINPLACE_CMD} -e 's,/usr/src,${PREFIX}/src,g' \ ${WRKSRC}/egdesign @${FIND} ${WRKSRC} -name "*.bak" -delete .include Index: head/deskutils/everygui/files/patch-setup.py =================================================================== --- head/deskutils/everygui/files/patch-setup.py (revision 417165) +++ head/deskutils/everygui/files/patch-setup.py (revision 417166) @@ -1,19 +1,19 @@ ---- setup.py.orig Tue Jan 10 09:59:47 2006 -+++ setup.py Sun Jan 15 11:46:49 2006 -@@ -8,11 +8,6 @@ - from distutils.core import setup - import glob +--- setup.py.orig 2016-06-20 15:30:48 UTC ++++ setup.py +@@ -8,11 +8,6 @@ import sys + from distutils.core import setup + import glob -try: - import gtk -except: - sys.exit("pyGTK version 2.6 or greater is required to run everygui. http://www.pygtk.org") - - - setup( - name='everygui', -@@ -29,4 +24,3 @@ - ("share/everygui/egconfig", glob.glob("egconfig/*.egd"))] + + setup( + name='everygui', +@@ -29,4 +24,3 @@ setup( + ("share/everygui/egconfig", glob.glob("egconfig/*.egd"))] ) -os.chmod("/usr/share/everygui/egconfig", 0777) Index: head/devel/charva/Makefile =================================================================== --- head/devel/charva/Makefile (revision 417165) +++ head/devel/charva/Makefile (revision 417166) @@ -1,55 +1,50 @@ # Created by: Alex Dupre # $FreeBSD$ PORTNAME= charva PORTVERSION= 1.1.4 PORTREVISION= 5 CATEGORIES= devel java MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} DISTNAME= ${PORTNAME} MAINTAINER= ale@FreeBSD.org COMMENT= Java Windowing Toolkit for Text Terminals BUILD_DEPENDS= gmake:devel/gmake RUN_DEPENDS= ${JAVAJARDIR}/commons-logging.jar:java/jakarta-commons-logging OPTIONS_DEFINE= DOCS USES= dos2unix zip -DOS2UNIX_FILES= c/src/Makefile.freebsd.txt +DOS2UNIX_GLOB= build.xml Makefile.freebsd.txt *.c *.java USE_JAVA= yes JAVA_VERSION= 1.6+ USE_ANT= yes ALL_TARGET= clean makeDLL dist -PLIST_SUB= JAVA_HOME=${JAVA_HOME:S/${PREFIX}\///} -PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar \ - %%JAVA_HOME%%/jre/lib/${MACHINE_ARCH}/libTerminal.so +PLIST_FILES= ${JAVAJARDIR}/${PORTNAME}.jar \ + ${JAVA_HOME}/jre/lib/${MACHINE_ARCH}/libTerminal.so PORTDOCS= * -.include +DOCS_ALL_TARGET= javadoc -.if ${PORT_OPTIONS:MDOCS} -ALL_TARGET+= javadoc -.endif - do-install: @${ECHO_MSG} -n ">> Installing JAR file as ${JAVAJARDIR}/${PORTNAME}.jar..." @${INSTALL_DATA} ${WRKSRC}/java/dist/lib/${PORTNAME}.jar \ ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar @${ECHO_MSG} " [DONE]" @${ECHO_MSG} -n ">> Installing JNI library as ${JAVA_HOME}/jre/lib/${MACHINE_ARCH}/libTerminal.so..." -@${MKDIR} ${STAGEDIR}${JAVA_HOME}/jre/lib/${MACHINE_ARCH} @${INSTALL_PROGRAM} ${WRKSRC}/c/lib/libTerminal.so \ ${STAGEDIR}${JAVA_HOME}/jre/lib/${MACHINE_ARCH}/libTerminal.so @${ECHO_MSG} " [DONE]" -.if ${PORT_OPTIONS:MDOCS} + +do-install-DOCS-on: @${ECHO_MSG} -n ">> Installing documentation..." @${MKDIR} ${STAGEDIR}${DOCSDIR} @cd ${WRKSRC}/docs && ${FIND} * \ | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${DOCSDIR} > /dev/null 2>&1 @${ECHO_MSG} " [DONE]" -.endif .include Index: head/devel/charva/files/patch-build.xml =================================================================== --- head/devel/charva/files/patch-build.xml (revision 417165) +++ head/devel/charva/files/patch-build.xml (revision 417166) @@ -1,26 +1,26 @@ ---- build.xml.orig Sun Sep 10 22:10:16 2006 -+++ build.xml Tue Dec 12 08:37:44 2006 +--- build.xml.orig 2016-06-20 12:40:44 UTC ++++ build.xml @@ -90,6 +90,7 @@ - - - -+ - - - + + + ++ + + + @@ -189,14 +190,8 @@ - description="Compile the JNI shared library"> - - -- -- - Compiling the shared library using "Makefile.${os.type}.txt" -- + description="Compile the JNI shared library"> + + +- +- + Compiling the shared library using "Makefile.${os.type}.txt" +- Index: head/devel/charva/files/patch-c_src_Makefile.freebsd.txt =================================================================== --- head/devel/charva/files/patch-c_src_Makefile.freebsd.txt (revision 417165) +++ head/devel/charva/files/patch-c_src_Makefile.freebsd.txt (revision 417166) @@ -1,10 +1,10 @@ ---- ./c/src/Makefile.freebsd.txt.orig 2013-10-30 08:21:28.829906040 +0000 -+++ ./c/src/Makefile.freebsd.txt 2013-10-30 08:21:37.384905061 +0000 -@@ -6,7 +6,6 @@ +--- c/src/Makefile.freebsd.txt.orig 2016-06-20 12:40:44 UTC ++++ c/src/Makefile.freebsd.txt +@@ -6,7 +6,6 @@ OS = freebsd SHARED_OBJECT_EXT = so TARGET = libTerminal.${SHARED_OBJECT_EXT} -CC = gcc CFLAGS = -fpic -shared # The file "jni.h" is in ${JAVA_HOME}/include Index: head/devel/charva/files/patch-c_src_Toolkit.c =================================================================== --- head/devel/charva/files/patch-c_src_Toolkit.c (revision 417165) +++ head/devel/charva/files/patch-c_src_Toolkit.c (revision 417166) @@ -1,18 +1,18 @@ ---- c/src/Toolkit.c.orig Wed Dec 13 12:29:03 2006 -+++ c/src/Toolkit.c Wed Dec 13 12:35:30 2006 -@@ -372,6 +372,7 @@ - if (colors_started) - attr = COLOR_PAIR(colorpair_); - -+ attron(attr); - // If the top of the box is outside the clipping rectangle, don't bother - // to draw the top. - if (top_ >= top && top_ <= bottom) { -@@ -414,6 +415,7 @@ - my_addch_with_clip(ACS_VLINE); // right vertical line - } - } -+ attroff(attr); - } - - JNIEXPORT void JNICALL Java_charva_awt_Toolkit_blankBoxNative +--- c/src/Toolkit.c.orig 2016-06-20 12:40:44 UTC ++++ c/src/Toolkit.c +@@ -372,6 +372,7 @@ JNIEXPORT void JNICALL Java_charva_awt_T + if (colors_started) + attr = COLOR_PAIR(colorpair_); + ++ attron(attr); + // If the top of the box is outside the clipping rectangle, don't bother + // to draw the top. + if (top_ >= top && top_ <= bottom) { +@@ -414,6 +415,7 @@ JNIEXPORT void JNICALL Java_charva_awt_T + my_addch_with_clip(ACS_VLINE); // right vertical line + } + } ++ attroff(attr); + } + + JNIEXPORT void JNICALL Java_charva_awt_Toolkit_blankBoxNative Index: head/devel/charva/files/patch-java_src_charva_awt_CardLayout.java =================================================================== --- head/devel/charva/files/patch-java_src_charva_awt_CardLayout.java (revision 417165) +++ head/devel/charva/files/patch-java_src_charva_awt_CardLayout.java (revision 417166) @@ -1,118 +1,118 @@ ---- java/src/charva/awt/CardLayout.java.orig Mon Jan 29 09:39:30 2007 -+++ java/src/charva/awt/CardLayout.java Mon Jan 29 09:39:30 2007 +--- java/src/charva/awt/CardLayout.java.orig 2016-06-20 12:40:44 UTC ++++ java/src/charva/awt/CardLayout.java @@ -0,0 +1,115 @@ +package charva.awt; + +import java.util.HashMap; + +/** + * Emulates @{java.awt.CardLayout}. + * @author lapo@lapo.it + */ +public class CardLayout implements LayoutManager2 { + + protected HashMap names = new HashMap(); + protected int current = -1; + protected int max = 0; + + public void addLayoutComponent(Component component, Object constraints) { + if (!(constraints instanceof String)) + throw new IllegalArgumentException("cannot add to layout: constraint must be a string"); + String name = (String) constraints; + if ((max == 0) && (component.isVisible())) + current = 0; + if (max > 0) + component.setVisible(false); // initially only the first card may be visible + if (name != null) + names.put(name, Integer.valueOf(max)); + ++max; + } + + public void invalidateLayout(Container target) { + // this layout manager caches nothing + } + + public Dimension minimumSize(Container container) { + Dimension min = new Dimension(0, 0); + for (int i = 0, j = container.getComponentCount(); i < j; ++i) { + Dimension t = container.getComponent(i).minimumSize(); + if (t.width > min.width) + min.width = t.width; + if (t.height > min.height) + min.height = t.height; + } + Insets insets = container.getInsets(); + min.width += insets.left + insets.right; + min.height += insets.top + insets.bottom; + return min; + } + + public void doLayout(Container container) { + Dimension size = container.getSize(); + Insets insets = container.getInsets(); + Point cardOrigin = new Point(insets.left, insets.top); + Dimension cardSize = new Dimension( + size.width - (insets.left + insets.right), + size.height - (insets.top + insets.bottom)); + for (int i = 0, j = container.getComponentCount(); i < j; ++i) { + Component c = container.getComponent(i); + c.setBounds(cardOrigin, cardSize); + if (c instanceof Container) + ((Container) c).doLayout(); + } + } + + /** + * Flips to the component with the given insertion index. + * If no such component exists, then nothing happens. + * @param container the parent container in which to do the layout + * @param index the component index + * @see charva.awt.CardLayout#addLayoutComponent(java.awt.Component, java.lang.Object) + */ + public void show(Container container, int index) { + if ((index < 0) || (index >= max) || (index == current)) + return; + for (int i = 0, j = container.getComponentCount(); i < j; ++i) { + Component c = container.getComponent(i); + if (c.isVisible()) + c.setVisible(false); + } + current = index; + container.getComponent(index).setVisible(true); + container.getComponent(index).requestFocus(); + container.validate(); + } + + /** + * Flips to the component that was added to this layout with the + * specified name, using addLayoutComponent. + * If no such component exists, then nothing happens. + * @param container the parent container in which to do the layout + * @param name the component name + * @see charva.awt.CardLayout#addLayoutComponent(java.awt.Component, java.lang.Object) + */ + public void show(Container container, String name) { + Integer val = (Integer) names.get(name); + if (val != null) + show(container, val.intValue()); + } + + /** + * Flips to the first card of the container. + * @param container the parent container in which to do the layout + * @see charva.awt.CardLayout#last + */ + public void first(Container container) { + show(container, 0); + } + + /** + * Flips to the last card of the container. + * @param container the parent container in which to do the layout + * @see charva.awt.CardLayout#first + */ + public void last(Container container) { + show(container, max - 1); + } + +} Index: head/devel/charva/files/patch-java_src_charva_awt_Component.java =================================================================== --- head/devel/charva/files/patch-java_src_charva_awt_Component.java (revision 417165) +++ head/devel/charva/files/patch-java_src_charva_awt_Component.java (revision 417166) @@ -1,29 +1,29 @@ ---- java/src/charva/awt/Component.java.orig Mon Aug 14 18:03:14 2006 -+++ java/src/charva/awt/Component.java Mon Jan 29 09:39:30 2007 -@@ -118,6 +118,17 @@ public abstract class Component { - } - - /** -+ * Determines whether this component will be displayed on the screen -+ * if it's displayable. -+ * @return true if the component and all of its ancestors -+ * are visible, false otherwise -+ */ -+ public boolean isRecursivelyVisible() { -+ Container parent = getParent(); -+ return _visible && (parent == null || parent.isRecursivelyVisible()); -+ } -+ -+ /** - * To be implemented by concrete subclasses. - */ - public abstract void draw(); -@@ -449,7 +460,7 @@ public abstract class Component { - * traversal. - */ - public boolean isFocusTraversable() { -- return (_enabled && _visible); -+ return (_enabled && isRecursivelyVisible()); - } - - /** +--- java/src/charva/awt/Component.java.orig 2016-06-20 12:40:44 UTC ++++ java/src/charva/awt/Component.java +@@ -118,6 +118,17 @@ public abstract class Component { + } + + /** ++ * Determines whether this component will be displayed on the screen ++ * if it's displayable. ++ * @return true if the component and all of its ancestors ++ * are visible, false otherwise ++ */ ++ public boolean isRecursivelyVisible() { ++ Container parent = getParent(); ++ return _visible && (parent == null || parent.isRecursivelyVisible()); ++ } ++ ++ /** + * To be implemented by concrete subclasses. + */ + public abstract void draw(); +@@ -449,7 +460,7 @@ public abstract class Component { + * traversal. + */ + public boolean isFocusTraversable() { +- return (_enabled && _visible); ++ return (_enabled && isRecursivelyVisible()); + } + + /** Index: head/devel/charva/files/patch-java_src_charva_awt_Container.java =================================================================== --- head/devel/charva/files/patch-java_src_charva_awt_Container.java (revision 417165) +++ head/devel/charva/files/patch-java_src_charva_awt_Container.java (revision 417166) @@ -1,100 +1,100 @@ ---- java/src/charva/awt/Container.java.orig Mon Aug 7 12:07:52 2006 -+++ java/src/charva/awt/Container.java Mon Jan 29 09:39:30 2007 -@@ -89,6 +89,23 @@ public abstract class Container - invalidate(); - } - -+ public void setBounds(int top_, int left_, int bottom_, int right_) { -+ super.setBounds(top_, left_, bottom_, right_); -+ setSize(right_ - left_ + 1, bottom_ - top_ + 1); -+ } -+ -+ public void setBounds(Point topleft_, Dimension size_) { -+ super.setBounds(topleft_, size_); -+ setSize(size_); -+ } -+ -+ public void setBounds(Rectangle bounds) { -+ super.setBounds(bounds); -+ setSize( -+ bounds.getRight() - bounds.getLeft() + 1, -+ bounds.getBottom() - bounds.getTop() + 1); -+ } -+ - public Dimension minimumSize() { - if (_layoutMgr == null) - return _size; -@@ -105,13 +122,30 @@ public abstract class Container - return (Component) _components.elementAt(n); - } - -+ protected Component getComponentAt(int x, int y, boolean checkVisibility) { -+ Enumeration e = _components.elements(); -+ while (e.hasMoreElements()) { -+ Component c = (Component) e.nextElement(); -+ if ((!checkVisibility || c.isVisible()) && c.contains(x, y)) { -+ if (c instanceof Container) { -+ // Calculate the coordinates of the point relative -+ // to the origin of the container -+ Point origin = c.getLocation(); -+ return ((Container) c).getComponentAt(x - origin.x, y - origin.y, checkVisibility); -+ } else -+ return c; -+ } -+ } -+ return null; -+ } -+ - /** - * Returns the component that contains the specified point, or null - * if no component contains the point. The x and y coordinates of - * the point are relative to the origin of this container. - */ - public Component getComponentAt(Point p) { -- return getComponentAt(p.x, p.y); -+ return getComponentAt(p.x, p.y, false); - } - - /** -@@ -120,20 +154,27 @@ public abstract class Container - * the point are relative to the origin of this container. - */ - public Component getComponentAt(int x, int y) { -- Enumeration e = _components.elements(); -- while (e.hasMoreElements()) { -- Component c = (Component) e.nextElement(); -- if (c.contains(x, y)) { -- if (c instanceof Container) { -- // Calculate the coordinates of the point relative -- // to the origin of the container -- Point origin = c.getLocation(); -- return ((Container) c).getComponentAt(x - origin.x, y - origin.y); -- } else -- return c; -- } -- } -- return null; -+ return getComponentAt(x, y, false); -+ } -+ -+ /** -+ * Returns the visible component that contains the specified point, -+ * or null if no visible component contains the point. The x and y -+ * coordinates of the point are relative to the origin of this container. -+ */ -+ public final Component findComponentAt(Point p) { -+ return findComponentAt(p.x, p.y); -+ } -+ -+ /** -+ * Returns the visible component that contains the specified point, -+ * or null if no visible component contains the point. The x and y -+ * coordinates of the point are relative to the origin of this container. -+ */ -+ public final Component findComponentAt(int x, int y) { -+ if (!isRecursivelyVisible()) -+ return null; -+ return(getComponentAt(x, y, true)); - } - - /** +--- java/src/charva/awt/Container.java.orig 2016-06-20 12:40:44 UTC ++++ java/src/charva/awt/Container.java +@@ -89,6 +89,23 @@ public abstract class Container + invalidate(); + } + ++ public void setBounds(int top_, int left_, int bottom_, int right_) { ++ super.setBounds(top_, left_, bottom_, right_); ++ setSize(right_ - left_ + 1, bottom_ - top_ + 1); ++ } ++ ++ public void setBounds(Point topleft_, Dimension size_) { ++ super.setBounds(topleft_, size_); ++ setSize(size_); ++ } ++ ++ public void setBounds(Rectangle bounds) { ++ super.setBounds(bounds); ++ setSize( ++ bounds.getRight() - bounds.getLeft() + 1, ++ bounds.getBottom() - bounds.getTop() + 1); ++ } ++ + public Dimension minimumSize() { + if (_layoutMgr == null) + return _size; +@@ -105,13 +122,30 @@ public abstract class Container + return (Component) _components.elementAt(n); + } + ++ protected Component getComponentAt(int x, int y, boolean checkVisibility) { ++ Enumeration e = _components.elements(); ++ while (e.hasMoreElements()) { ++ Component c = (Component) e.nextElement(); ++ if ((!checkVisibility || c.isVisible()) && c.contains(x, y)) { ++ if (c instanceof Container) { ++ // Calculate the coordinates of the point relative ++ // to the origin of the container ++ Point origin = c.getLocation(); ++ return ((Container) c).getComponentAt(x - origin.x, y - origin.y, checkVisibility); ++ } else ++ return c; ++ } ++ } ++ return null; ++ } ++ + /** + * Returns the component that contains the specified point, or null + * if no component contains the point. The x and y coordinates of + * the point are relative to the origin of this container. + */ + public Component getComponentAt(Point p) { +- return getComponentAt(p.x, p.y); ++ return getComponentAt(p.x, p.y, false); + } + + /** +@@ -120,20 +154,27 @@ public abstract class Container + * the point are relative to the origin of this container. + */ + public Component getComponentAt(int x, int y) { +- Enumeration e = _components.elements(); +- while (e.hasMoreElements()) { +- Component c = (Component) e.nextElement(); +- if (c.contains(x, y)) { +- if (c instanceof Container) { +- // Calculate the coordinates of the point relative +- // to the origin of the container +- Point origin = c.getLocation(); +- return ((Container) c).getComponentAt(x - origin.x, y - origin.y); +- } else +- return c; +- } +- } +- return null; ++ return getComponentAt(x, y, false); ++ } ++ ++ /** ++ * Returns the visible component that contains the specified point, ++ * or null if no visible component contains the point. The x and y ++ * coordinates of the point are relative to the origin of this container. ++ */ ++ public final Component findComponentAt(Point p) { ++ return findComponentAt(p.x, p.y); ++ } ++ ++ /** ++ * Returns the visible component that contains the specified point, ++ * or null if no visible component contains the point. The x and y ++ * coordinates of the point are relative to the origin of this container. ++ */ ++ public final Component findComponentAt(int x, int y) { ++ if (!isRecursivelyVisible()) ++ return null; ++ return(getComponentAt(x, y, true)); + } + + /** Index: head/devel/charva/files/patch-java_src_charva_awt_Toolkit.java =================================================================== --- head/devel/charva/files/patch-java_src_charva_awt_Toolkit.java (revision 417165) +++ head/devel/charva/files/patch-java_src_charva_awt_Toolkit.java (revision 417166) @@ -1,113 +1,113 @@ ---- java/src/charva/awt/Toolkit.java.orig Mon Aug 14 20:59:42 2006 -+++ java/src/charva/awt/Toolkit.java Mon Jan 29 09:39:30 2007 -@@ -157,13 +157,9 @@ public class Toolkit { - * key as defined in the "VK_*" values. - */ - public void fireKeystroke(int key_, Component source_) { -- int id; -- if (Toolkit.isActionKey(key_)) -- id = AWTEvent.KEY_TYPED; -- else -- id = AWTEvent.KEY_PRESSED; -- -- _evtQueue.postEvent(new KeyEvent(key_, id, source_)); -+ _evtQueue.postEvent(new KeyEvent(key_, AWTEvent.KEY_PRESSED, source_)); -+ if (!Toolkit.isActionKey(key_)) -+ _evtQueue.postEvent(new KeyEvent(key_, AWTEvent.KEY_TYPED, source_)); - } - - public FocusEvent getLastFocusEvent() { -@@ -225,7 +221,7 @@ public class Toolkit { - _lastMousePressTime = System.currentTimeMillis(); - - Component component = -- top_window.getComponentAt(x - origin.x, y - origin.y); -+ top_window.findComponentAt(x - origin.x, y - origin.y); - - if (component != null) { - _evtQueue.postEvent(new MouseEvent(component, modifiers, x, y, 0, button)); -@@ -796,43 +792,47 @@ public class Toolkit { - //public boolean isActionKey() { return (_key >= 256); } - public static boolean isActionKey( int _key ) - { -- boolean value = false; -- if ( _key == charva.awt.event.KeyEvent.VK_ESCAPE ) value=true; -- if ( _key == charva.awt.event.KeyEvent.VK_DOWN ) value=true; -- if ( _key == charva.awt.event.KeyEvent.VK_UP ) value=true; -- if ( _key == charva.awt.event.KeyEvent.VK_LEFT ) value=true; -- if ( _key == charva.awt.event.KeyEvent.VK_RIGHT ) value=true; -- if ( _key == charva.awt.event.KeyEvent.VK_HOME ) value=true; -- if ( _key == charva.awt.event.KeyEvent.VK_BACK_SPACE ) value=true; -- if ( _key == charva.awt.event.KeyEvent.VK_F1 ) value=true; -- if ( _key == charva.awt.event.KeyEvent.VK_F2 ) value=true; -- if ( _key == charva.awt.event.KeyEvent.VK_F3 ) value=true; -- if ( _key == charva.awt.event.KeyEvent.VK_F4 ) value=true; -- if ( _key == charva.awt.event.KeyEvent.VK_F5 ) value=true; -- if ( _key == charva.awt.event.KeyEvent.VK_F6 ) value=true; -- if ( _key == charva.awt.event.KeyEvent.VK_F7 ) value=true; -- if ( _key == charva.awt.event.KeyEvent.VK_F8 ) value=true; -- if ( _key == charva.awt.event.KeyEvent.VK_F9 ) value=true; -- if ( _key == charva.awt.event.KeyEvent.VK_F10 ) value=true; -- if ( _key == charva.awt.event.KeyEvent.VK_F11 ) value=true; -- if ( _key == charva.awt.event.KeyEvent.VK_F12 ) value=true; -- if ( _key == charva.awt.event.KeyEvent.VK_F13 ) value=true; -- if ( _key == charva.awt.event.KeyEvent.VK_F14 ) value=true; -- if ( _key == charva.awt.event.KeyEvent.VK_F15 ) value=true; -- if ( _key == charva.awt.event.KeyEvent.VK_F16 ) value=true; -- if ( _key == charva.awt.event.KeyEvent.VK_F17 ) value=true; -- if ( _key == charva.awt.event.KeyEvent.VK_F18 ) value=true; -- if ( _key == charva.awt.event.KeyEvent.VK_F19 ) value=true; -- if ( _key == charva.awt.event.KeyEvent.VK_F20 ) value=true; -- if ( _key == charva.awt.event.KeyEvent.VK_DELETE ) value=true; -- if ( _key == charva.awt.event.KeyEvent.VK_INSERT ) value=true; -- if ( _key == charva.awt.event.KeyEvent.VK_PAGE_DOWN ) value=true; -- if ( _key == charva.awt.event.KeyEvent.VK_PAGE_UP ) value=true; -- if ( _key == charva.awt.event.KeyEvent.VK_ENTER ) value=true; -- if ( _key == charva.awt.event.KeyEvent.VK_BACK_TAB ) value=true; -- if ( _key == charva.awt.event.KeyEvent.VK_END ) value=true; -- -- return (value); -+ switch (_key) { -+ case charva.awt.event.KeyEvent.VK_ESCAPE: -+ case charva.awt.event.KeyEvent.VK_DOWN: -+ case charva.awt.event.KeyEvent.VK_UP: -+ case charva.awt.event.KeyEvent.VK_LEFT: -+ case charva.awt.event.KeyEvent.VK_RIGHT: -+ case charva.awt.event.KeyEvent.VK_HOME: -+ case charva.awt.event.KeyEvent.VK_BACK_SPACE: -+ case charva.awt.event.KeyEvent.VK_F1: -+ case charva.awt.event.KeyEvent.VK_F2: -+ case charva.awt.event.KeyEvent.VK_F3: -+ case charva.awt.event.KeyEvent.VK_F4: -+ case charva.awt.event.KeyEvent.VK_F5: -+ case charva.awt.event.KeyEvent.VK_F6: -+ case charva.awt.event.KeyEvent.VK_F7: -+ case charva.awt.event.KeyEvent.VK_F8: -+ case charva.awt.event.KeyEvent.VK_F9: -+ case charva.awt.event.KeyEvent.VK_F10: -+ case charva.awt.event.KeyEvent.VK_F11: -+ case charva.awt.event.KeyEvent.VK_F12: -+ case charva.awt.event.KeyEvent.VK_F13: -+ case charva.awt.event.KeyEvent.VK_F14: -+ case charva.awt.event.KeyEvent.VK_F15: -+ case charva.awt.event.KeyEvent.VK_F16: -+ case charva.awt.event.KeyEvent.VK_F17: -+ case charva.awt.event.KeyEvent.VK_F18: -+ case charva.awt.event.KeyEvent.VK_F19: -+ case charva.awt.event.KeyEvent.VK_F20: -+ case charva.awt.event.KeyEvent.VK_DELETE: -+ case charva.awt.event.KeyEvent.VK_INSERT: -+ case charva.awt.event.KeyEvent.VK_PAGE_DOWN: -+ case charva.awt.event.KeyEvent.VK_PAGE_UP: -+ case charva.awt.event.KeyEvent.VK_ENTER: -+ case charva.awt.event.KeyEvent.VK_BACK_TAB: -+ case charva.awt.event.KeyEvent.VK_END: -+ return true; -+ default: -+ if ( _key < 32 ) -+ return true; -+ return false; -+ } - } - - //==================================================================== +--- java/src/charva/awt/Toolkit.java.orig 2016-06-20 12:40:44 UTC ++++ java/src/charva/awt/Toolkit.java +@@ -157,13 +157,9 @@ public class Toolkit { + * key as defined in the "VK_*" values. + */ + public void fireKeystroke(int key_, Component source_) { +- int id; +- if (Toolkit.isActionKey(key_)) +- id = AWTEvent.KEY_TYPED; +- else +- id = AWTEvent.KEY_PRESSED; +- +- _evtQueue.postEvent(new KeyEvent(key_, id, source_)); ++ _evtQueue.postEvent(new KeyEvent(key_, AWTEvent.KEY_PRESSED, source_)); ++ if (!Toolkit.isActionKey(key_)) ++ _evtQueue.postEvent(new KeyEvent(key_, AWTEvent.KEY_TYPED, source_)); + } + + public FocusEvent getLastFocusEvent() { +@@ -225,7 +221,7 @@ public class Toolkit { + _lastMousePressTime = System.currentTimeMillis(); + + Component component = +- top_window.getComponentAt(x - origin.x, y - origin.y); ++ top_window.findComponentAt(x - origin.x, y - origin.y); + + if (component != null) { + _evtQueue.postEvent(new MouseEvent(component, modifiers, x, y, 0, button)); +@@ -796,43 +792,47 @@ public class Toolkit { + //public boolean isActionKey() { return (_key >= 256); } + public static boolean isActionKey( int _key ) + { +- boolean value = false; +- if ( _key == charva.awt.event.KeyEvent.VK_ESCAPE ) value=true; +- if ( _key == charva.awt.event.KeyEvent.VK_DOWN ) value=true; +- if ( _key == charva.awt.event.KeyEvent.VK_UP ) value=true; +- if ( _key == charva.awt.event.KeyEvent.VK_LEFT ) value=true; +- if ( _key == charva.awt.event.KeyEvent.VK_RIGHT ) value=true; +- if ( _key == charva.awt.event.KeyEvent.VK_HOME ) value=true; +- if ( _key == charva.awt.event.KeyEvent.VK_BACK_SPACE ) value=true; +- if ( _key == charva.awt.event.KeyEvent.VK_F1 ) value=true; +- if ( _key == charva.awt.event.KeyEvent.VK_F2 ) value=true; +- if ( _key == charva.awt.event.KeyEvent.VK_F3 ) value=true; +- if ( _key == charva.awt.event.KeyEvent.VK_F4 ) value=true; +- if ( _key == charva.awt.event.KeyEvent.VK_F5 ) value=true; +- if ( _key == charva.awt.event.KeyEvent.VK_F6 ) value=true; +- if ( _key == charva.awt.event.KeyEvent.VK_F7 ) value=true; +- if ( _key == charva.awt.event.KeyEvent.VK_F8 ) value=true; +- if ( _key == charva.awt.event.KeyEvent.VK_F9 ) value=true; +- if ( _key == charva.awt.event.KeyEvent.VK_F10 ) value=true; +- if ( _key == charva.awt.event.KeyEvent.VK_F11 ) value=true; +- if ( _key == charva.awt.event.KeyEvent.VK_F12 ) value=true; +- if ( _key == charva.awt.event.KeyEvent.VK_F13 ) value=true; +- if ( _key == charva.awt.event.KeyEvent.VK_F14 ) value=true; +- if ( _key == charva.awt.event.KeyEvent.VK_F15 ) value=true; +- if ( _key == charva.awt.event.KeyEvent.VK_F16 ) value=true; +- if ( _key == charva.awt.event.KeyEvent.VK_F17 ) value=true; +- if ( _key == charva.awt.event.KeyEvent.VK_F18 ) value=true; +- if ( _key == charva.awt.event.KeyEvent.VK_F19 ) value=true; +- if ( _key == charva.awt.event.KeyEvent.VK_F20 ) value=true; +- if ( _key == charva.awt.event.KeyEvent.VK_DELETE ) value=true; +- if ( _key == charva.awt.event.KeyEvent.VK_INSERT ) value=true; +- if ( _key == charva.awt.event.KeyEvent.VK_PAGE_DOWN ) value=true; +- if ( _key == charva.awt.event.KeyEvent.VK_PAGE_UP ) value=true; +- if ( _key == charva.awt.event.KeyEvent.VK_ENTER ) value=true; +- if ( _key == charva.awt.event.KeyEvent.VK_BACK_TAB ) value=true; +- if ( _key == charva.awt.event.KeyEvent.VK_END ) value=true; +- +- return (value); ++ switch (_key) { ++ case charva.awt.event.KeyEvent.VK_ESCAPE: ++ case charva.awt.event.KeyEvent.VK_DOWN: ++ case charva.awt.event.KeyEvent.VK_UP: ++ case charva.awt.event.KeyEvent.VK_LEFT: ++ case charva.awt.event.KeyEvent.VK_RIGHT: ++ case charva.awt.event.KeyEvent.VK_HOME: ++ case charva.awt.event.KeyEvent.VK_BACK_SPACE: ++ case charva.awt.event.KeyEvent.VK_F1: ++ case charva.awt.event.KeyEvent.VK_F2: ++ case charva.awt.event.KeyEvent.VK_F3: ++ case charva.awt.event.KeyEvent.VK_F4: ++ case charva.awt.event.KeyEvent.VK_F5: ++ case charva.awt.event.KeyEvent.VK_F6: ++ case charva.awt.event.KeyEvent.VK_F7: ++ case charva.awt.event.KeyEvent.VK_F8: ++ case charva.awt.event.KeyEvent.VK_F9: ++ case charva.awt.event.KeyEvent.VK_F10: ++ case charva.awt.event.KeyEvent.VK_F11: ++ case charva.awt.event.KeyEvent.VK_F12: ++ case charva.awt.event.KeyEvent.VK_F13: ++ case charva.awt.event.KeyEvent.VK_F14: ++ case charva.awt.event.KeyEvent.VK_F15: ++ case charva.awt.event.KeyEvent.VK_F16: ++ case charva.awt.event.KeyEvent.VK_F17: ++ case charva.awt.event.KeyEvent.VK_F18: ++ case charva.awt.event.KeyEvent.VK_F19: ++ case charva.awt.event.KeyEvent.VK_F20: ++ case charva.awt.event.KeyEvent.VK_DELETE: ++ case charva.awt.event.KeyEvent.VK_INSERT: ++ case charva.awt.event.KeyEvent.VK_PAGE_DOWN: ++ case charva.awt.event.KeyEvent.VK_PAGE_UP: ++ case charva.awt.event.KeyEvent.VK_ENTER: ++ case charva.awt.event.KeyEvent.VK_BACK_TAB: ++ case charva.awt.event.KeyEvent.VK_END: ++ return true; ++ default: ++ if ( _key < 32 ) ++ return true; ++ return false; ++ } + } + + //==================================================================== Index: head/devel/charva/files/patch-java_src_charva_awt_VerticalFlowLayout.java =================================================================== --- head/devel/charva/files/patch-java_src_charva_awt_VerticalFlowLayout.java (revision 417165) +++ head/devel/charva/files/patch-java_src_charva_awt_VerticalFlowLayout.java (revision 417166) @@ -1,232 +1,232 @@ ---- java/src/charva/awt/VerticalFlowLayout.java.orig Mon Jan 29 09:39:30 2007 -+++ java/src/charva/awt/VerticalFlowLayout.java Mon Jan 29 09:39:30 2007 +--- java/src/charva/awt/VerticalFlowLayout.java.orig 2016-06-20 12:40:44 UTC ++++ java/src/charva/awt/VerticalFlowLayout.java @@ -0,0 +1,229 @@ -+/* class FlowLayout -+ * -+ * Copyright (C) 2001 R M Pitman -+ * Copyright (C) 2007 Lapo Luchini -+ * -+ * This library is free software; you can redistribute it and/or -+ * modify it under the terms of the GNU Lesser General Public -+ * License as published by the Free Software Foundation; either -+ * version 2.1 of the License, or (at your option) any later version. -+ * -+ * This library is distributed in the hope that it will be useful, -+ * but WITHOUT ANY WARRANTY; without even the implied warranty of -+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -+ * Lesser General Public License for more details. -+ * -+ * You should have received a copy of the GNU Lesser General Public -+ * License along with this library; if not, write to the Free Software -+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -+ */ -+ -+package charva.awt; -+ -+import java.util.Enumeration; -+import java.util.Vector; -+ -+/** -+ * A concrete implementation of LayoutManager that lays out its -+ * components top-to-bottom. -+ */ -+public class VerticalFlowLayout -+ implements LayoutManager { -+ /** -+ * Default constructor. Sets alignment to MIDDLE, hgap to 1, -+ * and vgap to 0. -+ */ -+ public VerticalFlowLayout() { -+ this(MIDDLE, 1, 0); -+ } -+ -+ /** -+ * Use this constructor when you want to set the alignment and the -+ * horizontal and vertical gaps. -+ */ -+ public VerticalFlowLayout(int align_, int hgap_, int vgap_) { -+ _align = align_; -+ _hgap = hgap_; -+ _vgap = vgap_; -+ } -+ -+ /** -+ * Sets the alignment for this layout. Allowable values are -+ * VerticalFlowLayout.TOP, VerticalFlowLayout.MIDDLE and -+ * VerticalFlowLayout.BOTTOM. -+ */ -+ public void setAlignment(int align_) { -+ _align = align_; -+ } -+ -+ /** -+ * Gets the alignment for this layout. -+ */ -+ public int getAlignment() { -+ return _align; -+ } -+ -+ /** -+ * Calculate the minimum-size rectangle that can enclose all the -+ * components in the given container. -+ */ -+ public Dimension minimumSize(Container container_) { -+ -+ int width = 0; -+ int height = 0; -+ -+ Component[] components = container_.getComponents(); -+ for (int i = 0; i < components.length; i++) { -+ Dimension d = components[i].minimumSize(); -+ -+ /* Make allowance for the gap between this component and the -+ * previous component. -+ */ -+ if (i != 0) -+ height += _vgap; -+ -+ height += d.height; -+ if (d.width > width) -+ width = d.width; -+ } -+ -+ /* Take into account the border frame (if any). -+ */ -+ Insets insets = container_.getInsets(); -+ height += insets.top + insets.bottom; -+ width += insets.left + insets.right; -+ -+ return new Dimension(width, height); -+ } -+ -+ /** -+ * Lay out the components according to the specified alignment, hgap -+ * and vgap. -+ * This is called when the size of the container has already been -+ * calculated. -+ * It lays out the components in a column, one at a time, until it -+ * determines that there is not enough space left in the column. -+ * Then it moves to the next row. If there is not enough horizontal -+ * space in the container to lay out all of the components, it -+ * removes the remaining components from the container; they don't -+ * appear at all. -+ */ -+ public void doLayout(Container container_) { -+ -+ Insets insets = container_.getInsets(); -+ int availableHeight = container_.getSize().height - -+ insets.top - insets.bottom; -+ int heightLeft = availableHeight; -+ int widthLeft = container_.getSize().width - -+ insets.left - insets.right; -+ -+ int hoffset = insets.left; -+ -+ Component[] components = container_.getComponents(); -+ Vector localvector = new Vector(); -+ for (int i = 0; i < components.length; i++) { -+ Component c = components[i]; -+ -+ /* Get the contained container to lay itself out at its -+ * preferred size, if it is not already laid out. -+ */ -+ if (c instanceof Container) { -+ Container cont = (Container) c; -+ if (cont.isValid() == false) { -+ cont.setSize(cont.minimumSize()); -+ cont.doLayout(); -+ } -+ } -+ -+ /* Determine the width required to lay out the current -+ * component (including the gap between this component and -+ * the previous component). -+ */ -+ int requiredHeight = c.getSize().height; -+ if (i != 0) -+ requiredHeight += _vgap; -+ -+ if (requiredHeight > heightLeft) { -+ int columnWidth = 0; -+ if (localvector.size() != 0) { -+ columnWidth = layoutColumn(container_, localvector, -+ widthLeft, heightLeft, hoffset); -+ localvector.removeAllElements(); -+ } -+ hoffset += columnWidth + _hgap; -+ heightLeft = availableHeight; -+ widthLeft -= columnWidth + _hgap; -+ } -+ heightLeft -= requiredHeight; -+ -+ // Build up a temporary list of components for this row. -+ localvector.add(c); -+ } -+ layoutColumn(container_, localvector, widthLeft, heightLeft, hoffset); -+ -+ } -+ -+ /** -+ * private function to layout a single column of components. -+ * -+ * @return The height of the laid-out column. -+ */ -+ private int layoutColumn(Container container_, Vector components_, -+ int widthleft_, int heightleft_, int hoffset_) { -+ -+ int voffset = 0; -+ int columnWidth = 0; -+ Insets insets = container_.getInsets(); -+ -+ switch (_align) { -+ case TOP: -+ voffset = insets.top; -+ break; -+ case MIDDLE: -+ voffset = insets.top + heightleft_ / 2; -+ break; -+ case BOTTOM: -+ voffset = insets.top + heightleft_; -+ break; -+ } -+ -+ Enumeration e = components_.elements(); -+ while (e.hasMoreElements()) { -+ Component c = (Component) e.nextElement(); -+ if (c.getSize().width > columnWidth) -+ columnWidth = c.getSize().width; -+ -+ if (columnWidth > widthleft_) { -+ container_.remove(c); // we have run out of space -+ continue; -+ } -+ -+ c.setLocation(hoffset_, voffset); -+ voffset += c.getSize().height + _vgap; -+ } -+ return columnWidth; -+ } -+ -+ //==================================================================== -+ // INSTANCE VARIABLES -+ -+ /** -+ * Alignment of components (TOP, BOTTOM or MIDDLE) -+ */ -+ private int _align = MIDDLE; -+ -+ /** -+ * Horizontal gap between components -+ */ -+ private int _hgap = 1; -+ -+ /** -+ * Vertical gap between components -+ */ -+ private int _vgap = 0; -+ -+ public static final int TOP = 1; -+ public static final int MIDDLE = 2; -+ public static final int BOTTOM = 3; -+ -+} ++/* class FlowLayout ++ * ++ * Copyright (C) 2001 R M Pitman ++ * Copyright (C) 2007 Lapo Luchini ++ * ++ * This library is free software; you can redistribute it and/or ++ * modify it under the terms of the GNU Lesser General Public ++ * License as published by the Free Software Foundation; either ++ * version 2.1 of the License, or (at your option) any later version. ++ * ++ * This library is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ * Lesser General Public License for more details. ++ * ++ * You should have received a copy of the GNU Lesser General Public ++ * License along with this library; if not, write to the Free Software ++ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ++ */ ++ ++package charva.awt; ++ ++import java.util.Enumeration; ++import java.util.Vector; ++ ++/** ++ * A concrete implementation of LayoutManager that lays out its ++ * components top-to-bottom. ++ */ ++public class VerticalFlowLayout ++ implements LayoutManager { ++ /** ++ * Default constructor. Sets alignment to MIDDLE, hgap to 1, ++ * and vgap to 0. ++ */ ++ public VerticalFlowLayout() { ++ this(MIDDLE, 1, 0); ++ } ++ ++ /** ++ * Use this constructor when you want to set the alignment and the ++ * horizontal and vertical gaps. ++ */ ++ public VerticalFlowLayout(int align_, int hgap_, int vgap_) { ++ _align = align_; ++ _hgap = hgap_; ++ _vgap = vgap_; ++ } ++ ++ /** ++ * Sets the alignment for this layout. Allowable values are ++ * VerticalFlowLayout.TOP, VerticalFlowLayout.MIDDLE and ++ * VerticalFlowLayout.BOTTOM. ++ */ ++ public void setAlignment(int align_) { ++ _align = align_; ++ } ++ ++ /** ++ * Gets the alignment for this layout. ++ */ ++ public int getAlignment() { ++ return _align; ++ } ++ ++ /** ++ * Calculate the minimum-size rectangle that can enclose all the ++ * components in the given container. ++ */ ++ public Dimension minimumSize(Container container_) { ++ ++ int width = 0; ++ int height = 0; ++ ++ Component[] components = container_.getComponents(); ++ for (int i = 0; i < components.length; i++) { ++ Dimension d = components[i].minimumSize(); ++ ++ /* Make allowance for the gap between this component and the ++ * previous component. ++ */ ++ if (i != 0) ++ height += _vgap; ++ ++ height += d.height; ++ if (d.width > width) ++ width = d.width; ++ } ++ ++ /* Take into account the border frame (if any). ++ */ ++ Insets insets = container_.getInsets(); ++ height += insets.top + insets.bottom; ++ width += insets.left + insets.right; ++ ++ return new Dimension(width, height); ++ } ++ ++ /** ++ * Lay out the components according to the specified alignment, hgap ++ * and vgap. ++ * This is called when the size of the container has already been ++ * calculated. ++ * It lays out the components in a column, one at a time, until it ++ * determines that there is not enough space left in the column. ++ * Then it moves to the next row. If there is not enough horizontal ++ * space in the container to lay out all of the components, it ++ * removes the remaining components from the container; they don't ++ * appear at all. ++ */ ++ public void doLayout(Container container_) { ++ ++ Insets insets = container_.getInsets(); ++ int availableHeight = container_.getSize().height - ++ insets.top - insets.bottom; ++ int heightLeft = availableHeight; ++ int widthLeft = container_.getSize().width - ++ insets.left - insets.right; ++ ++ int hoffset = insets.left; ++ ++ Component[] components = container_.getComponents(); ++ Vector localvector = new Vector(); ++ for (int i = 0; i < components.length; i++) { ++ Component c = components[i]; ++ ++ /* Get the contained container to lay itself out at its ++ * preferred size, if it is not already laid out. ++ */ ++ if (c instanceof Container) { ++ Container cont = (Container) c; ++ if (cont.isValid() == false) { ++ cont.setSize(cont.minimumSize()); ++ cont.doLayout(); ++ } ++ } ++ ++ /* Determine the width required to lay out the current ++ * component (including the gap between this component and ++ * the previous component). ++ */ ++ int requiredHeight = c.getSize().height; ++ if (i != 0) ++ requiredHeight += _vgap; ++ ++ if (requiredHeight > heightLeft) { ++ int columnWidth = 0; ++ if (localvector.size() != 0) { ++ columnWidth = layoutColumn(container_, localvector, ++ widthLeft, heightLeft, hoffset); ++ localvector.removeAllElements(); ++ } ++ hoffset += columnWidth + _hgap; ++ heightLeft = availableHeight; ++ widthLeft -= columnWidth + _hgap; ++ } ++ heightLeft -= requiredHeight; ++ ++ // Build up a temporary list of components for this row. ++ localvector.add(c); ++ } ++ layoutColumn(container_, localvector, widthLeft, heightLeft, hoffset); ++ ++ } ++ ++ /** ++ * private function to layout a single column of components. ++ * ++ * @return The height of the laid-out column. ++ */ ++ private int layoutColumn(Container container_, Vector components_, ++ int widthleft_, int heightleft_, int hoffset_) { ++ ++ int voffset = 0; ++ int columnWidth = 0; ++ Insets insets = container_.getInsets(); ++ ++ switch (_align) { ++ case TOP: ++ voffset = insets.top; ++ break; ++ case MIDDLE: ++ voffset = insets.top + heightleft_ / 2; ++ break; ++ case BOTTOM: ++ voffset = insets.top + heightleft_; ++ break; ++ } ++ ++ Enumeration e = components_.elements(); ++ while (e.hasMoreElements()) { ++ Component c = (Component) e.nextElement(); ++ if (c.getSize().width > columnWidth) ++ columnWidth = c.getSize().width; ++ ++ if (columnWidth > widthleft_) { ++ container_.remove(c); // we have run out of space ++ continue; ++ } ++ ++ c.setLocation(hoffset_, voffset); ++ voffset += c.getSize().height + _vgap; ++ } ++ return columnWidth; ++ } ++ ++ //==================================================================== ++ // INSTANCE VARIABLES ++ ++ /** ++ * Alignment of components (TOP, BOTTOM or MIDDLE) ++ */ ++ private int _align = MIDDLE; ++ ++ /** ++ * Horizontal gap between components ++ */ ++ private int _hgap = 1; ++ ++ /** ++ * Vertical gap between components ++ */ ++ private int _vgap = 0; ++ ++ public static final int TOP = 1; ++ public static final int MIDDLE = 2; ++ public static final int BOTTOM = 3; ++ ++} Index: head/devel/charva/files/patch-java_src_charva_awt_Window.java =================================================================== --- head/devel/charva/files/patch-java_src_charva_awt_Window.java (revision 417165) +++ head/devel/charva/files/patch-java_src_charva_awt_Window.java (revision 417166) @@ -1,56 +1,56 @@ ---- java/src/charva/awt/Window.java.orig Mon Aug 14 17:38:56 2006 -+++ java/src/charva/awt/Window.java Mon Jan 29 09:39:30 2007 -@@ -156,13 +156,21 @@ public class Window - */ - SyncQueue.getInstance().postEvent(new SyncEvent(this)); - -- if (_dispatchThreadRunning) -- run(); -- else { -- _dispatchThreadRunning = true; -- Thread dispatchThread = new Thread(this); -- dispatchThread.setName("event dispatcher"); -- dispatchThread.start(); -+ if (_dispatchThread != null) { -+ if (Thread.currentThread() == _dispatchThread) { -+ // we are in the EDT, we must manage events -+ run(); -+ } else { -+ // we are not the EDT, let's wait for him to ask us to close -+ synchronized (this) { -+ while (!_windowClosed) -+ try { wait(); } catch (InterruptedException e) { } -+ } -+ } -+ } else { -+ _dispatchThread = new Thread(this); -+ _dispatchThread.setName("event dispatcher"); -+ _dispatchThread.start(); - - /* If "charva.script.playback" is defined, we start up - * a thread for playing back the script. Keys from both the -@@ -270,7 +278,10 @@ public class Window - */ - if (we.getID() == AWTEvent.WINDOW_CLOSING) { - -- we.getWindow()._windowClosed = true; -+ synchronized (we.getWindow()) { -+ we.getWindow()._windowClosed = true; -+ we.getWindow().notify(); -+ } - - /* Remove this window from the list of those displayed, - * and blank out the screen area where the window was -@@ -407,10 +418,10 @@ public class Window - - private Window _owner; - protected Toolkit _term; -- private boolean _windowClosed = false; -+ private volatile boolean _windowClosed = false; - - private Vector _windowListeners = null; - -- private static boolean _dispatchThreadRunning = false; -+ private static Thread _dispatchThread = null; - - } +--- java/src/charva/awt/Window.java.orig 2016-06-20 12:40:44 UTC ++++ java/src/charva/awt/Window.java +@@ -156,13 +156,21 @@ public class Window + */ + SyncQueue.getInstance().postEvent(new SyncEvent(this)); + +- if (_dispatchThreadRunning) +- run(); +- else { +- _dispatchThreadRunning = true; +- Thread dispatchThread = new Thread(this); +- dispatchThread.setName("event dispatcher"); +- dispatchThread.start(); ++ if (_dispatchThread != null) { ++ if (Thread.currentThread() == _dispatchThread) { ++ // we are in the EDT, we must manage events ++ run(); ++ } else { ++ // we are not the EDT, let's wait for him to ask us to close ++ synchronized (this) { ++ while (!_windowClosed) ++ try { wait(); } catch (InterruptedException e) { } ++ } ++ } ++ } else { ++ _dispatchThread = new Thread(this); ++ _dispatchThread.setName("event dispatcher"); ++ _dispatchThread.start(); + + /* If "charva.script.playback" is defined, we start up + * a thread for playing back the script. Keys from both the +@@ -270,7 +278,10 @@ public class Window + */ + if (we.getID() == AWTEvent.WINDOW_CLOSING) { + +- we.getWindow()._windowClosed = true; ++ synchronized (we.getWindow()) { ++ we.getWindow()._windowClosed = true; ++ we.getWindow().notify(); ++ } + + /* Remove this window from the list of those displayed, + * and blank out the screen area where the window was +@@ -407,10 +418,10 @@ public class Window + + private Window _owner; + protected Toolkit _term; +- private boolean _windowClosed = false; ++ private volatile boolean _windowClosed = false; + + private Vector _windowListeners = null; + +- private static boolean _dispatchThreadRunning = false; ++ private static Thread _dispatchThread = null; + + } Index: head/devel/charva/files/patch-java_src_charva_awt_event_FocusAdapter.java =================================================================== --- head/devel/charva/files/patch-java_src_charva_awt_event_FocusAdapter.java (revision 417165) +++ head/devel/charva/files/patch-java_src_charva_awt_event_FocusAdapter.java (revision 417166) @@ -1,20 +1,20 @@ ---- java/src/charva/awt/event/FocusAdapter.java.orig Mon Jan 29 09:39:30 2007 -+++ java/src/charva/awt/event/FocusAdapter.java Mon Jan 29 09:39:30 2007 +--- java/src/charva/awt/event/FocusAdapter.java.orig 2016-06-20 12:40:44 UTC ++++ java/src/charva/awt/event/FocusAdapter.java @@ -0,0 +1,17 @@ +package charva.awt.event; + +/** + * An abstract class for receiving key events. The methods provided in this + * class are empty; the class is provided as a convenience for implementing + * the KeyListener interface. You only have to implement the methods you + * are interested in. + */ +public abstract class FocusAdapter implements FocusListener { + + public void focusGained(FocusEvent fe) { + } + + public void focusLost(FocusEvent fe) { + } + +} Index: head/devel/charva/files/patch-java_src_charvax_swing_AbstractButton.java =================================================================== --- head/devel/charva/files/patch-java_src_charvax_swing_AbstractButton.java (revision 417165) +++ head/devel/charva/files/patch-java_src_charvax_swing_AbstractButton.java (revision 417166) @@ -1,90 +1,90 @@ ---- java/src/charvax/swing/AbstractButton.java.orig Sat Dec 17 15:27:30 2005 -+++ java/src/charvax/swing/AbstractButton.java Mon Jan 29 09:39:30 2007 +--- java/src/charvax/swing/AbstractButton.java.orig 2016-06-20 12:40:44 UTC ++++ java/src/charvax/swing/AbstractButton.java @@ -19,15 +19,16 @@ - - package charvax.swing; - -+import java.util.Enumeration; -+import java.util.Vector; -+ -+import charva.awt.Container; - import charva.awt.EventQueue; - import charva.awt.ItemSelectable; - import charva.awt.Toolkit; - import charva.awt.Window; - import charva.awt.event.*; - --import java.util.Enumeration; --import java.util.Vector; -- - /** - * This forms the base class for components that exhibit button-like - * behavior. -@@ -50,6 +51,12 @@ public abstract class AbstractButton - _label = label_; - } - -+ protected void addKeyListenerToAncestor() { -+ Window ancestor = super.getAncestorWindow(); -+ if (ancestor != null) -+ ancestor.addKeyListener(this); -+ } -+ - /** - * Set the button's mnemonic character. - * The mnemonic is the key which will activate this button if focus -@@ -76,10 +83,16 @@ public abstract class AbstractButton - */ - public void setMnemonic(int mnemonic_) { - _mnemonic = mnemonic_; -- Window ancestor = super.getAncestorWindow(); -- if (ancestor != null) { -- ancestor.addKeyListener(this); -- } -+ addKeyListenerToAncestor(); -+ } -+ -+ public void setParent(Container container_) { -+ if ((_mnemonic != 0) && (_parent != null) && (_parent.get() != null)) -+ throw new RuntimeException("Removal from previous parent currently not implemented"); -+ //removeKeyListenerFromAncestor(); -+ super.setParent(container_); -+ if (_mnemonic != 0) -+ addKeyListenerToAncestor(); - } - - /** -@@ -237,24 +250,23 @@ public abstract class AbstractButton - * character or a function key or cursor key was typed. - */ - public void keyPressed(KeyEvent ke_) { -- if (ke_.getKeyCode() == getMnemonic()) { -+ int code = ke_.getKeyCode(); -+ int mnem = getMnemonic(); -+ if (!ke_.isActionKey()) { -+ code = Character.toLowerCase(code); -+ mnem = Character.toLowerCase(mnem); -+ } -+ if (code == mnem) { - doClick(); - ke_.consume(); - } - } - - /** -- * Implements the KeyListener interface; this is called if a printable -- * (ASCII or ISO8859-1) character was typed. -+ * Implements the KeyListener interface; this is called only if a -+ * printable (ASCII or ISO8859-1) character was typed. - */ - public void keyTyped(KeyEvent ke_) { -- // We must accept either uppercase or lowercase mnemonic characters. -- char keyLower = Character.toLowerCase((char) ke_.getKeyChar()); -- char mnemonicLower = Character.toLowerCase((char) getMnemonic()); -- if (keyLower == mnemonicLower) { -- doClick(); -- ke_.consume(); -- } - } - - /** + + package charvax.swing; + ++import java.util.Enumeration; ++import java.util.Vector; ++ ++import charva.awt.Container; + import charva.awt.EventQueue; + import charva.awt.ItemSelectable; + import charva.awt.Toolkit; + import charva.awt.Window; + import charva.awt.event.*; + +-import java.util.Enumeration; +-import java.util.Vector; +- + /** + * This forms the base class for components that exhibit button-like + * behavior. +@@ -50,6 +51,12 @@ public abstract class AbstractButton + _label = label_; + } + ++ protected void addKeyListenerToAncestor() { ++ Window ancestor = super.getAncestorWindow(); ++ if (ancestor != null) ++ ancestor.addKeyListener(this); ++ } ++ + /** + * Set the button's mnemonic character. + * The mnemonic is the key which will activate this button if focus +@@ -76,10 +83,16 @@ public abstract class AbstractButton + */ + public void setMnemonic(int mnemonic_) { + _mnemonic = mnemonic_; +- Window ancestor = super.getAncestorWindow(); +- if (ancestor != null) { +- ancestor.addKeyListener(this); +- } ++ addKeyListenerToAncestor(); ++ } ++ ++ public void setParent(Container container_) { ++ if ((_mnemonic != 0) && (_parent != null) && (_parent.get() != null)) ++ throw new RuntimeException("Removal from previous parent currently not implemented"); ++ //removeKeyListenerFromAncestor(); ++ super.setParent(container_); ++ if (_mnemonic != 0) ++ addKeyListenerToAncestor(); + } + + /** +@@ -237,24 +250,23 @@ public abstract class AbstractButton + * character or a function key or cursor key was typed. + */ + public void keyPressed(KeyEvent ke_) { +- if (ke_.getKeyCode() == getMnemonic()) { ++ int code = ke_.getKeyCode(); ++ int mnem = getMnemonic(); ++ if (!ke_.isActionKey()) { ++ code = Character.toLowerCase(code); ++ mnem = Character.toLowerCase(mnem); ++ } ++ if (code == mnem) { + doClick(); + ke_.consume(); + } + } + + /** +- * Implements the KeyListener interface; this is called if a printable +- * (ASCII or ISO8859-1) character was typed. ++ * Implements the KeyListener interface; this is called only if a ++ * printable (ASCII or ISO8859-1) character was typed. + */ + public void keyTyped(KeyEvent ke_) { +- // We must accept either uppercase or lowercase mnemonic characters. +- char keyLower = Character.toLowerCase((char) ke_.getKeyChar()); +- char mnemonicLower = Character.toLowerCase((char) getMnemonic()); +- if (keyLower == mnemonicLower) { +- doClick(); +- ke_.consume(); +- } + } + + /** Index: head/devel/charva/files/patch-java_src_charvax_swing_ButtonGroup.java =================================================================== --- head/devel/charva/files/patch-java_src_charvax_swing_ButtonGroup.java (revision 417165) +++ head/devel/charva/files/patch-java_src_charvax_swing_ButtonGroup.java (revision 417166) @@ -1,26 +1,26 @@ ---- java/src/charvax/swing/ButtonGroup.java.orig 2005-12-17 15:27:30.000000000 +0100 -+++ java/src/charvax/swing/ButtonGroup.java 2009-11-16 10:26:42.000000000 +0100 -@@ -63,9 +63,10 @@ - * Adds the specified button to the group. - */ - public void add(AbstractButton button_) { -+ if (getSelection() != null) -+ button_.setSelected(false); - _buttons.add(button_); - button_.addItemListener(this); -- button_.setSelected(false); - } - - /** -@@ -133,10 +134,9 @@ - for (Enumeration e = _buttons.elements(); e.hasMoreElements();) { - - AbstractButton b = (AbstractButton) e.nextElement(); -- if (source != b || statechange != ItemEvent.SELECTED) { -+ if (source != b && statechange == ItemEvent.SELECTED) { - if (b.isSelected()) { - b._selected = false; -- b.setEnabled(true); - } - } - } +--- java/src/charvax/swing/ButtonGroup.java.orig 2016-06-20 12:40:44 UTC ++++ java/src/charvax/swing/ButtonGroup.java +@@ -63,9 +63,10 @@ public class ButtonGroup + * Adds the specified button to the group. + */ + public void add(AbstractButton button_) { ++ if (getSelection() != null) ++ button_.setSelected(false); + _buttons.add(button_); + button_.addItemListener(this); +- button_.setSelected(false); + } + + /** +@@ -133,10 +134,9 @@ public class ButtonGroup + for (Enumeration e = _buttons.elements(); e.hasMoreElements();) { + + AbstractButton b = (AbstractButton) e.nextElement(); +- if (source != b || statechange != ItemEvent.SELECTED) { ++ if (source != b && statechange == ItemEvent.SELECTED) { + if (b.isSelected()) { + b._selected = false; +- b.setEnabled(true); + } + } + } Index: head/devel/charva/files/patch-java_src_charvax_swing_JLabel.java =================================================================== --- head/devel/charva/files/patch-java_src_charvax_swing_JLabel.java (revision 417165) +++ head/devel/charva/files/patch-java_src_charvax_swing_JLabel.java (revision 417166) @@ -1,47 +1,47 @@ ---- java/src/charvax/swing/JLabel.java.orig Sat Dec 17 15:27:30 2005 -+++ java/src/charvax/swing/JLabel.java Mon Jan 29 09:39:30 2007 +--- java/src/charvax/swing/JLabel.java.orig 2016-06-20 12:40:44 UTC ++++ java/src/charvax/swing/JLabel.java @@ -20,6 +20,7 @@ - package charvax.swing; - - import charva.awt.Dimension; -+import charva.awt.Font; - import charva.awt.Insets; - import charva.awt.Point; - import charva.awt.Toolkit; -@@ -79,6 +80,10 @@ public class JLabel - // Draw the border if it exists - super.draw(); - -+ int attrib = 0; -+ if (_bold) -+ attrib |= Toolkit.A_BOLD; -+ - /* Get the absolute origin of this component. - */ - Point origin = getLocationOnScreen(); -@@ -98,7 +103,7 @@ public class JLabel - buf.setLength(_width); // truncate - - int colorpair = getCursesColor(); -- term.addString(buf.toString(), 0, colorpair); -+ term.addString(buf.toString(), attrib, colorpair); - } - - /** -@@ -169,10 +174,16 @@ public class JLabel - return "JLabel: [" + getText() + "]"; - } - -+ public void setFont(Font font_) { -+ _bold = ((font_.getStyle() & Font.BOLD) != 0); -+ } -+ - //==================================================================== - // INSTANCE VARIABLES - - private String _labeltext; - private int _width; -+ -+ protected boolean _bold = false; - - } + package charvax.swing; + + import charva.awt.Dimension; ++import charva.awt.Font; + import charva.awt.Insets; + import charva.awt.Point; + import charva.awt.Toolkit; +@@ -79,6 +80,10 @@ public class JLabel + // Draw the border if it exists + super.draw(); + ++ int attrib = 0; ++ if (_bold) ++ attrib |= Toolkit.A_BOLD; ++ + /* Get the absolute origin of this component. + */ + Point origin = getLocationOnScreen(); +@@ -98,7 +103,7 @@ public class JLabel + buf.setLength(_width); // truncate + + int colorpair = getCursesColor(); +- term.addString(buf.toString(), 0, colorpair); ++ term.addString(buf.toString(), attrib, colorpair); + } + + /** +@@ -169,10 +174,16 @@ public class JLabel + return "JLabel: [" + getText() + "]"; + } + ++ public void setFont(Font font_) { ++ _bold = ((font_.getStyle() & Font.BOLD) != 0); ++ } ++ + //==================================================================== + // INSTANCE VARIABLES + + private String _labeltext; + private int _width; + ++ protected boolean _bold = false; ++ + } Index: head/devel/charva/files/patch-java_src_charvax_swing_JPasswordField.java =================================================================== --- head/devel/charva/files/patch-java_src_charvax_swing_JPasswordField.java (revision 417165) +++ head/devel/charva/files/patch-java_src_charvax_swing_JPasswordField.java (revision 417166) @@ -1,14 +1,14 @@ ---- java/src/charvax/swing/JPasswordField.java.orig Sat Dec 17 15:27:30 2005 -+++ java/src/charvax/swing/JPasswordField.java Mon Jan 29 09:39:30 2007 -@@ -133,8 +133,10 @@ public class JPasswordField - * UNDERLINE attribute. - */ - int attrib = 0; -- if (super._enabled) -+ if (_enabled) - attrib |= Toolkit.A_UNDERLINE; -+ if (_bold) -+ attrib |= Toolkit.A_BOLD; - - term.setCursor(origin); - term.addString(_padding, attrib, colorpair); +--- java/src/charvax/swing/JPasswordField.java.orig 2016-06-20 12:40:44 UTC ++++ java/src/charvax/swing/JPasswordField.java +@@ -133,8 +133,10 @@ public class JPasswordField + * UNDERLINE attribute. + */ + int attrib = 0; +- if (super._enabled) ++ if (_enabled) + attrib |= Toolkit.A_UNDERLINE; ++ if (_bold) ++ attrib |= Toolkit.A_BOLD; + + term.setCursor(origin); + term.addString(_padding, attrib, colorpair); Index: head/devel/charva/files/patch-java_src_charvax_swing_JTextArea.java =================================================================== --- head/devel/charva/files/patch-java_src_charvax_swing_JTextArea.java (revision 417165) +++ head/devel/charva/files/patch-java_src_charvax_swing_JTextArea.java (revision 417166) @@ -1,40 +1,40 @@ ---- java/src/charvax/swing/JTextArea.java.orig Fri Dec 30 16:14:22 2005 -+++ java/src/charvax/swing/JTextArea.java Mon Jan 29 09:39:30 2007 -@@ -412,6 +412,10 @@ public class JTextArea - Point tempCaret = null; - Point caret = _caret; - -+ int attrib = 0; -+ if (_bold) -+ attrib |= Toolkit.A_BOLD; -+ - /* Get the absolute origin of this component. - */ - Point origin = getLocationOnScreen(); -@@ -458,7 +462,7 @@ public class JTextArea - _rows++; - term.setCursor(origin.addOffset(col, row)); - } else { -- term.addChar(chr, 0, colorpair); -+ term.addChar(chr, attrib, colorpair); - col++; - } - } else { // We have reached the right-hand column. -@@ -470,7 +474,7 @@ public class JTextArea - _rows++; - term.setCursor(origin.addOffset(col, row)); - } else { -- term.addChar(chr, 0, colorpair); -+ term.addChar(chr, attrib, colorpair); - col++; - _columns++; - } -@@ -482,7 +486,7 @@ public class JTextArea - _rows++; - term.setCursor(origin.addOffset(col, row)); - if (chr != '\n') // thanks to Chris Rogers for this -- term.addChar(chr, 0, colorpair); -+ term.addChar(chr, attrib, colorpair); - } else { - /* We must back-track until we get to whitespace, so - * that we can move the word to the next line. +--- java/src/charvax/swing/JTextArea.java.orig 2016-06-20 12:40:44 UTC ++++ java/src/charvax/swing/JTextArea.java +@@ -412,6 +412,10 @@ public class JTextArea + Point tempCaret = null; + Point caret = _caret; + ++ int attrib = 0; ++ if (_bold) ++ attrib |= Toolkit.A_BOLD; ++ + /* Get the absolute origin of this component. + */ + Point origin = getLocationOnScreen(); +@@ -458,7 +462,7 @@ public class JTextArea + _rows++; + term.setCursor(origin.addOffset(col, row)); + } else { +- term.addChar(chr, 0, colorpair); ++ term.addChar(chr, attrib, colorpair); + col++; + } + } else { // We have reached the right-hand column. +@@ -470,7 +474,7 @@ public class JTextArea + _rows++; + term.setCursor(origin.addOffset(col, row)); + } else { +- term.addChar(chr, 0, colorpair); ++ term.addChar(chr, attrib, colorpair); + col++; + _columns++; + } +@@ -482,7 +486,7 @@ public class JTextArea + _rows++; + term.setCursor(origin.addOffset(col, row)); + if (chr != '\n') // thanks to Chris Rogers for this +- term.addChar(chr, 0, colorpair); ++ term.addChar(chr, attrib, colorpair); + } else { + /* We must back-track until we get to whitespace, so + * that we can move the word to the next line. Index: head/devel/charva/files/patch-java_src_charvax_swing_JTextField.java =================================================================== --- head/devel/charva/files/patch-java_src_charvax_swing_JTextField.java (revision 417165) +++ head/devel/charva/files/patch-java_src_charvax_swing_JTextField.java (revision 417166) @@ -1,43 +1,43 @@ ---- java/src/charvax/swing/JTextField.java.orig Fri Dec 30 16:15:12 2005 -+++ java/src/charvax/swing/JTextField.java Mon Jan 29 09:39:30 2007 -@@ -118,11 +118,6 @@ public class JTextField - return _columns; - } - -- public void setFont(Font font_) { -- _bold = ((font_.getStyle() & Font.BOLD) != 0); -- } -- -- - /** - * Set the action command - */ -@@ -189,9 +184,8 @@ public class JTextField - * UNDERLINE attribute. - */ - int attrib = 0; -- if (super._enabled) -+ if (_enabled) - attrib |= Toolkit.A_UNDERLINE; -- - if (_bold) - attrib |= Toolkit.A_BOLD; - -@@ -247,7 +241,7 @@ public class JTextField - - /* - */ -- if (ke_.isActionKey() == false) { -+ if (!ke_.isActionKey() && (ke_.getID() == KeyEvent.KEY_TYPED)) { - - /* If it is a control character, ignore it. - * @todo Do something more useful with control chars. -@@ -414,8 +408,6 @@ public class JTextField - - //==================================================================== - // INSTANCE VARIABLES -- -- protected boolean _bold = false; - - protected int _columns; - +--- java/src/charvax/swing/JTextField.java.orig 2016-06-20 12:40:44 UTC ++++ java/src/charvax/swing/JTextField.java +@@ -118,11 +118,6 @@ public class JTextField + return _columns; + } + +- public void setFont(Font font_) { +- _bold = ((font_.getStyle() & Font.BOLD) != 0); +- } +- +- + /** + * Set the action command + */ +@@ -189,9 +184,8 @@ public class JTextField + * UNDERLINE attribute. + */ + int attrib = 0; +- if (super._enabled) ++ if (_enabled) + attrib |= Toolkit.A_UNDERLINE; +- + if (_bold) + attrib |= Toolkit.A_BOLD; + +@@ -247,7 +241,7 @@ public class JTextField + + /* + */ +- if (ke_.isActionKey() == false) { ++ if (!ke_.isActionKey() && (ke_.getID() == KeyEvent.KEY_TYPED)) { + + /* If it is a control character, ignore it. + * @todo Do something more useful with control chars. +@@ -415,8 +409,6 @@ public class JTextField + //==================================================================== + // INSTANCE VARIABLES + +- protected boolean _bold = false; +- + protected int _columns; + + /** Index: head/devel/charva/files/patch-java_src_charvax_swing_text_JTextComponent.java =================================================================== --- head/devel/charva/files/patch-java_src_charvax_swing_text_JTextComponent.java (revision 417165) +++ head/devel/charva/files/patch-java_src_charvax_swing_text_JTextComponent.java (revision 417166) @@ -1,28 +1,28 @@ ---- java/src/charvax/swing/text/JTextComponent.java.orig Sat Dec 17 15:27:30 2005 -+++ java/src/charvax/swing/text/JTextComponent.java Mon Jan 29 09:39:30 2007 +--- java/src/charvax/swing/text/JTextComponent.java.orig 2016-06-20 12:40:44 UTC ++++ java/src/charvax/swing/text/JTextComponent.java @@ -19,6 +19,7 @@ - - package charvax.swing.text; - -+import charva.awt.Font; - import charvax.swing.JComponent; - - /** -@@ -72,6 +73,10 @@ public abstract class JTextComponent - _editable = editable_; - } - -+ public void setFont(Font font_) { -+ _bold = ((font_.getStyle() & Font.BOLD) != 0); -+ } -+ - //==================================================================== - // INSTANCE VARIABLES - -@@ -84,4 +89,6 @@ public abstract class JTextComponent - protected StringBuffer _document; - - protected boolean _editable = true; -+ -+ protected boolean _bold = false; - } + + package charvax.swing.text; + ++import charva.awt.Font; + import charvax.swing.JComponent; + + /** +@@ -72,6 +73,10 @@ public abstract class JTextComponent + _editable = editable_; + } + ++ public void setFont(Font font_) { ++ _bold = ((font_.getStyle() & Font.BOLD) != 0); ++ } ++ + //==================================================================== + // INSTANCE VARIABLES + +@@ -84,4 +89,6 @@ public abstract class JTextComponent + protected StringBuffer _document; + + protected boolean _editable = true; ++ ++ protected boolean _bold = false; + } Index: head/devel/flickrnet/Makefile =================================================================== --- head/devel/flickrnet/Makefile (revision 417165) +++ head/devel/flickrnet/Makefile (revision 417166) @@ -1,26 +1,27 @@ # Created by: Romain Tartiere # $FreeBSD$ PORTNAME= flickrnet PORTVERSION= 2.2.0 PORTEPOCH= 1 CATEGORIES= devel MASTER_SITES= http://romain.blogreen.org/distfiles/ DISTNAME= FlickrNet${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}-Src-48055 MAINTAINER= ports@FreeBSD.org COMMENT= Flickr .Net API Library -USES= mono zip +USES= dos2unix mono zip +DOS2UNIX_GLOB= *.cs WRKSRC= ${WRKDIR}/FlickrNet do-build: @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${LOCALBASE}/bin/mcs -t:library -out:FlickrNet.dll -r:System.Data -r:System.Web -r:System.Drawing *.cs do-install: ${MKDIR} ${STAGEDIR}${PREFIX}/lib/mono/flickrnet cd ${WRKSRC} && ${INSTALL_DATA} FlickrNet.dll ${STAGEDIR}${PREFIX}/lib/mono/flickrnet cd ${WRKSRC} && ${SED} -e 's|@prefix@|${PREFIX}|' < flickrnet.pc.in > flickrnet.pc cd ${WRKSRC} && ${INSTALL_DATA} flickrnet.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig .include Index: head/devel/flickrnet/files/patch-AssemblyInfo.cs =================================================================== --- head/devel/flickrnet/files/patch-AssemblyInfo.cs (revision 417165) +++ head/devel/flickrnet/files/patch-AssemblyInfo.cs (revision 417166) @@ -1,16 +1,11 @@ ---- AssemblyInfo.cs.orig +--- AssemblyInfo.cs.orig 2016-06-20 14:46:51 UTC +++ AssemblyInfo.cs -@@ -61,10 +61,10 @@ - [assembly: AssemblyKeyName("")] - - #if !WindowsCE --[assembly: AssemblyKeyFile("..\\..\\FlickrNet.snk")] -+[assembly: AssemblyKeyFile("FlickrNet.snk")] - [assembly: AllowPartiallyTrustedCallers()] - [assembly: SecurityPermission(SecurityAction.RequestMinimum, Execution = true)] - #endif - - [assembly: CLSCompliantAttribute(true)] --[assembly: ComVisible(false)] -\ No newline at end of file -+[assembly: ComVisible(false)] +@@ -61,7 +61,7 @@ using System.Runtime.InteropServices; + [assembly: AssemblyKeyName("")] + + #if !WindowsCE +-[assembly: AssemblyKeyFile("..\\..\\FlickrNet.snk")] ++[assembly: AssemblyKeyFile("FlickrNet.snk")] + [assembly: AllowPartiallyTrustedCallers()] + [assembly: SecurityPermission(SecurityAction.RequestMinimum, Execution = true)] + #endif Index: head/devel/flickrnet/files/patch-flickrnet.pc.in =================================================================== --- head/devel/flickrnet/files/patch-flickrnet.pc.in (revision 417165) +++ head/devel/flickrnet/files/patch-flickrnet.pc.in (revision 417166) @@ -1,11 +1,11 @@ ---- /dev/null +--- flickrnet.pc.in.orig 2016-06-20 14:46:51 UTC +++ flickrnet.pc.in @@ -0,0 +1,8 @@ +prefix=@prefix@ +exec_prefix=${prefix} +libdir=${exec_prefix}/lib + +Name: Flickr .Net API Library +Description: FlickrNet +Version: 2.1.5 +Libs: -r:${libdir}/mono/flickrnet/FlickrNet.dll Index: head/devel/itext/Makefile =================================================================== --- head/devel/itext/Makefile (revision 417165) +++ head/devel/itext/Makefile (revision 417166) @@ -1,60 +1,61 @@ # Created by: Ying-Chieh Liao # $FreeBSD$ PORTNAME= itext PORTVERSION= 4.2.0 PORTREVISION= 4 PORTEPOCH= 1 CATEGORIES= devel java MASTER_SITES= LOCAL/ale MAINTAINER= ale@FreeBSD.org COMMENT= Java-PDF Library LICENSE= MPL LGPL20 LICENSE_COMB= dual BUILD_DEPENDS= ${JAVAJARDIR}/bcmail.jar:java/bouncycastle \ ${JAVAJARDIR}/dom4j.jar:textproc/dom4j \ ${JAVAJARDIR}/pdf-renderer.jar:print/pdf-renderer RUN_DEPENDS= ${JAVAJARDIR}/bcmail.jar:java/bouncycastle \ ${JAVAJARDIR}/dom4j.jar:textproc/dom4j \ ${JAVAJARDIR}/pdf-renderer.jar:print/pdf-renderer OPTIONS_DEFINE= DOCS -USES= tar:bzip2 +USES= dos2unix tar:bzip2 +DOS2UNIX_GLOB= *.java USE_JAVA= yes JAVA_VERSION= 1.6+ USE_ANT= yes ALL_TARGET= jar jar.rtf jar.rups MAKE_ENV= ANT_INCLUDE_SHARED_JARS=YES PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar \ %%JAVAJARDIR%%/${PORTNAME}-rtf.jar \ %%JAVAJARDIR%%/${PORTNAME}-rups.jar \ bin/${PORTNAME}-rups PORTDOCS= * .include .if ${PORT_OPTIONS:MDOCS} ALL_TARGET+= javadoc .endif do-install: @${INSTALL_DATA} ${WRKDIR}/lib/iText.jar \ ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar @${INSTALL_DATA} ${WRKDIR}/lib/iText-rtf.jar \ ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}-rtf.jar @${INSTALL_DATA} ${WRKDIR}/lib/iText-rups.jar \ ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}-rups.jar @${INSTALL_SCRIPT} ${FILESDIR}/${PORTNAME}-rups \ ${STAGEDIR}${PREFIX}/bin/ .if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${STAGEDIR}${DOCSDIR}/apidocs (cd ${WRKDIR}/build/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/apidocs) .endif .include Index: head/devel/itext/files/patch-ant_.ant.properties =================================================================== --- head/devel/itext/files/patch-ant_.ant.properties (revision 417165) +++ head/devel/itext/files/patch-ant_.ant.properties (revision 417166) @@ -1,11 +1,11 @@ ---- ant/.ant.properties.orig 2010-01-12 10:03:11.000000000 +0100 -+++ ant/.ant.properties 2010-01-12 10:05:47.000000000 +0100 -@@ -3,7 +3,7 @@ +--- ant/.ant.properties.orig 2009-11-27 12:59:39 UTC ++++ ant/.ant.properties +@@ -3,7 +3,7 @@ releasedate=2009-11-27 itext.home=../.. -itext.src=${itext.home}/src +itext.src=${itext.home}/itext-${releasenumber} itext.www=${itext.home}/www itext.build=${itext.home}/build itext.lib=${itext.home}/lib Index: head/devel/itext/files/patch-ant_compile.xml =================================================================== --- head/devel/itext/files/patch-ant_compile.xml (revision 417165) +++ head/devel/itext/files/patch-ant_compile.xml (revision 417166) @@ -1,20 +1,20 @@ ---- ant/compile.xml.orig 2009-06-08 02:50:15.000000000 +0200 -+++ ant/compile.xml 2011-11-24 20:55:01.000000000 +0100 +--- ant/compile.xml.orig 2009-06-08 00:50:15 UTC ++++ ant/compile.xml @@ -92,11 +92,17 @@ + + + + + + Index: head/devel/itext/files/patch-ant_site.xml =================================================================== --- head/devel/itext/files/patch-ant_site.xml (revision 417165) +++ head/devel/itext/files/patch-ant_site.xml (revision 417166) @@ -1,11 +1,11 @@ ---- ant/site.xml.orig 2014-06-05 07:50:18.377016755 +0000 -+++ ant/site.xml 2014-06-05 07:49:27.026098152 +0000 +--- ant/site.xml.orig 2009-06-08 00:50:15 UTC ++++ ant/site.xml @@ -65,7 +65,7 @@ + private="true" encoding="utf-8"> Index: head/devel/itext/files/patch-core_com_lowagie_text_pdf_PRTokeniser.java =================================================================== --- head/devel/itext/files/patch-core_com_lowagie_text_pdf_PRTokeniser.java (revision 417165) +++ head/devel/itext/files/patch-core_com_lowagie_text_pdf_PRTokeniser.java (revision 417166) @@ -1,15 +1,15 @@ ---- core/com/lowagie/text/pdf/PRTokeniser.java.orig 2012-07-03 16:02:24.000000000 +0200 -+++ core/com/lowagie/text/pdf/PRTokeniser.java 2012-07-03 16:03:30.000000000 +0200 -@@ -281,6 +281,12 @@ +--- core/com/lowagie/text/pdf/PRTokeniser.java.orig 2016-06-20 15:02:42 UTC ++++ core/com/lowagie/text/pdf/PRTokeniser.java +@@ -281,6 +281,12 @@ public class PRTokeniser { } } } + if (level > 0) { + file.seek(ptr); + type = TK_NUMBER; + stringValue = n1; + return; + } // if we hit here, the file is either corrupt (stream ended unexpectedly), // or the last token ended exactly at the end of a stream. This last // case can occur inside an Object Stream. Index: head/devel/itext/files/patch-core_com_lowagie_text_pdf_PdfReader.java =================================================================== --- head/devel/itext/files/patch-core_com_lowagie_text_pdf_PdfReader.java (revision 417165) +++ head/devel/itext/files/patch-core_com_lowagie_text_pdf_PdfReader.java (revision 417166) @@ -1,11 +1,11 @@ ---- core/com/lowagie/text/pdf/PdfReader.java.orig 2012-01-27 11:27:08.000000000 +0100 -+++ core/com/lowagie/text/pdf/PdfReader.java 2012-01-27 11:27:41.000000000 +0100 -@@ -1464,7 +1464,7 @@ +--- core/com/lowagie/text/pdf/PdfReader.java.orig 2016-06-20 15:02:42 UTC ++++ core/com/lowagie/text/pdf/PdfReader.java +@@ -1464,7 +1464,7 @@ public class PdfReader implements PdfVie } } thisStream *= 2; - if (thisStream < xref.length) + if (thisStream < xref.length && xref[thisStream] == 0 && xref[thisStream + 1] == 0) xref[thisStream] = -1; if (prev == -1) Index: head/devel/itext/files/patch-core_com_lowagie_text_pdf_PdfStamperImp.java =================================================================== --- head/devel/itext/files/patch-core_com_lowagie_text_pdf_PdfStamperImp.java (revision 417165) +++ head/devel/itext/files/patch-core_com_lowagie_text_pdf_PdfStamperImp.java (revision 417166) @@ -1,22 +1,22 @@ ---- core/com/lowagie/text/pdf/PdfStamperImp.java.orig 2009-11-16 13:48:42.000000000 +0100 -+++ core/com/lowagie/text/pdf/PdfStamperImp.java 2012-07-12 10:27:01.000000000 +0200 -@@ -208,8 +208,17 @@ +--- core/com/lowagie/text/pdf/PdfStamperImp.java.orig 2016-06-20 15:02:42 UTC ++++ core/com/lowagie/text/pdf/PdfStamperImp.java +@@ -208,8 +208,17 @@ class PdfStamperImp extends PdfWriter { } // metadata int skipInfo = -1; - PRIndirectReference iInfo = (PRIndirectReference)reader.getTrailer().get(PdfName.INFO); - PdfDictionary oldInfo = (PdfDictionary)PdfReader.getPdfObject(iInfo); + PRIndirectReference iInfo = null; + PdfDictionary oldInfo; + PdfObject dictInfo = reader.getTrailer().get(PdfName.INFO); + // Info dictionary in the trailer shall be an indirect reference, + // but a few broken softwares put it inline + if (dictInfo instanceof PdfDictionary) { + oldInfo = (PdfDictionary) dictInfo; + } else { + iInfo = (PRIndirectReference) dictInfo; + oldInfo = (PdfDictionary)PdfReader.getPdfObject(iInfo); + } String producer = null; if (iInfo != null) skipInfo = iInfo.getNumber(); Index: head/devel/itext/files/patch-core_com_lowagie_text_xml_xmp_XmpReader.java =================================================================== --- head/devel/itext/files/patch-core_com_lowagie_text_xml_xmp_XmpReader.java (revision 417165) +++ head/devel/itext/files/patch-core_com_lowagie_text_xml_xmp_XmpReader.java (revision 417166) @@ -1,23 +1,23 @@ ---- core/com/lowagie/text/xml/xmp/XmpReader.java.orig 2011-11-24 16:34:23.000000000 +0100 -+++ core/com/lowagie/text/xml/xmp/XmpReader.java 2011-11-24 16:41:54.000000000 +0100 -@@ -103,8 +103,19 @@ - public boolean replace(String namespaceURI, String localName, String value) { - NodeList nodes = domDocument.getElementsByTagNameNS(namespaceURI, localName); - Node node; -- if (nodes.getLength() == 0) -+ if (nodes.getLength() == 0) { -+ nodes = domDocument.getElementsByTagNameNS("http://www.w3.org/1999/02/22-rdf-syntax-ns#", "Description"); -+ if (nodes.getLength() == 0) return false; -+ for (int i = 0; i < nodes.getLength(); i++) { -+ node = nodes.item(i); -+ Node attribute = node.getAttributes().getNamedItemNS(namespaceURI, localName); -+ if (attribute != null) { -+ attribute.setNodeValue(value); -+ return true; -+ } -+ } - return false; -+ } - for (int i = 0; i < nodes.getLength(); i++) { - node = nodes.item(i); - setNodeText(domDocument, node, value); +--- core/com/lowagie/text/xml/xmp/XmpReader.java.orig 2016-06-20 15:02:42 UTC ++++ core/com/lowagie/text/xml/xmp/XmpReader.java +@@ -103,8 +103,19 @@ public class XmpReader { + public boolean replace(String namespaceURI, String localName, String value) { + NodeList nodes = domDocument.getElementsByTagNameNS(namespaceURI, localName); + Node node; +- if (nodes.getLength() == 0) ++ if (nodes.getLength() == 0) { ++ nodes = domDocument.getElementsByTagNameNS("http://www.w3.org/1999/02/22-rdf-syntax-ns#", "Description"); ++ if (nodes.getLength() == 0) return false; ++ for (int i = 0; i < nodes.getLength(); i++) { ++ node = nodes.item(i); ++ Node attribute = node.getAttributes().getNamedItemNS(namespaceURI, localName); ++ if (attribute != null) { ++ attribute.setNodeValue(value); ++ return true; ++ } ++ } + return false; ++ } + for (int i = 0; i < nodes.getLength(); i++) { + node = nodes.item(i); + setNodeText(domDocument, node, value); Index: head/devel/p5-Geo-ShapeFile/Makefile =================================================================== --- head/devel/p5-Geo-ShapeFile/Makefile (revision 417165) +++ head/devel/p5-Geo-ShapeFile/Makefile (revision 417166) @@ -1,24 +1,25 @@ # Created by: estith # $FreeBSD$ PORTNAME= Geo-ShapeFile PORTVERSION= 2.61 CATEGORIES= devel perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- MAINTAINER= culot@FreeBSD.org COMMENT= Perl extension for handling ESRI GIS Shapefiles LICENSE= ART10 GPLv1 LICENSE_COMB= dual BUILD_DEPENDS= p5-Tree-R>0:devel/p5-Tree-R \ p5-autovivification>0:devel/p5-autovivification RUN_DEPENDS:= ${BUILD_DEPENDS} NO_ARCH= yes -USES= perl5 +USES= dos2unix perl5 +DOS2UNIX_GLOB= *.pm *.pl *.t USE_PERL5= configure .include Index: head/devel/p5-Geo-ShapeFile/files/patch-t_main__tests.t =================================================================== --- head/devel/p5-Geo-ShapeFile/files/patch-t_main__tests.t (revision 417165) +++ head/devel/p5-Geo-ShapeFile/files/patch-t_main__tests.t (revision 417166) @@ -1,14 +1,14 @@ ---- t/main_tests.t.orig 2015-10-16 16:34:06.906634577 +0200 -+++ t/main_tests.t 2015-10-16 16:34:56.598631573 +0200 +--- t/main_tests.t.orig 2016-06-20 14:43:13 UTC ++++ t/main_tests.t @@ -3,7 +3,10 @@ - use Test::More; - use strict; - use warnings; --use rlib '../lib', './lib'; -+#use rlib '../lib', './lib'; -+use FindBin; -+use lib "$FindBin::Bin/lib"; -+use lib "$FindBin::Bin/../lib"; - - use Geo::ShapeFile; - use Geo::ShapeFile::Shape; + use Test::More; + use strict; + use warnings; +-use rlib '../lib', './lib'; ++#use rlib '../lib', './lib'; ++use FindBin; ++use lib "$FindBin::Bin/lib"; ++use lib "$FindBin::Bin/../lib"; + + use Geo::ShapeFile; + use Geo::ShapeFile::Shape; Index: head/devel/p5-Sys-Cpu/Makefile =================================================================== --- head/devel/p5-Sys-Cpu/Makefile (revision 417165) +++ head/devel/p5-Sys-Cpu/Makefile (revision 417166) @@ -1,17 +1,17 @@ # Created by: Terry Sposato # $FreeBSD$ PORTNAME= Sys-CPU PORTVERSION= 0.52 PORTREVISION= 1 CATEGORIES= devel perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- MAINTAINER= terry@sucked-in.com COMMENT= Sys::CPU - Perl extension for getting CPU information -USES= perl5 +USES= dos2unix perl5 USE_PERL5= configure .include Index: head/devel/p5-Sys-Cpu/files/patch-CPU.xs =================================================================== --- head/devel/p5-Sys-Cpu/files/patch-CPU.xs (revision 417165) +++ head/devel/p5-Sys-Cpu/files/patch-CPU.xs (revision 417166) @@ -1,36 +1,36 @@ ---- CPU.xs.orig 2010-09-03 23:30:18.000000000 +0100 -+++ CPU.xs 2010-09-03 23:57:31.000000000 +0100 -@@ -40,6 +40,11 @@ - #define _have_cpu_clock - #define _have_cpu_type - #endif -+#ifdef __FreeBSD__ -+ #include -+ #define _have_cpu_type -+ #define _have_cpu_clock -+#endif - #ifdef WINDOWS - /* Registry Functions */ - -@@ -317,6 +322,10 @@ - int value = proc_cpuinfo_clock(); - if (value) clock = value; - #endif -+#ifdef __FreeBSD__ -+ size_t len = sizeof(clock); -+ sysctlbyname("hw.clockrate", &clock, &len, NULL, 0); -+#endif - #ifdef WINDOWS - char *clock_str = malloc(MAX_IDENT_SIZE); - /*!! untested !!*/ -@@ -356,6 +365,10 @@ - { - char *value = malloc(MAX_IDENT_SIZE); - int retcode = 0; -+#ifdef __FreeBSD__ -+ size_t len = MAX_IDENT_SIZE; -+ sysctlbyname("hw.model", value, &len, NULL, 0); -+#endif - #ifdef __linux__ - value = proc_cpuinfo_field ("model name"); - if (!value) value = proc_cpuinfo_field ("machine"); +--- CPU.xs.orig 2016-06-20 15:01:16 UTC ++++ CPU.xs +@@ -40,6 +40,11 @@ + #define _have_cpu_clock + #define _have_cpu_type + #endif ++#ifdef __FreeBSD__ ++ #include ++ #define _have_cpu_type ++ #define _have_cpu_clock ++#endif + #ifdef WINDOWS + /* Registry Functions */ + +@@ -317,6 +322,10 @@ CODE: + int value = proc_cpuinfo_clock(); + if (value) clock = value; + #endif ++#ifdef __FreeBSD__ ++ size_t len = sizeof(clock); ++ sysctlbyname("hw.clockrate", &clock, &len, NULL, 0); ++#endif + #ifdef WINDOWS + char *clock_str = malloc(MAX_IDENT_SIZE); + /*!! untested !!*/ +@@ -356,6 +365,10 @@ CODE: + { + char *value = malloc(MAX_IDENT_SIZE); + int retcode = 0; ++#ifdef __FreeBSD__ ++ size_t len = MAX_IDENT_SIZE; ++ sysctlbyname("hw.model", value, &len, NULL, 0); ++#endif + #ifdef __linux__ + value = proc_cpuinfo_field ("model name"); + if (!value) value = proc_cpuinfo_field ("machine"); Index: head/devel/ruby-rbprof/Makefile =================================================================== --- head/devel/ruby-rbprof/Makefile (revision 417165) +++ head/devel/ruby-rbprof/Makefile (revision 417166) @@ -1,33 +1,35 @@ # Created by: Sean Chittenden # $FreeBSD$ PORTNAME= rbprof PORTVERSION= 0.2.1 CATEGORIES= devel ruby MASTER_SITES= SF/aspectr/aspectr/0.3.5 DISTNAME= aspectr-0-3-5 DIST_SUBDIR= ruby MAINTAINER= sean@chittenden.org COMMENT= Flexible Ruby profiler OPTIONS_DEFINE= DOCS #RUN_DEPENDS= ${RUBY_SITELIBDIR}/runit/error.rb:devel/ruby-unit \ # ${RUBY_SITELIBDIR}/aspectr.rb:devel/ruby-aspectr +USES= dos2unix + USE_RUBY= yes NO_BUILD= yes do-install: @${MKDIR} ${STAGEDIR}${RUBY_SITELIBDIR}/rbprof @${MKDIR} ${STAGEDIR}${PORTDOCS}${RUBY_DOCDIR}/rbprof ${INSTALL_DATA} ${WRKSRC}/README \ ${WRKSRC}/TODO ${STAGEDIR}${PORTDOCS}${RUBY_DOCDIR}/rbprof/ ${RUBY} -p -i -e 'gsub(/\r\n/, "\n")' ${WRKSRC}/aspects/profiler/lib/rbprof.rb ${RUBY} -p -i -e 'gsub(/\r\n/, "\n")' ${WRKSRC}/aspects/profiler/lib/trap_method_definitions.rb ${INSTALL_DATA} ${WRKSRC}/aspects/profiler/lib/rbprof.rb ${STAGEDIR}${RUBY_SITELIBDIR}/ ${INSTALL_DATA} ${WRKSRC}/aspects/profiler/lib/trap_method_definitions.rb ${STAGEDIR}${RUBY_SITELIBDIR}/rbprof/ .include Index: head/devel/ruby-rbprof/files/patch-aspects__profiler__lib__rbprof.rb =================================================================== --- head/devel/ruby-rbprof/files/patch-aspects__profiler__lib__rbprof.rb (revision 417165) +++ head/devel/ruby-rbprof/files/patch-aspects__profiler__lib__rbprof.rb (nonexistent) @@ -1,9 +0,0 @@ ---- aspects/profiler/lib/rbprof.rb.orig Tue Jan 29 07:45:45 2002 -+++ aspects/profiler/lib/rbprof.rb Fri Oct 3 18:02:23 2003 -@@ -1,5 +1,5 @@ - require 'aspectr' --require 'trap_method_definitions' -+require 'rbprof/trap_method_definitions' - - class Profiler < AspectR::Aspect - def initialize Property changes on: head/devel/ruby-rbprof/files/patch-aspects__profiler__lib__rbprof.rb ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/devel/ruby-rbprof/files/patch-aspects_profiler_lib_rbprof.rb =================================================================== --- head/devel/ruby-rbprof/files/patch-aspects_profiler_lib_rbprof.rb (nonexistent) +++ head/devel/ruby-rbprof/files/patch-aspects_profiler_lib_rbprof.rb (revision 417166) @@ -0,0 +1,9 @@ +--- aspects/profiler/lib/rbprof.rb.orig 2016-06-20 14:57:12 UTC ++++ aspects/profiler/lib/rbprof.rb +@@ -1,5 +1,5 @@ + require 'aspectr' +-require 'trap_method_definitions' ++require 'rbprof/trap_method_definitions' + + class Profiler < AspectR::Aspect + def initialize Property changes on: head/devel/ruby-rbprof/files/patch-aspects_profiler_lib_rbprof.rb ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/sabre/Makefile =================================================================== --- head/devel/sabre/Makefile (revision 417165) +++ head/devel/sabre/Makefile (revision 417166) @@ -1,29 +1,30 @@ # Created by: Alex Dupre # $FreeBSD$ PORTNAME= sabre PORTVERSION= 20100501 CATEGORIES= devel multimedia java MASTER_SITES= SF/sabre-library DISTNAME= ${PORTNAME}-src-${PORTVERSION} MAINTAINER= ale@FreeBSD.org COMMENT= Simple API for Binary REpresentations and an UDF Library LICENSE= LGPL21 WRKSRC= ${WRKDIR}/Simple\ API\ for\ Binary\ REpresentations\ \(SABRE\) -USES= zip +USES= dos2unix zip +DOS2UNIX_GLOB= *.xml *.java USE_JAVA= yes JAVA_VERSION= 1.6+ USE_ANT= yes ALL_TARGET= dist -PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar %%JAVAJARDIR%%/udflib.jar +PLIST_FILES= ${JAVAJARDIR}/${PORTNAME}.jar ${JAVAJARDIR}/udflib.jar do-install: @${MKDIR} ${STAGEDIR}${JAVAJARDIR} ${INSTALL_DATA} ${WRKSRC}/dist/${PORTNAME}.jar \ ${WRKSRC}/dist/udflib.jar ${STAGEDIR}${JAVAJARDIR}/ .include Index: head/devel/sabre/files/patch-src_java_de_tu_darmstadt_informatik_rbg_bstickler_udflib_UDFImageBuilderFile.java =================================================================== --- head/devel/sabre/files/patch-src_java_de_tu_darmstadt_informatik_rbg_bstickler_udflib_UDFImageBuilderFile.java (revision 417165) +++ head/devel/sabre/files/patch-src_java_de_tu_darmstadt_informatik_rbg_bstickler_udflib_UDFImageBuilderFile.java (nonexistent) @@ -1,17 +0,0 @@ ---- src/java/de/tu_darmstadt/informatik/rbg/bstickler/udflib/UDFImageBuilderFile.java.orig 2010-06-28 11:44:55.000000000 +0200 -+++ src/java/de/tu_darmstadt/informatik/rbg/bstickler/udflib/UDFImageBuilderFile.java 2010-06-28 11:46:18.000000000 +0200 -@@ -32,6 +32,14 @@ - // Symlink // TODO: maybe support symlinks - } - -+ public UDFImageBuilderFile( String fileIdentifier, File sourceFile ) -+ throws Exception -+ { -+ this(sourceFile); -+ -+ identifier = fileIdentifier; -+ } -+ - public UDFImageBuilderFile( File sourceFile ) - throws Exception - { Property changes on: head/devel/sabre/files/patch-src_java_de_tu_darmstadt_informatik_rbg_bstickler_udflib_UDFImageBuilderFile.java ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/devel/sabre/files/patch-build.xml =================================================================== --- head/devel/sabre/files/patch-build.xml (revision 417165) +++ head/devel/sabre/files/patch-build.xml (revision 417166) @@ -1,18 +1,11 @@ ---- build.xml.orig 2012-01-10 16:24:58.000000000 +0100 -+++ build.xml 2012-01-10 16:25:09.000000000 +0100 +--- build.xml.orig 2016-06-20 14:54:06 UTC ++++ build.xml @@ -32,7 +32,7 @@ - - - -- -+ - - - -@@ -77,4 +77,4 @@ - - - -- -\ No newline at end of file -+ + + + +- ++ + + + Index: head/devel/sabre/files/patch-src_java_de_tu__darmstadt_informatik_rbg_bstickler_udflib_UDFImageBuilderFile.java =================================================================== --- head/devel/sabre/files/patch-src_java_de_tu__darmstadt_informatik_rbg_bstickler_udflib_UDFImageBuilderFile.java (nonexistent) +++ head/devel/sabre/files/patch-src_java_de_tu__darmstadt_informatik_rbg_bstickler_udflib_UDFImageBuilderFile.java (revision 417166) @@ -0,0 +1,17 @@ +--- src/java/de/tu_darmstadt/informatik/rbg/bstickler/udflib/UDFImageBuilderFile.java.orig 2016-06-20 14:54:06 UTC ++++ src/java/de/tu_darmstadt/informatik/rbg/bstickler/udflib/UDFImageBuilderFile.java +@@ -32,6 +32,14 @@ public class UDFImageBuilderFile impleme + // Symlink // TODO: maybe support symlinks + } + ++ public UDFImageBuilderFile( String fileIdentifier, File sourceFile ) ++ throws Exception ++ { ++ this(sourceFile); ++ ++ identifier = fileIdentifier; ++ } ++ + public UDFImageBuilderFile( File sourceFile ) + throws Exception + { Property changes on: head/devel/sabre/files/patch-src_java_de_tu__darmstadt_informatik_rbg_bstickler_udflib_UDFImageBuilderFile.java ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/sdts++/Makefile =================================================================== --- head/devel/sdts++/Makefile (revision 417165) +++ head/devel/sdts++/Makefile (revision 417166) @@ -1,30 +1,30 @@ # Created by: erik@habatech.no # $FreeBSD$ PORTNAME= sdts++ PORTVERSION= 1.5.1 PORTREVISION= 6 CATEGORIES= devel MASTER_SITES= http://thor-f5.er.usgs.gov/sdts/sdtsxx/ \ http://lychnobite.org/sdts/ MAINTAINER= ports@FreeBSD.org COMMENT= C++ library for SDTS related development LIB_DEPENDS= libboost_thread.so:devel/boost-libs -DOS2UNIX_FILES= sdts++/io/sio_Utils.cpp +DOS2UNIX_GLOB= *.cpp USES= autoreconf bison dos2unix gmake libtool makeinfo GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-boost=${LOCALBASE}/include INSTALL_TARGET= install-strip USE_LDCONFIG= yes INFO= sdts++ post-patch: .for f in AUTHORS ChangeLog NEWS README @${TOUCH} ${WRKSRC}/sysutils/${f} .endfor .include Index: head/devel/sdts++/files/patch-sysutils__t_dirname.cpp =================================================================== --- head/devel/sdts++/files/patch-sysutils__t_dirname.cpp (revision 417165) +++ head/devel/sdts++/files/patch-sysutils__t_dirname.cpp (nonexistent) @@ -1,10 +0,0 @@ ---- sysutils/t_dirname.cpp.orig 2002-11-27 09:21:34.000000000 +0900 -+++ sysutils/t_dirname.cpp 2012-09-12 16:54:58.000000000 +0900 -@@ -3,6 +3,7 @@ - // - - #include -+#include - - #include "fileutils.h" - Property changes on: head/devel/sdts++/files/patch-sysutils__t_dirname.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/devel/sdts++/files/patch-sdts++__builder__sb_Accessor.cpp =================================================================== --- head/devel/sdts++/files/patch-sdts++__builder__sb_Accessor.cpp (revision 417165) +++ head/devel/sdts++/files/patch-sdts++__builder__sb_Accessor.cpp (nonexistent) @@ -1,65 +0,0 @@ ---- sdts++/builder/sb_Accessor.cpp.orig 2003-06-11 00:51:40.000000000 +0400 -+++ sdts++/builder/sb_Accessor.cpp 2012-03-11 20:18:18.000000000 +0300 -@@ -26,6 +26,13 @@ - #include - #include - -+#ifdef __FreeBSD__ -+# include -+# if __FreeBSD_version < 500035 -+# include -+# endif -+#endif -+namespace std { using ::mbstate_t; } - #include - #include - #include -@@ -155,27 +162,27 @@ - - - --static const char* module_mnemonics_[] = --{ -- {"CATS"}, -- {"CATD"}, -- {"DDOM"}, -- {"DDSH"}, -- {"MDOM"}, -- {"MDEF"}, -- {"DQHL"}, -- {"DQPA"}, -- {"DQAA"}, -- {"DQLC"}, -- {"DQCG"}, -- {"IDEN"}, -- {"IREF"}, -- {"LDEF"}, -- {"RSDF"}, -- {"STAT"}, -- {"XREF"}, -- {""} --}; // module_mnemonics -+static const char* module_mnemonics_[] = -+{ -+ "CATS", -+ "CATD", -+ "DDOM", -+ "DDSH", -+ "MDOM", -+ "MDEF", -+ "DQHL", -+ "DQPA", -+ "DQAA", -+ "DQLC", -+ "DQCG", -+ "IDEN", -+ "IREF", -+ "LDEF", -+ "RSDF", -+ "STAT", -+ "XREF", -+ "" -+}; // module_mnemonics - - - Property changes on: head/devel/sdts++/files/patch-sdts++__builder__sb_Accessor.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/devel/sdts++/files/patch-sdts++__io__sio_8211DDRField.cpp =================================================================== --- head/devel/sdts++/files/patch-sdts++__io__sio_8211DDRField.cpp (revision 417165) +++ head/devel/sdts++/files/patch-sdts++__io__sio_8211DDRField.cpp (nonexistent) @@ -1,10 +0,0 @@ ---- sdts++/io/sio_8211DDRField.cpp.orig 2002-11-25 07:07:43.000000000 +0900 -+++ sdts++/io/sio_8211DDRField.cpp 2012-09-12 16:48:13.000000000 +0900 -@@ -18,6 +18,7 @@ - #endif - - #include -+#include - - - Property changes on: head/devel/sdts++/files/patch-sdts++__io__sio_8211DDRField.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/devel/sdts++/files/patch-sysutils__t_basename.cpp =================================================================== --- head/devel/sdts++/files/patch-sysutils__t_basename.cpp (revision 417165) +++ head/devel/sdts++/files/patch-sysutils__t_basename.cpp (nonexistent) @@ -1,10 +0,0 @@ ---- sysutils/t_basename.cpp.orig 2002-11-27 09:21:34.000000000 +0900 -+++ sysutils/t_basename.cpp 2012-09-12 16:55:05.000000000 +0900 -@@ -3,6 +3,7 @@ - // - - #include -+#include - - #include "fileutils.h" - Property changes on: head/devel/sdts++/files/patch-sysutils__t_basename.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/devel/sdts++/files/patch-sysutils__t_stringutils.cpp =================================================================== --- head/devel/sdts++/files/patch-sysutils__t_stringutils.cpp (revision 417165) +++ head/devel/sdts++/files/patch-sysutils__t_stringutils.cpp (nonexistent) @@ -1,9 +0,0 @@ ---- sysutils/t_stringutils.cpp.orig 2001-07-18 05:50:15.000000000 +0900 -+++ sysutils/t_stringutils.cpp 2012-09-12 16:44:29.000000000 +0900 -@@ -5,6 +5,7 @@ - #include - #include - #include -+#include - - using namespace std; Property changes on: head/devel/sdts++/files/patch-sysutils__t_stringutils.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/devel/sdts++/files/patch-sdts++__io__FormatParset.yy =================================================================== --- head/devel/sdts++/files/patch-sdts++__io__FormatParset.yy (revision 417165) +++ head/devel/sdts++/files/patch-sdts++__io__FormatParset.yy (nonexistent) @@ -1,13 +0,0 @@ ---- sdts++/io/FormatParser.yy.orig 2002-10-08 05:44:24.000000000 +0900 -+++ sdts++/io/FormatParser.yy 2012-09-12 16:53:19.000000000 +0900 -@@ -71,6 +71,10 @@ - - #include - -+#include -+ -+#include -+ - #ifndef INCLUDED_SIO8211FIELDFORMAT_H - #include "sdts++/io/sio_8211FieldFormat.h" - #endif Property changes on: head/devel/sdts++/files/patch-sdts++__io__FormatParset.yy ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/devel/sdts++/files/patch-sdts++__io__sio_8211Converter.cpp =================================================================== --- head/devel/sdts++/files/patch-sdts++__io__sio_8211Converter.cpp (revision 417165) +++ head/devel/sdts++/files/patch-sdts++__io__sio_8211Converter.cpp (nonexistent) @@ -1,10 +0,0 @@ ---- sdts++/io/sio_8211Converter.cpp.orig 2002-11-25 07:07:43.000000000 +0900 -+++ sdts++/io/sio_8211Converter.cpp 2012-09-12 16:47:10.000000000 +0900 -@@ -16,6 +16,7 @@ - - #include - #include -+#include - - #include - Property changes on: head/devel/sdts++/files/patch-sdts++__io__sio_8211Converter.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/devel/sdts++/files/patch-sdts++__io__sio_Utils.cpp =================================================================== --- head/devel/sdts++/files/patch-sdts++__io__sio_Utils.cpp (revision 417165) +++ head/devel/sdts++/files/patch-sdts++__io__sio_Utils.cpp (nonexistent) @@ -1,10 +0,0 @@ ---- sdts++/io/sio_Utils.cpp.orig 2002-10-08 05:44:24.000000000 +0900 -+++ sdts++/io/sio_Utils.cpp 2012-09-12 16:50:32.000000000 +0900 -@@ -15,6 +15,7 @@ - #endif - - #include -+#include - - - Property changes on: head/devel/sdts++/files/patch-sdts++__io__sio_Utils.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/devel/sdts++/files/patch-doc__sdts++.texi =================================================================== --- head/devel/sdts++/files/patch-doc__sdts++.texi (revision 417165) +++ head/devel/sdts++/files/patch-doc__sdts++.texi (revision 417166) @@ -1,59 +1,59 @@ ---- doc/sdts++.texi.orig Wed Jan 12 00:48:47 2000 -+++ doc/sdts++.texi Fri Jul 28 09:12:44 2000 +--- doc/sdts++.texi.orig 2003-06-10 18:15:51 UTC ++++ doc/sdts++.texi @@ -7,6 +7,10 @@ @setfilename sdts++.info @settitle @code{sdts++} Library @setchapternewpage odd +@dircategory C++ toolkit for reading and writing SDTS datasets +@direntry +* stds++: (sdts++). C++ toolkit for reading and writing SDTS datasets +@end direntry @c Put functions in the concept index @syncodeindex fn cp @@ -35,8 +39,8 @@ % be automatically generated, just to keep things simple. % This is rather kludgy, actually: argument #1 is the colon from the RCS % string. It's only there so that RCS/CVS won't expand the wrong thing. -@xdef@seteditionone$Revision#1 #2 ${#2} -@xdef@edition{@seteditionone$Revision: 1.21 $} +\xdef\seteditionone$Revision#1 #2 ${#2} +\xdef\edition{\seteditionone$Revision: 1.21 $} @end tex @c %** End of header @@ -57,11 +61,11 @@ are preserved on all copies. @iftex @subtitle Edition @edition @end iftex -@author Mark Coletti +@author Mark Coletti @page @vskip 0pt plus 1filll -Copyright @copyright 2003 United States Geological Survey. +Copyright @copyright{} 2003 United States Geological Survey. Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice @@ -1169,12 +1173,14 @@ sio_8211FieldFormat declares the followi This class contains specific subfield formatting information. This class defines the following enumerators: - -@code{ - typedef enum @{ A, I, R, S, C, B, X @} type; - - typedef enum @{ fixed, variable @} format; -} + +@ftable @code + +@item typedef enum @{ A, I, R, S, C, B, X @} type; + +@item typedef enum @{ fixed, variable @} format; + +@end ftable This class declares the following members: Index: head/devel/sdts++/files/patch-sdts++_builder_sb__Accessor.cpp =================================================================== --- head/devel/sdts++/files/patch-sdts++_builder_sb__Accessor.cpp (nonexistent) +++ head/devel/sdts++/files/patch-sdts++_builder_sb__Accessor.cpp (revision 417166) @@ -0,0 +1,59 @@ +--- sdts++/builder/sb_Accessor.cpp.orig 2016-06-20 14:59:02 UTC ++++ sdts++/builder/sb_Accessor.cpp +@@ -26,6 +26,13 @@ + #include + #include + ++#ifdef __FreeBSD__ ++# include ++# if __FreeBSD_version < 500035 ++# include ++# endif ++#endif ++namespace std { using ::mbstate_t; } + #include + #include + #include +@@ -157,24 +164,24 @@ sb_Accessor::~sb_Accessor( ) + + static const char* module_mnemonics_[] = + { +- {"CATS"}, +- {"CATD"}, +- {"DDOM"}, +- {"DDSH"}, +- {"MDOM"}, +- {"MDEF"}, +- {"DQHL"}, +- {"DQPA"}, +- {"DQAA"}, +- {"DQLC"}, +- {"DQCG"}, +- {"IDEN"}, +- {"IREF"}, +- {"LDEF"}, +- {"RSDF"}, +- {"STAT"}, +- {"XREF"}, +- {""} ++ "CATS", ++ "CATD", ++ "DDOM", ++ "DDSH", ++ "MDOM", ++ "MDEF", ++ "DQHL", ++ "DQPA", ++ "DQAA", ++ "DQLC", ++ "DQCG", ++ "IDEN", ++ "IREF", ++ "LDEF", ++ "RSDF", ++ "STAT", ++ "XREF", ++ "" + }; // module_mnemonics + + Property changes on: head/devel/sdts++/files/patch-sdts++_builder_sb__Accessor.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/sdts++/files/patch-sdts++_io_FormatParser.yy =================================================================== --- head/devel/sdts++/files/patch-sdts++_io_FormatParser.yy (nonexistent) +++ head/devel/sdts++/files/patch-sdts++_io_FormatParser.yy (revision 417166) @@ -0,0 +1,13 @@ +--- sdts++/io/FormatParser.yy.orig 2002-10-07 20:44:24 UTC ++++ sdts++/io/FormatParser.yy +@@ -71,6 +71,10 @@ + + #include + ++#include ++ ++#include ++ + #ifndef INCLUDED_SIO8211FIELDFORMAT_H + #include "sdts++/io/sio_8211FieldFormat.h" + #endif Property changes on: head/devel/sdts++/files/patch-sdts++_io_FormatParser.yy ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/sdts++/files/patch-sdts++_io_sio__8211Converter.cpp =================================================================== --- head/devel/sdts++/files/patch-sdts++_io_sio__8211Converter.cpp (nonexistent) +++ head/devel/sdts++/files/patch-sdts++_io_sio__8211Converter.cpp (revision 417166) @@ -0,0 +1,10 @@ +--- sdts++/io/sio_8211Converter.cpp.orig 2016-06-20 14:59:02 UTC ++++ sdts++/io/sio_8211Converter.cpp +@@ -16,6 +16,7 @@ + + #include + #include ++#include + + #include + Property changes on: head/devel/sdts++/files/patch-sdts++_io_sio__8211Converter.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/sdts++/files/patch-sdts++_io_sio__8211DDRField.cpp =================================================================== --- head/devel/sdts++/files/patch-sdts++_io_sio__8211DDRField.cpp (nonexistent) +++ head/devel/sdts++/files/patch-sdts++_io_sio__8211DDRField.cpp (revision 417166) @@ -0,0 +1,10 @@ +--- sdts++/io/sio_8211DDRField.cpp.orig 2016-06-20 14:59:02 UTC ++++ sdts++/io/sio_8211DDRField.cpp +@@ -18,6 +18,7 @@ + #endif + + #include ++#include + + + Property changes on: head/devel/sdts++/files/patch-sdts++_io_sio__8211DDRField.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/sdts++/files/patch-sdts++_io_sio__Utils.cpp =================================================================== --- head/devel/sdts++/files/patch-sdts++_io_sio__Utils.cpp (nonexistent) +++ head/devel/sdts++/files/patch-sdts++_io_sio__Utils.cpp (revision 417166) @@ -0,0 +1,10 @@ +--- sdts++/io/sio_Utils.cpp.orig 2016-06-20 14:59:02 UTC ++++ sdts++/io/sio_Utils.cpp +@@ -15,6 +15,7 @@ + #endif + + #include ++#include + + + Property changes on: head/devel/sdts++/files/patch-sdts++_io_sio__Utils.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/sdts++/files/patch-sysutils_t__basename.cpp =================================================================== --- head/devel/sdts++/files/patch-sysutils_t__basename.cpp (nonexistent) +++ head/devel/sdts++/files/patch-sysutils_t__basename.cpp (revision 417166) @@ -0,0 +1,10 @@ +--- sysutils/t_basename.cpp.orig 2016-06-20 14:59:02 UTC ++++ sysutils/t_basename.cpp +@@ -3,6 +3,7 @@ + // + + #include ++#include + + #include "fileutils.h" + Property changes on: head/devel/sdts++/files/patch-sysutils_t__basename.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/sdts++/files/patch-sysutils_t__dirname.cpp =================================================================== --- head/devel/sdts++/files/patch-sysutils_t__dirname.cpp (nonexistent) +++ head/devel/sdts++/files/patch-sysutils_t__dirname.cpp (revision 417166) @@ -0,0 +1,10 @@ +--- sysutils/t_dirname.cpp.orig 2016-06-20 14:59:02 UTC ++++ sysutils/t_dirname.cpp +@@ -3,6 +3,7 @@ + // + + #include ++#include + + #include "fileutils.h" + Property changes on: head/devel/sdts++/files/patch-sysutils_t__dirname.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/sdts++/files/patch-sysutils_t__stringutils.cpp =================================================================== --- head/devel/sdts++/files/patch-sysutils_t__stringutils.cpp (nonexistent) +++ head/devel/sdts++/files/patch-sysutils_t__stringutils.cpp (revision 417166) @@ -0,0 +1,10 @@ +--- sysutils/t_stringutils.cpp.orig 2016-06-20 14:59:02 UTC ++++ sysutils/t_stringutils.cpp +@@ -5,6 +5,7 @@ + #include + #include + #include ++#include + + using namespace std; + Property changes on: head/devel/sdts++/files/patch-sysutils_t__stringutils.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/emulators/pcemu/Makefile =================================================================== --- head/emulators/pcemu/Makefile (revision 417165) +++ head/emulators/pcemu/Makefile (revision 417166) @@ -1,22 +1,24 @@ # Created by: joerg # $FreeBSD$ PORTNAME= pcemu PORTVERSION= 1.01b PORTREVISION= 4 CATEGORIES= emulators MASTER_SITES= LOCAL/joerg DISTNAME= pcemu1.01alpha MAINTAINER= joerg@FreeBSD.org COMMENT= 8086 PC emulator, by David Hedley BUILD_DEPENDS= bdftopcf:x11-fonts/bdftopcf RUN_DEPENDS= mkfontdir:x11-fonts/mkfontdir \ mkfontscale:x11-fonts/mkfontscale USE_XORG= x11 xext +USES= dos2unix +DOS2UNIX_FILES= programs/config.sys MAKE_ENV= FILESDIR=${FILESDIR} STAGEDIR=${STAGEDIR} MAKE_ARGS= CC="${CC}" .include Index: head/emulators/pcemu/files/patch-ae =================================================================== --- head/emulators/pcemu/files/patch-ae (revision 417165) +++ head/emulators/pcemu/files/patch-ae (revision 417166) @@ -1,10 +1,7 @@ -*** programs/config.sys.orig Mon Mar 27 21:27:23 1995 ---- programs/config.sys Mon Mar 27 22:19:26 1995 -*************** -*** 1,2 **** -! device=emufs.sys / -! stacks 9,512 ---- 1,3 ---- -! device=\emufs.sys /usr/local/lib/pcemu/C -! stacks 9,512 -! +--- programs/config.sys.orig 2016-06-20 15:48:12 UTC ++++ programs/config.sys +@@ -1,2 +1,3 @@ +-device=emufs.sys / ++device=\emufs.sys /usr/local/lib/pcemu/C + stacks 9,512 ++ Index: head/emulators/yabause/Makefile =================================================================== --- head/emulators/yabause/Makefile (revision 417165) +++ head/emulators/yabause/Makefile (revision 417166) @@ -1,51 +1,51 @@ # Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ PORTNAME= yabause PORTVERSION= 0.9.14 CATEGORIES= emulators MASTER_SITES= SF MAINTAINER= ports@FreeBSD.org COMMENT= Sega Saturn system emulator LICENSE= GPLv2+ USES= cmake dos2unix openal:soft pkgconfig -DOS2UNIX_FILES= src/qt/YabauseThread.cpp +DOS2UNIX_FILES= src/qt/YabauseThread.cpp src/core.h USE_XORG= xmu xrandr USE_GL= gl glu glut CFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib SUB_FILES= pkg-message OPTIONS_DEFINE= SDL2 OPTIONS_SINGLE= GUI OPTIONS_SINGLE_GUI= GTK2 QT4 QT5 OPTIONS_DEFAULT= QT4 GTK2_LIB_DEPENDS= libgtkglext-x11-1.0.so:x11-toolkits/gtkglext GTK2_USE= gnome=gtk20 GTK2_CMAKE_ON= -DYAB_PORTS:STRING=gtk GTK2_CMAKE_OFF= -DYAB_PORTS:STRING=qt QT4_USE= qt4=corelib,gui,opengl \ qt4=moc_build,qmake_build,rcc_build,uic_build QT4_CMAKE_ON= -DQt5_FOUND:BOOL=OFF QT5_USE= qt5=core,gui,opengl \ qt5=buildtools_build,qmake_build SDL2_DESC= SDL2 libraries support SDL2_USE= sdl=sdl2 SDL2_USE_OFF= sdl=sdl .include post-patch: .if empty(PORT_OPTIONS:MSDL2) @${REINPLACE_CMD} -e \ 's|SDL2 |SDL | ; \ s|SDL2_|SDL_|' ${WRKSRC}/src/CMakeLists.txt .endif .include Index: head/emulators/yabause/files/patch-src__core.h =================================================================== --- head/emulators/yabause/files/patch-src__core.h (revision 417165) +++ head/emulators/yabause/files/patch-src__core.h (revision 417166) @@ -1,13 +1,13 @@ --- src/core.h.orig +++ src/core.h @@ -252,8 +252,10 @@ # define BSWAP16(x) ((__builtin_bswap16((x) >> 16) << 16) | __builtin_bswap16((x))) # define BSWAP16L(x) (__builtin_bswap16((x))) #endif +#ifdef HAVE_BUILTIN_BSWAP32 # define BSWAP32(x) (__builtin_bswap32((x))) #endif +#endif - #ifdef _MSC_VER + #ifdef _MSC_VER # define BSWAP16(x) ((_byteswap_ushort((x) >> 16) << 16) | _byteswap_ushort((x))) Index: head/games/eights/Makefile =================================================================== --- head/games/eights/Makefile (revision 417165) +++ head/games/eights/Makefile (revision 417166) @@ -1,22 +1,24 @@ # Created by: Bob Bomar # $FreeBSD$ PORTNAME= eights PORTVERSION= 1.0 CATEGORIES= games MASTER_SITES= http://dxkelly.freeshell.org/ DISTNAME= ${PORTNAME} MAINTAINER= ports@FreeBSD.org COMMENT= Text based card game, the objective is to get rid of all your cards +USES= dos2unix +DOS2UNIX_FILES= eights.c NO_WRKSUBDIR= yes PLIST_FILES= bin/eights do-build: @cd ${WRKSRC} && ${CC} ${CFLAGS} ${PORTNAME}.c -o ${PORTNAME} do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin .include Index: head/games/eights/files/patch-eights.c =================================================================== --- head/games/eights/files/patch-eights.c (revision 417165) +++ head/games/eights/files/patch-eights.c (revision 417166) @@ -1,11 +1,11 @@ ---- eights.c Sun Nov 10 08:50:52 2002 -+++ eights.c Sat May 20 12:36:22 2000 +--- eights.c.orig 2016-06-20 14:33:50 UTC ++++ eights.c @@ -5,6 +5,8 @@ - #include - #include - -+#define debug -+ - #ifdef DEBUG - #undef debug - #define debug printf + #include + #include + ++#define debug ++ + #ifdef DEBUG + #undef debug + #define debug printf Index: head/games/heretic/Makefile =================================================================== --- head/games/heretic/Makefile (revision 417165) +++ head/games/heretic/Makefile (revision 417166) @@ -1,76 +1,77 @@ # Created by: Will Andrews # $FreeBSD$ PORTNAME= heretic PORTVERSION= 1.2 PORTREVISION= 8 CATEGORIES= games MASTER_SITES= http://files.kyle-evans.net/freebsd/:source \ http://files.kyle-evans.net/freebsd/:wad DISTNAME= gl${PORTNAME}-${PORTVERSION} MAINTAINER= oliver@FreeBSD.org COMMENT= Unix source-port of the famous Heretic game by id Software -USES= gmake +USES= dos2unix gmake +DOS2UNIX_FILES= opengl/gl_struct.h USE_XORG= x11 xi xpm xau OPTIONS_DEFINE= WAD DOCS OPTIONS_SINGLE= SG1 OPTIONS_SINGLE_SG1= X11 FASTX11 SDL FASTX11_DESC= Use FastX11 WAD_DESC= With shareware WAD SG1_DESC= Graphics Selections OPTIONS_DEFAULT= X11 WAD .include .if ${PORT_OPTIONS:MX11} ALL_TARGET= x11 BINARY= xheretic .endif .if ${PORT_OPTIONS:MFASTX11} ALL_TARGET= fastx11 BINARY= xaheretic .endif .if ${PORT_OPTIONS:MSDL} USE_SDL= yes ALL_TARGET= sdl BINARY= sdlheretic CFLAGS+= `${SDL_CONFIG} --cflags` .endif .if ${PORT_OPTIONS:MWAD} DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:source heretic_share.wad.gz:wad EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} PLIST_SUB+= WAD="" .else PLIST_SUB+= WAD="@comment " .endif post-extract: .if ${PORT_OPTIONS:MWAD} @${GZIP_CMD} -dc ${_DISTDIR}/heretic_share.wad.gz \ > ${WRKSRC}/heretic_share.wad .endif @${FIND} ${WRKSRC} -name .depend -type f -delete @${RM} ${WRKSRC}/i_ipx.c do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${BINARY} ${STAGEDIR}${PREFIX}/bin/heretic ${INSTALL_PROGRAM} ${WRKSRC}/sndserver ${STAGEDIR}${PREFIX}/bin/sndserver .if ${PORT_OPTIONS:MWAD} @${MKDIR} ${STAGEDIR}${PREFIX}/share/heretic ${INSTALL_DATA} ${WRKSRC}/heretic_share.wad ${STAGEDIR}${PREFIX}/share/heretic .endif .if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${STAGEDIR}${DOCSDIR} .for i in "End User License Heretic Source Code.txt" Gamekeys.txt README.txt AUTHORS SourceReadme.txt Changelog README.opengl ${INSTALL_DATA} ${WRKSRC}/doc/${i} ${STAGEDIR}${DOCSDIR} .endfor .endif .include Index: head/games/heretic/files/patch-doc-Gamekeys.txt =================================================================== --- head/games/heretic/files/patch-doc-Gamekeys.txt (revision 417165) +++ head/games/heretic/files/patch-doc-Gamekeys.txt (nonexistent) @@ -1,13 +0,0 @@ ---- doc/Gamekeys.txt.orig 1999-04-06 14:58:18.000000000 +0200 -+++ doc/Gamekeys.txt 2011-04-21 01:30:38.000000000 +0200 -@@ -9,6 +9,10 @@ - - key_fire: Control-key - key_use: Space-key -+key_health: 'a' -+key_tomeofpower: Backspace-key -+key_egg: 'q' -+key_firebomb: 'b' - key_strafe: Alt/Meta-key - key_speed: Shift-key - Property changes on: head/games/heretic/files/patch-doc-Gamekeys.txt ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/games/heretic/files/patch-graphics__i_sdl.c =================================================================== --- head/games/heretic/files/patch-graphics__i_sdl.c (revision 417165) +++ head/games/heretic/files/patch-graphics__i_sdl.c (nonexistent) @@ -1,11 +0,0 @@ ---- graphics/i_sdl.c 2002/04/17 17:57:00 1.1 -+++ graphics/i_sdl.c 2002/04/17 17:57:08 -@@ -7,7 +7,7 @@ - #include - #include "doomdef.h" - --#include "SDL/SDL.h" -+#include "SDL.h" - - static int lastmousex = 0; - static int lastmousey = 0; Property changes on: head/games/heretic/files/patch-graphics__i_sdl.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/games/heretic/files/patch-p_inter.c =================================================================== --- head/games/heretic/files/patch-p_inter.c (revision 417165) +++ head/games/heretic/files/patch-p_inter.c (nonexistent) @@ -1,15 +0,0 @@ ---- p_inter.c.ori Sun Mar 4 15:38:51 2007 -+++ p_inter.c Sun Mar 4 15:41:50 2007 -@@ -477,8 +477,10 @@ - void P_SetDormantArtifact(mobj_t *arti) - { - arti->flags &= ~MF_SPECIAL; -- if(deathmatch && (arti->type != MT_ARTIINVULNERABILITY) -- && (arti->type != MT_ARTIINVISIBILITY)) -+ if( -+ (deathmatch && (arti->type != MT_ARTIINVULNERABILITY) -+ && (arti->type != MT_ARTIINVISIBILITY)) -+ || (respawnartifacts) ) - { - P_SetMobjState(arti, S_DORMANTARTI1); - } Property changes on: head/games/heretic/files/patch-p_inter.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/games/heretic/files/patch-r_things.c =================================================================== --- head/games/heretic/files/patch-r_things.c (revision 417165) +++ head/games/heretic/files/patch-r_things.c (nonexistent) @@ -1,11 +0,0 @@ ---- r_things.c.orig Thu Jan 27 00:49:35 2000 -+++ r_things.c Fri Dec 29 20:57:02 2006 -@@ -144,7 +144,7 @@ - while (*check != NULL) - check++; - -- numsprites = check-namelist; -+ numsprites = 128; - - if (!numsprites) - return; Property changes on: head/games/heretic/files/patch-r_things.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/games/heretic/files/patch-g_game.c =================================================================== --- head/games/heretic/files/patch-g_game.c (revision 417165) +++ head/games/heretic/files/patch-g_game.c (nonexistent) @@ -1,56 +0,0 @@ ---- g_game.c.ori Sun Mar 4 15:44:07 2007 -+++ g_game.c Sun Mar 4 15:50:29 2007 -@@ -91,6 +91,7 @@ - boolean viewactive; - - boolean deathmatch; /* only if started as net death */ -+boolean respawnartifacts; /* respawning Artifacts */ - boolean netgame; /* only true if packets are broadcast */ - boolean playeringame[MAXPLAYERS]; - player_t players[MAXPLAYERS]; -@@ -122,6 +123,7 @@ - long key_right, key_left, key_up, key_down; - long key_strafeleft, key_straferight; - long key_fire, key_use, key_strafe, key_speed; -+long key_health, key_tomeofpower, key_egg, key_firebomb; - long key_flyup, key_flydown, key_flycenter; - long key_lookup, key_lookdown, key_lookcenter; - long key_invleft, key_invright, key_useartifact; -@@ -361,13 +363,34 @@ - } - } - } -- if(gamekeydown[127] && !cmd->arti -+ if(gamekeydown[key_tomeofpower] && !cmd->arti - && !players[consoleplayer].powers[pw_weaponlevel2]) - { -- gamekeydown[127] = false; -+ gamekeydown[key_tomeofpower] = false; - cmd->arti = arti_tomeofpower; - } -- -+ // Health by key: -+ if(gamekeydown[key_health] && !cmd->arti) -+ { -+ gamekeydown[key_health] = false; -+ cmd->arti = arti_health; -+ } -+ -+ // Egg by key: -+ if(gamekeydown[key_egg] && !cmd->arti) -+ { -+ gamekeydown[key_egg] = false; -+ cmd->arti = arti_egg; -+ } -+ -+ // Timebombe by key: -+ if(gamekeydown[key_firebomb] && !cmd->arti) -+ { -+ gamekeydown[key_firebomb] = false; -+ cmd->arti = arti_firebomb; -+ } -+ -+ - /* - * buttons - */ Property changes on: head/games/heretic/files/patch-g_game.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/games/heretic/files/patch-i_udp.c =================================================================== --- head/games/heretic/files/patch-i_udp.c (revision 417165) +++ head/games/heretic/files/patch-i_udp.c (nonexistent) @@ -1,11 +0,0 @@ ---- i_udp.c.old Sun Oct 20 22:21:11 2002 -+++ i_udp.c Sun Oct 20 22:21:26 2002 -@@ -31,7 +31,7 @@ - - boolean server = 0; - --static int DOOMPORT = (IPPORT_USERRESERVED +0x1d ); -+static int DOOMPORT = (5000 +0x1d ); - - /* static int sendsocket; */ - /* static int insocket; */ Property changes on: head/games/heretic/files/patch-i_udp.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/games/heretic/files/patch-d_main.c =================================================================== --- head/games/heretic/files/patch-d_main.c (revision 417165) +++ head/games/heretic/files/patch-d_main.c (nonexistent) @@ -1,25 +0,0 @@ ---- d_main.c.ori Sun Mar 11 16:31:49 2007 -+++ d_main.c Sun Mar 11 16:33:46 2007 -@@ -690,6 +690,7 @@ - setbuf(stdout, NULL); - nomonsters = M_CheckParm("-nomonsters"); - respawnparm = M_CheckParm("-respawn"); -+ respawnartifacts = M_CheckParm("-respawnartifacts"); - ravpic = M_CheckParm("-ravpic"); - noartiskip = M_CheckParm("-noartiskip"); - debugmode = M_CheckParm("-debug"); -@@ -778,7 +779,13 @@ - { - deathmatch = true; - } -- -+ -+ if ( M_CheckParm("-respawnartifacts")!=0 ) -+ { -+ printf("Parameter: -respawnartifacts\n"); -+ respawnartifacts=1; -+ } -+ - p = M_CheckParm("-skill"); - if(p && p < myargc-1) - { Property changes on: head/games/heretic/files/patch-d_main.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/games/heretic/files/patch-opengl_gl_fonts.c =================================================================== --- head/games/heretic/files/patch-opengl_gl_fonts.c (revision 417165) +++ head/games/heretic/files/patch-opengl_gl_fonts.c (nonexistent) @@ -1,9 +0,0 @@ ---- opengl/gl_fonts.c Sun Jan 30 05:58:21 2000 -+++ opengl/gl_fonts.c.new Sun Feb 13 03:54:46 2000 -@@ -1,5 +1,5 @@ - #include --#include -+#include - #include - #include - Property changes on: head/games/heretic/files/patch-opengl_gl_fonts.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/games/heretic/files/patch-w_wad.c =================================================================== --- head/games/heretic/files/patch-w_wad.c (revision 417165) +++ head/games/heretic/files/patch-w_wad.c (nonexistent) @@ -1,19 +0,0 @@ ---- w_wad.c Sat Oct 23 05:02:21 1999 -+++ w_wad.c.new Sun Feb 13 03:52:25 2000 -@@ -15,7 +15,6 @@ - #include - #include - #include --#include - #include - #include - #include -@@ -26,8 +25,6 @@ - - #define O_BINARY 0 - #endif /* UNIX */ -- --#include - - #ifdef __GLIBC__ - #include Property changes on: head/games/heretic/files/patch-w_wad.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/games/heretic/files/patch-opengl_gl_struct.h =================================================================== --- head/games/heretic/files/patch-opengl_gl_struct.h (revision 417165) +++ head/games/heretic/files/patch-opengl_gl_struct.h (nonexistent) @@ -1,11 +0,0 @@ ---- opengl/gl_struct.h.orig Wed Jan 26 14:38:19 2000 -+++ opengl/gl_struct.h Sun Apr 2 16:43:51 2000 -@@ -2,7 +2,7 @@ - #define __GL_STRUCT_H__ - - #include --#include -+#include - #include - #include - #include Property changes on: head/games/heretic/files/patch-opengl_gl_struct.h ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/games/heretic/files/patch-graphics__i_sdl_gl.c =================================================================== --- head/games/heretic/files/patch-graphics__i_sdl_gl.c (revision 417165) +++ head/games/heretic/files/patch-graphics__i_sdl_gl.c (nonexistent) @@ -1,11 +0,0 @@ ---- graphics/i_sdl_gl.c 2002/04/17 17:57:00 1.1 -+++ graphics/i_sdl_gl.c 2002/04/17 17:57:14 -@@ -4,7 +4,7 @@ - #include - #include "doomdef.h" - --#include -+#include - - #include "gl_struct.h" - Property changes on: head/games/heretic/files/patch-graphics__i_sdl_gl.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/games/heretic/files/patch-graphics-i_x11_fast.c =================================================================== --- head/games/heretic/files/patch-graphics-i_x11_fast.c (revision 417165) +++ head/games/heretic/files/patch-graphics-i_x11_fast.c (nonexistent) @@ -1,16 +0,0 @@ ---- graphics/i_x11_fast.c.orig Fri Dec 29 20:03:37 2006 -+++ graphics/i_x11_fast.c Fri Dec 29 20:03:59 2006 -@@ -201,13 +201,9 @@ - /* This is an ugly PC-ism. Better switch to XLookupKeysym() ? */ - case XK_KP_Insert: rc = '0'; break; - case XK_KP_End: rc = '1'; break; -- case XK_KP_Down: rc = '2'; break; - case XK_KP_Page_Down: rc = '3'; break; -- case XK_KP_Left: rc = '4'; break; - case XK_KP_Begin: rc = '5'; break; -- case XK_KP_Right: rc = '6'; break; - case XK_KP_Home: rc = '7'; break; -- case XK_KP_Up: rc = '8'; break; - case XK_KP_Page_Up: rc = '9'; break; - - case XK_Shift_L: Property changes on: head/games/heretic/files/patch-graphics-i_x11_fast.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/games/heretic/files/patch-doc-README.opengl =================================================================== --- head/games/heretic/files/patch-doc-README.opengl (revision 417165) +++ head/games/heretic/files/patch-doc-README.opengl (nonexistent) @@ -1,12 +0,0 @@ ---- doc/README.opengl.orig 2000-05-15 22:46:24.000000000 +0200 -+++ doc/README.opengl 2011-04-21 01:36:33.000000000 +0200 -@@ -71,6 +71,9 @@ - 7. -mlook - With this switch you enable free mouse look in the game. Normaly it makes sense to use this switch together with the -grabmouse switch. Mouselook is enabled by default, but it can be switched inside the game. - -+8. -respawnartifacts -+With this switch you enable respawning of artifacts even in version 1.3 as it -+was in version 1.0 of heretic. - - -You can also edit the generated glheretic.cfg file in the $HOME/.heretic - directory after you have started the game once. Property changes on: head/games/heretic/files/patch-doc-README.opengl ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/games/heretic/files/patch-m_misc.c =================================================================== --- head/games/heretic/files/patch-m_misc.c (revision 417165) +++ head/games/heretic/files/patch-m_misc.c (nonexistent) @@ -1,21 +0,0 @@ ---- m_misc.c.ori Sun Mar 4 15:50:54 2007 -+++ m_misc.c Sun Mar 4 15:52:40 2007 -@@ -365,6 +365,7 @@ - extern long key_right, key_left, key_up, key_down; - extern long key_strafeleft, key_straferight; - extern long key_fire, key_use, key_strafe, key_speed; -+extern long key_health, key_tomeofpower, key_egg, key_firebomb; - extern long key_flyup, key_flydown, key_flycenter; - extern long key_lookup, key_lookdown, key_lookcenter; - extern long key_invleft, key_invright, key_useartifact; -@@ -447,6 +448,10 @@ - - { "key_fire", &key_fire, KEY_RCTRL, 1 }, - { "key_use", &key_use, ' ', 1 }, -+ { "key_health", &key_health, 'a' }, -+ { "key_tomeofpower", &key_tomeofpower, 127}, -+ { "key_egg", &key_egg, 'q'}, -+ { "key_firebomb", &key_firebomb, 'b'}, - { "key_strafe", &key_strafe, KEY_RALT, 1 }, - { "key_speed", &key_speed, KEY_RSHIFT, 1 }, - Property changes on: head/games/heretic/files/patch-m_misc.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/games/heretic/files/patch-Makefile =================================================================== --- head/games/heretic/files/patch-Makefile (revision 417165) +++ head/games/heretic/files/patch-Makefile (revision 417166) @@ -1,91 +1,91 @@ ---- Makefile.orig Mon May 1 22:56:45 2000 -+++ Makefile Fri Aug 30 01:43:32 2002 +--- Makefile.orig 2000-05-02 01:57:07 UTC ++++ Makefile @@ -1,19 +1,19 @@ # Makefile for Linux Heretic/GLHeretic # Comment the line below if you don't want to build GLHeretic. -WANT_OGL = yes +#WANT_OGL = yes # Comment this if you don't want to build GLHeretic # with highest quality options. # (Only if you have WANT_OGL !) -WANT_NICE_OGL = yes +#WANT_NICE_OGL = yes # Uncomment the line below if you want to use GSI for sound. # (doesn't really work yet. :-() #WANT_GSI = yes -CC = gcc -pipe +#CC = gcc -pipe # # For old SVGALIB, comment out -D__NEWVGALIB__ -@@ -21,7 +21,7 @@ +@@ -21,7 +21,7 @@ CC = gcc -pipe CDEFS.ipx = -DUNIX -DHAVE_USLEEP -DHAVE_MATH_H -DHAVE_VALUES_H -DLINUX_MOUSE \ -DIPX_PROTOCOL -DI_GGI_HERETIC -DNEED_SHMGETEVENTBASE \ -D__NEWVGALIB__ # -DIPX_DEBUG -DEXTRA_WADS -CDEFS.udp = -DUNIX -DHAVE_USLEEP -DHAVE_MATH_H -DHAVE_VALUES_H -DLINUX_MOUSE \ +CDEFS.udp = -DUNIX -DHAVE_USLEEP -DHAVE_MATH_H -DLINUX_MOUSE \ -DUDP_PROTOCOL -DI_GGI_HERETIC -DNEED_SHMGETEVENTBASE \ -D__NEWVGALIB__ # -DEXTRA_WADS -@@ -38,7 +38,7 @@ +@@ -38,7 +38,7 @@ COPT.m68k = -m68020-60 -O2 -fomit-frame- COPT.alpha = -O2 -D__64BIT__ -DHAVE_ALLOCA_H -COPT.FreeBSD = -m486 -O2 -malign-jumps=2 -malign-functions=2 -D__32BIT__ +COPT.FreeBSD = -D__32BIT__ -DHOMEDIR='"\"${PREFIX}/share/heretic\""' COPT.arm = -O2 -D__32BIT__ -fsigned-char -fomit-frame-pointer \ -DHAVE_ALLOCA_H -D__PACKED__=__attribute__\ \(\(packed\)\) -@@ -57,12 +57,12 @@ +@@ -57,12 +57,12 @@ endif endif # Change this to change the platform -COPT.arch = $(COPT.x86) +COPT.arch = $(COPT.FreeBSD) # If you want IPX-netcode compiled, replace $(CDEFS.udp) with $(CDEFS.ipx) -CFLAGS = -Wall $(CDEFS.udp) $(COPT.arch) \ - -I. -I.. -I/usr/X11R6/include $(COPT.sound) $(COPT.opengl) +CFLAGS += $(CDEFS.udp) $(COPT.arch) \ + -I. -I.. -I${LOCALBASE}/include -I${LOCALBASE}/include $(COPT.sound) $(COPT.opengl) # Uncomment the line below if you want to use original "[" and "]" keys # for inventory access, instead of "k" and "l". -@@ -85,18 +85,18 @@ +@@ -85,18 +85,18 @@ SOUND_REFS = soundclient/i_sound.c sound COPT.sound = -D__DOSOUND__ -DSNDSERV -Isoundclient -D__DOMUSIC__ -DMUSSERV # -D_DEBUGSOUND X11LIBS = -lXext -lX11 -MUSSERV = musserver +#MUSSERV = musserver SNDSERV = sndserver endif -X_LDFLAGS = -L/usr/X11R6/lib +X_LDFLAGS = -L${LOCALBASE}/lib X11LIBS = -lXext -lX11 -GLLIBS = -lSDL -lpthread +GLLIBS = `${SDL_CONFIG} --libs` -lpthread GGILIBS = -lggi -lm VGALIBS = -lvga -SDLLIBS = -lSDL -lpthread +SDLLIBS = `${SDL_CONFIG} --libs` -lpthread OBJS = am_map.o ct_chat.o d_main.o d_net.o f_finale.o g_game.o \ p_ceilng.o p_doors.o p_enemy.o p_floor.o p_inter.o p_lights.o \ -@@ -104,7 +104,7 @@ +@@ -104,7 +104,7 @@ OBJS = am_map.o ct_chat.o d_main.o d_net p_spec.o p_switch.o p_telept.o p_tick.o p_user.o r_bsp.o r_data.o \ r_draw.o r_plane.o r_segs.o r_things.o r_main.o mn_menu.o sb_bar.o \ tables.o v_video.o w_wad.o z_zone.o in_lude.o \ - info.o i_net.o i_system.o i_udp.o i_ipx.o i_main.o $(SOUND_OBJS) + info.o i_net.o i_system.o i_udp.o i_main.o $(SOUND_OBJS) GLOBJS = opengl/gl_effects.o opengl/gl_floorceil.o opengl/gl_fonts.o \ opengl/gl_func.o opengl/gl_init.o opengl/gl_lights.o \ Index: head/games/heretic/files/patch-d__main.c =================================================================== --- head/games/heretic/files/patch-d__main.c (nonexistent) +++ head/games/heretic/files/patch-d__main.c (revision 417166) @@ -0,0 +1,25 @@ +--- d_main.c.orig 2003-12-08 23:21:25 UTC ++++ d_main.c +@@ -690,6 +690,7 @@ void D_DoomMain(void) + setbuf(stdout, NULL); + nomonsters = M_CheckParm("-nomonsters"); + respawnparm = M_CheckParm("-respawn"); ++ respawnartifacts = M_CheckParm("-respawnartifacts"); + ravpic = M_CheckParm("-ravpic"); + noartiskip = M_CheckParm("-noartiskip"); + debugmode = M_CheckParm("-debug"); +@@ -778,7 +779,13 @@ void D_DoomMain(void) + { + deathmatch = true; + } +- ++ ++ if ( M_CheckParm("-respawnartifacts")!=0 ) ++ { ++ printf("Parameter: -respawnartifacts\n"); ++ respawnartifacts=1; ++ } ++ + p = M_CheckParm("-skill"); + if(p && p < myargc-1) + { Property changes on: head/games/heretic/files/patch-d__main.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/games/heretic/files/patch-doc_Gamekeys.txt =================================================================== --- head/games/heretic/files/patch-doc_Gamekeys.txt (nonexistent) +++ head/games/heretic/files/patch-doc_Gamekeys.txt (revision 417166) @@ -0,0 +1,13 @@ +--- doc/Gamekeys.txt.orig 1999-04-06 12:58:18 UTC ++++ doc/Gamekeys.txt +@@ -9,6 +9,10 @@ key-strafe-right: '.' + + key_fire: Control-key + key_use: Space-key ++key_health: 'a' ++key_tomeofpower: Backspace-key ++key_egg: 'q' ++key_firebomb: 'b' + key_strafe: Alt/Meta-key + key_speed: Shift-key + Property changes on: head/games/heretic/files/patch-doc_Gamekeys.txt ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/games/heretic/files/patch-doc_README.opengl =================================================================== --- head/games/heretic/files/patch-doc_README.opengl (nonexistent) +++ head/games/heretic/files/patch-doc_README.opengl (revision 417166) @@ -0,0 +1,12 @@ +--- doc/README.opengl.orig 2000-05-15 20:46:24 UTC ++++ doc/README.opengl +@@ -71,6 +71,9 @@ To start the game in windowed mode, use + 7. -mlook + With this switch you enable free mouse look in the game. Normaly it makes sense to use this switch together with the -grabmouse switch. Mouselook is enabled by default, but it can be switched inside the game. + ++8. -respawnartifacts ++With this switch you enable respawning of artifacts even in version 1.3 as it ++was in version 1.0 of heretic. + + -You can also edit the generated glheretic.cfg file in the $HOME/.heretic + directory after you have started the game once. Property changes on: head/games/heretic/files/patch-doc_README.opengl ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/games/heretic/files/patch-doomdef.h =================================================================== --- head/games/heretic/files/patch-doomdef.h (revision 417165) +++ head/games/heretic/files/patch-doomdef.h (revision 417166) @@ -1,19 +1,19 @@ ---- doomdef.h.ori Sun Mar 4 15:43:44 2007 -+++ doomdef.h Sun Mar 4 15:57:04 2007 -@@ -681,6 +681,7 @@ +--- doomdef.h.orig 2000-05-01 23:42:01 UTC ++++ doomdef.h +@@ -681,6 +681,7 @@ typedef struct short ticdup __PACKED__ ; /* 1 = no duplication, 2-5 = dup for slow nets */ short extratics __PACKED__ ; /* 1 = send a backup tic in every packet */ short deathmatch __PACKED__ ; /* 1 = deathmatch */ + short respawnartifacts __PACKED__ ; /* respawn the artifacts? 1=yes */ short savegame __PACKED__ ; /* -1 = new game, 0-5 = load savegame */ short episode __PACKED__ ; /* 1-3 */ short map __PACKED__ ; /* 1-9 */ -@@ -753,6 +754,8 @@ - extern boolean cdrom; /* true if cd-rom mode active ("-cdrom") */ +@@ -754,6 +755,8 @@ extern boolean cdrom; /* true if c extern boolean deathmatch; /* only if started as net death */ -+ -+extern boolean respawnartifacts; /* respawn the artifacts */ ++extern boolean respawnartifacts; /* respawn the artifacts */ ++ extern boolean netgame; /* only true if >1 player */ + extern boolean playeringame[MAXPLAYERS]; Index: head/games/heretic/files/patch-doomtype.h =================================================================== --- head/games/heretic/files/patch-doomtype.h (revision 417165) +++ head/games/heretic/files/patch-doomtype.h (revision 417166) @@ -1,13 +1,13 @@ ---- doomtype.h.orig Wed Oct 5 07:40:18 2005 -+++ doomtype.h Wed Oct 5 07:40:41 2005 -@@ -59,9 +59,7 @@ +--- doomtype.h.orig 2000-01-07 20:42:41 UTC ++++ doomtype.h +@@ -59,9 +59,7 @@ typedef unsigned char byte; #define MININT ((int)0x80000000) #define MINLONG ((long)0x8000000000000000) -#endif /* 64bit */ - -#if defined(__32BIT__) +#elif defined(__32BIT__) /* 32bit defines */ Index: head/games/heretic/files/patch-g__game.c =================================================================== --- head/games/heretic/files/patch-g__game.c (nonexistent) +++ head/games/heretic/files/patch-g__game.c (revision 417166) @@ -0,0 +1,56 @@ +--- g_game.c.orig 2000-05-01 23:54:51 UTC ++++ g_game.c +@@ -91,6 +91,7 @@ int starttime; + boolean viewactive; + + boolean deathmatch; /* only if started as net death */ ++boolean respawnartifacts; /* respawning Artifacts */ + boolean netgame; /* only true if packets are broadcast */ + boolean playeringame[MAXPLAYERS]; + player_t players[MAXPLAYERS]; +@@ -122,6 +123,7 @@ extern char* homedir; + long key_right, key_left, key_up, key_down; + long key_strafeleft, key_straferight; + long key_fire, key_use, key_strafe, key_speed; ++long key_health, key_tomeofpower, key_egg, key_firebomb; + long key_flyup, key_flydown, key_flycenter; + long key_lookup, key_lookdown, key_lookcenter; + long key_invleft, key_invright, key_useartifact; +@@ -361,13 +363,34 @@ void G_BuildTiccmd (ticcmd_t *cmd) + } + } + } +- if(gamekeydown[127] && !cmd->arti ++ if(gamekeydown[key_tomeofpower] && !cmd->arti + && !players[consoleplayer].powers[pw_weaponlevel2]) + { +- gamekeydown[127] = false; ++ gamekeydown[key_tomeofpower] = false; + cmd->arti = arti_tomeofpower; + } +- ++ // Health by key: ++ if(gamekeydown[key_health] && !cmd->arti) ++ { ++ gamekeydown[key_health] = false; ++ cmd->arti = arti_health; ++ } ++ ++ // Egg by key: ++ if(gamekeydown[key_egg] && !cmd->arti) ++ { ++ gamekeydown[key_egg] = false; ++ cmd->arti = arti_egg; ++ } ++ ++ // Timebombe by key: ++ if(gamekeydown[key_firebomb] && !cmd->arti) ++ { ++ gamekeydown[key_firebomb] = false; ++ cmd->arti = arti_firebomb; ++ } ++ ++ + /* + * buttons + */ Property changes on: head/games/heretic/files/patch-g__game.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/games/heretic/files/patch-graphics_i__sdl.c =================================================================== --- head/games/heretic/files/patch-graphics_i__sdl.c (nonexistent) +++ head/games/heretic/files/patch-graphics_i__sdl.c (revision 417166) @@ -0,0 +1,11 @@ +--- graphics/i_sdl.c.orig 2000-05-01 23:49:49 UTC ++++ graphics/i_sdl.c +@@ -7,7 +7,7 @@ + #include + #include "doomdef.h" + +-#include "SDL/SDL.h" ++#include "SDL.h" + + static int lastmousex = 0; + static int lastmousey = 0; Property changes on: head/games/heretic/files/patch-graphics_i__sdl.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/games/heretic/files/patch-graphics_i__sdl__gl.c =================================================================== --- head/games/heretic/files/patch-graphics_i__sdl__gl.c (nonexistent) +++ head/games/heretic/files/patch-graphics_i__sdl__gl.c (revision 417166) @@ -0,0 +1,11 @@ +--- graphics/i_sdl_gl.c.orig 2000-05-01 23:49:05 UTC ++++ graphics/i_sdl_gl.c +@@ -4,7 +4,7 @@ + #include + #include "doomdef.h" + +-#include ++#include + + #include "gl_struct.h" + Property changes on: head/games/heretic/files/patch-graphics_i__sdl__gl.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/games/heretic/files/patch-graphics_i__x11__fast.c =================================================================== --- head/games/heretic/files/patch-graphics_i__x11__fast.c (nonexistent) +++ head/games/heretic/files/patch-graphics_i__x11__fast.c (revision 417166) @@ -0,0 +1,16 @@ +--- graphics/i_x11_fast.c.orig 2003-12-08 22:48:58 UTC ++++ graphics/i_x11_fast.c +@@ -201,13 +201,9 @@ int xlatekey(void) + /* This is an ugly PC-ism. Better switch to XLookupKeysym() ? */ + case XK_KP_Insert: rc = '0'; break; + case XK_KP_End: rc = '1'; break; +- case XK_KP_Down: rc = '2'; break; + case XK_KP_Page_Down: rc = '3'; break; +- case XK_KP_Left: rc = '4'; break; + case XK_KP_Begin: rc = '5'; break; +- case XK_KP_Right: rc = '6'; break; + case XK_KP_Home: rc = '7'; break; +- case XK_KP_Up: rc = '8'; break; + case XK_KP_Page_Up: rc = '9'; break; + + case XK_Shift_L: Property changes on: head/games/heretic/files/patch-graphics_i__x11__fast.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/games/heretic/files/patch-i__udp.c =================================================================== --- head/games/heretic/files/patch-i__udp.c (nonexistent) +++ head/games/heretic/files/patch-i__udp.c (revision 417166) @@ -0,0 +1,11 @@ +--- i_udp.c.orig 2000-05-01 10:24:52 UTC ++++ i_udp.c +@@ -31,7 +31,7 @@ + + boolean server = 0; + +-static int DOOMPORT = (IPPORT_USERRESERVED +0x1d ); ++static int DOOMPORT = (5000 +0x1d ); + + /* static int sendsocket; */ + /* static int insocket; */ Property changes on: head/games/heretic/files/patch-i__udp.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/games/heretic/files/patch-m__misc.c =================================================================== --- head/games/heretic/files/patch-m__misc.c (nonexistent) +++ head/games/heretic/files/patch-m__misc.c (revision 417166) @@ -0,0 +1,21 @@ +--- m_misc.c.orig 2000-05-02 00:01:29 UTC ++++ m_misc.c +@@ -365,6 +365,7 @@ long usejoystick; + extern long key_right, key_left, key_up, key_down; + extern long key_strafeleft, key_straferight; + extern long key_fire, key_use, key_strafe, key_speed; ++extern long key_health, key_tomeofpower, key_egg, key_firebomb; + extern long key_flyup, key_flydown, key_flycenter; + extern long key_lookup, key_lookdown, key_lookcenter; + extern long key_invleft, key_invright, key_useartifact; +@@ -447,6 +448,10 @@ default_t defaults[] = + + { "key_fire", &key_fire, KEY_RCTRL, 1 }, + { "key_use", &key_use, ' ', 1 }, ++ { "key_health", &key_health, 'a' }, ++ { "key_tomeofpower", &key_tomeofpower, 127}, ++ { "key_egg", &key_egg, 'q'}, ++ { "key_firebomb", &key_firebomb, 'b'}, + { "key_strafe", &key_strafe, KEY_RALT, 1 }, + { "key_speed", &key_speed, KEY_RSHIFT, 1 }, + Property changes on: head/games/heretic/files/patch-m__misc.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/games/heretic/files/patch-opengl_gl__fonts.c =================================================================== --- head/games/heretic/files/patch-opengl_gl__fonts.c (nonexistent) +++ head/games/heretic/files/patch-opengl_gl__fonts.c (revision 417166) @@ -0,0 +1,9 @@ +--- opengl/gl_fonts.c.orig 2000-05-01 19:17:31 UTC ++++ opengl/gl_fonts.c +@@ -1,5 +1,5 @@ + #include +-#include ++#include + #include + #include + Property changes on: head/games/heretic/files/patch-opengl_gl__fonts.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/games/heretic/files/patch-opengl_gl__struct.h =================================================================== --- head/games/heretic/files/patch-opengl_gl__struct.h (nonexistent) +++ head/games/heretic/files/patch-opengl_gl__struct.h (revision 417166) @@ -0,0 +1,11 @@ +--- opengl/gl_struct.h.orig 2016-06-20 13:32:45 UTC ++++ opengl/gl_struct.h +@@ -2,7 +2,7 @@ + #define __GL_STRUCT_H__ + + #include +-#include ++#include + #include + #include + #include Property changes on: head/games/heretic/files/patch-opengl_gl__struct.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/games/heretic/files/patch-opengl_sgi-si_libtess_memalloc.h =================================================================== --- head/games/heretic/files/patch-opengl_sgi-si_libtess_memalloc.h (revision 417165) +++ head/games/heretic/files/patch-opengl_sgi-si_libtess_memalloc.h (revision 417166) @@ -1,11 +1,11 @@ ---- opengl/sgi-si/libtess/memalloc.h Wed Jan 26 05:30:44 2000 -+++ opengl/sgi-si/libtess/memalloc.h.new Sun Feb 13 03:54:46 2000 +--- opengl/sgi-si/libtess/memalloc.h.orig 2000-01-26 10:30:44 UTC ++++ opengl/sgi-si/libtess/memalloc.h @@ -42,7 +42,7 @@ #ifndef __memalloc_simple_h_ #define __memalloc_simple_h_ -#include +#include #define memRealloc realloc #define memFree free Index: head/games/heretic/files/patch-p__inter.c =================================================================== --- head/games/heretic/files/patch-p__inter.c (nonexistent) +++ head/games/heretic/files/patch-p__inter.c (revision 417166) @@ -0,0 +1,15 @@ +--- p_inter.c.orig 2000-01-07 17:58:53 UTC ++++ p_inter.c +@@ -477,8 +477,10 @@ boolean P_GiveArtifact(player_t *player, + void P_SetDormantArtifact(mobj_t *arti) + { + arti->flags &= ~MF_SPECIAL; +- if(deathmatch && (arti->type != MT_ARTIINVULNERABILITY) +- && (arti->type != MT_ARTIINVISIBILITY)) ++ if( ++ (deathmatch && (arti->type != MT_ARTIINVULNERABILITY) ++ && (arti->type != MT_ARTIINVISIBILITY)) ++ || (respawnartifacts) ) + { + P_SetMobjState(arti, S_DORMANTARTI1); + } Property changes on: head/games/heretic/files/patch-p__inter.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/games/heretic/files/patch-r__things.c =================================================================== --- head/games/heretic/files/patch-r__things.c (nonexistent) +++ head/games/heretic/files/patch-r__things.c (revision 417166) @@ -0,0 +1,11 @@ +--- r_things.c.orig 2000-01-26 23:49:35 UTC ++++ r_things.c +@@ -144,7 +144,7 @@ void R_InitSpriteDefs (char **namelist) + while (*check != NULL) + check++; + +- numsprites = check-namelist; ++ numsprites = 128; + + if (!numsprites) + return; Property changes on: head/games/heretic/files/patch-r__things.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/games/heretic/files/patch-sndserv_Makefile =================================================================== --- head/games/heretic/files/patch-sndserv_Makefile (revision 417165) +++ head/games/heretic/files/patch-sndserv_Makefile (revision 417166) @@ -1,11 +1,11 @@ ---- sndserv/Makefile.orig Sat Oct 23 11:02:21 1999 -+++ sndserv/Makefile Thu Jan 10 19:34:23 2002 +--- sndserv/Makefile.orig 1999-10-23 09:02:21 UTC ++++ sndserv/Makefile @@ -1,6 +1,6 @@ -CC = gcc +#CC = gcc -CFLAGS= -Wall -Wstrict-prototypes $(COPT.arch) +CFLAGS= -Wall -Wstrict-prototypes $(COPT.arch) -I/usr/include/sys LIBS= -lm Index: head/games/heretic/files/patch-sndserv_linux.c =================================================================== --- head/games/heretic/files/patch-sndserv_linux.c (revision 417165) +++ head/games/heretic/files/patch-sndserv_linux.c (revision 417166) @@ -1,11 +1,11 @@ ---- sndserv/linux.c.orig Thu Jan 10 19:06:58 2002 -+++ sndserv/linux.c Thu Jan 10 19:07:06 2002 -@@ -32,7 +32,7 @@ - #include +--- sndserv/linux.c.orig 2003-12-08 22:44:54 UTC ++++ sndserv/linux.c +@@ -33,7 +33,7 @@ #include + #include -#include +#include #include "soundsrv.h" Index: head/games/heretic/files/patch-sndserv_soundsrv.c =================================================================== --- head/games/heretic/files/patch-sndserv_soundsrv.c (revision 417165) +++ head/games/heretic/files/patch-sndserv_soundsrv.c (revision 417166) @@ -1,11 +1,11 @@ ---- sndserv/soundsrv.c Mon Mar 22 20:06:59 1999 -+++ sndserv/soundsrv.c.new Sun Feb 13 03:54:46 2000 +--- sndserv/soundsrv.c.orig 1999-03-23 01:06:59 UTC ++++ sndserv/soundsrv.c @@ -43,7 +43,7 @@ #include #include #include -#include +#include #include #include Index: head/games/heretic/files/patch-sndserv_wadread.c =================================================================== --- head/games/heretic/files/patch-sndserv_wadread.c (revision 417165) +++ head/games/heretic/files/patch-sndserv_wadread.c (revision 417166) @@ -1,11 +1,11 @@ ---- sndserv/wadread.c Thu Nov 25 05:24:49 1999 -+++ sndserv/wadread.c.new Sun Feb 13 03:54:46 2000 +--- sndserv/wadread.c.orig 1999-11-25 10:24:49 UTC ++++ sndserv/wadread.c @@ -39,7 +39,7 @@ */ -#include +#include #include #include #include Index: head/games/heretic/files/patch-w__wad.c =================================================================== --- head/games/heretic/files/patch-w__wad.c (nonexistent) +++ head/games/heretic/files/patch-w__wad.c (revision 417166) @@ -0,0 +1,19 @@ +--- w_wad.c.orig 2003-12-08 23:10:35 UTC ++++ w_wad.c +@@ -15,7 +15,6 @@ + #include + #include + #include +-#include + #include + #include + #include +@@ -27,8 +26,6 @@ + #define O_BINARY 0 + #endif /* UNIX */ + +-#include +- + #ifdef __GLIBC__ + /* kludge for broken asm-sparc/io.h on linux 2.2.14.? */ + #ifdef __sparc__ Property changes on: head/games/heretic/files/patch-w__wad.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/games/quake2-psychomod/Makefile =================================================================== --- head/games/quake2-psychomod/Makefile (revision 417165) +++ head/games/quake2-psychomod/Makefile (revision 417166) @@ -1,37 +1,38 @@ # Created by: Alejandro Pulver # $FreeBSD$ PORTNAME= psychomod PORTVERSION= 3.1 CATEGORIES= games MASTER_SITES= LOCAL/alepulver PKGNAMEPREFIX= ${Q2PKGNAMEPREFIX} MAINTAINER= danfe@FreeBSD.org COMMENT= Psychomod modification for Quake II -USES= gmake tar:bzip2 +USES= dos2unix gmake tar:bzip2 +DOS2UNIX_GLOB= *.c *.h WRKSRC= ${WRKDIR}/${PORTNAME} BUILD_WRKSRC= ${WRKSRC}/src ALL_TARGET= release DOCSDIR= ${PREFIX}/share/doc/${PKGBASE} OPTIONS_DEFINE= DOCS .include "${.CURDIR}/../quake2-data/Makefile.include" post-patch: @${REINPLACE_CMD} -e 's/__linux__/__unix__/' \ ${BUILD_WRKSRC}/q_shared.[ch] do-install: @${MKDIR} ${STAGEDIR}${Q2DIR}/${PORTNAME} ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/release/psychomod/game.so \ ${STAGEDIR}${Q2DIR}/${PORTNAME} cd ${WRKSRC} && ${INSTALL_DATA} *.cfg pak0.pak \ ${STAGEDIR}${Q2DIR}/${PORTNAME} @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/readme.txt ${STAGEDIR}${DOCSDIR} .include Index: head/games/quake2-psychomod/files/patch-src__Makefile =================================================================== --- head/games/quake2-psychomod/files/patch-src__Makefile (revision 417165) +++ head/games/quake2-psychomod/files/patch-src__Makefile (nonexistent) @@ -1,71 +0,0 @@ ---- ./src/Makefile.orig Wed Feb 1 20:46:55 2006 -+++ ./src/Makefile Wed Jan 10 19:11:16 2007 -@@ -16,20 +16,10 @@ - # this nice line comes from the linux kernel makefile - ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc/ -e s/sparc64/sparc/ -e s/arm.*/arm/ -e s/sa110/arm/ -e s/alpha/axp/) - --ifneq ($(ARCH),i386) --ifneq ($(ARCH),axp) --ifneq ($(ARCH),ppc) --ifneq ($(ARCH),sparc) --$(error arch $(ARCH) is currently not supported) --endif --endif --endif --endif -- --BUILD_DEBUG_DIR=debug$(ARCH) --BUILD_RELEASE_DIR=release$(ARCH) -+BUILD_DEBUG_DIR=debug -+BUILD_RELEASE_DIR=release - --CC=gcc -+CC?=gcc - BASE_CFLAGS=-Dstricmp=strcasecmp - - RELEASE_CFLAGS=$(BASE_CFLAGS) -ffast-math -funroll-loops \ -@@ -53,7 +43,7 @@ - DO_CC=$(CC) $(CFLAGS) -o $@ -c $< - DO_SHLIB_CC=$(CC) $(CFLAGS) $(SHLIBCFLAGS) -o $@ -c $< - --TARGETS=$(BUILDDIR)/psychomod/game$(ARCH).$(SHLIBEXT) -+TARGETS=$(BUILDDIR)/psychomod/game.$(SHLIBEXT) - - all: - @echo -@@ -64,11 +54,11 @@ - @echo - debug: - @-mkdir -p $(BUILD_DEBUG_DIR)/psychomod -- $(MAKE) targets BUILDDIR=$(BUILD_DEBUG_DIR) CFLAGS="$(DEBUG_CFLAGS)" -+ $(MAKE) targets BUILDDIR=$(BUILD_DEBUG_DIR) CFLAGS+="$(DEBUG_CFLAGS)" - - release: - @-mkdir -p $(BUILD_RELEASE_DIR)/psychomod -- $(MAKE) targets BUILDDIR=$(BUILD_RELEASE_DIR) CFLAGS="$(RELEASE_CFLAGS)" -+ $(MAKE) targets BUILDDIR=$(BUILD_RELEASE_DIR) CFLAGS+="$(RELEASE_CFLAGS)" - - targets: $(TARGETS) - -@@ -124,7 +114,7 @@ - $(BUILDDIR)/p_weapon.o \ - $(BUILDDIR)/q_shared.o - --$(BUILDDIR)/psychomod/game$(ARCH).$(SHLIBEXT) : $(GAME_OBJS) -+$(BUILDDIR)/psychomod/game.$(SHLIBEXT) : $(GAME_OBJS) - $(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(GAME_OBJS) - - $(BUILDDIR)/g_ai.o : g_ai.c -@@ -282,10 +272,10 @@ - clean: clean-debug clean-release - - clean-debug: -- $(MAKE) clean2 BUILDDIR=$(BUILD_DEBUG_DIR) CFLAGS="$(DEBUG_CFLAGS)" -+ $(MAKE) clean2 BUILDDIR=$(BUILD_DEBUG_DIR) CFLAGS+="$(DEBUG_CFLAGS)" - - clean-release: -- $(MAKE) clean2 BUILDDIR=$(BUILD_RELEASE_DIR) CFLAGS="$(DEBUG_CFLAGS)" -+ $(MAKE) clean2 BUILDDIR=$(BUILD_RELEASE_DIR) CFLAGS+="$(DEBUG_CFLAGS)" - - clean2: - -rm -f $(GAME_OBJS) Property changes on: head/games/quake2-psychomod/files/patch-src__Makefile ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/games/quake2-psychomod/files/patch-src__g_items.c =================================================================== --- head/games/quake2-psychomod/files/patch-src__g_items.c (revision 417165) +++ head/games/quake2-psychomod/files/patch-src__g_items.c (nonexistent) @@ -1,15 +0,0 @@ ---- ./src/g_items.c.orig Wed Oct 10 12:53:12 2001 -+++ ./src/g_items.c Wed Jan 10 19:11:41 2007 -@@ -21,9 +21,9 @@ - gitem_armor_t combatarmor_info = { 50, 100, .60, .30, ARMOR_COMBAT}; - gitem_armor_t bodyarmor_info = {100, 200, .80, .60, ARMOR_BODY}; - --static int jacket_armor_index; --static int combat_armor_index; --static int body_armor_index; -+int jacket_armor_index; -+int combat_armor_index; -+int body_armor_index; - static int power_screen_index; - static int power_shield_index; - Property changes on: head/games/quake2-psychomod/files/patch-src__g_items.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/games/quake2-psychomod/files/patch-src_Makefile =================================================================== --- head/games/quake2-psychomod/files/patch-src_Makefile (nonexistent) +++ head/games/quake2-psychomod/files/patch-src_Makefile (revision 417166) @@ -0,0 +1,71 @@ +--- src/Makefile.orig 2006-02-01 23:46:55 UTC ++++ src/Makefile +@@ -16,20 +16,10 @@ OSTYPE := $(shell uname -s) + # this nice line comes from the linux kernel makefile + ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc/ -e s/sparc64/sparc/ -e s/arm.*/arm/ -e s/sa110/arm/ -e s/alpha/axp/) + +-ifneq ($(ARCH),i386) +-ifneq ($(ARCH),axp) +-ifneq ($(ARCH),ppc) +-ifneq ($(ARCH),sparc) +-$(error arch $(ARCH) is currently not supported) +-endif +-endif +-endif +-endif +- +-BUILD_DEBUG_DIR=debug$(ARCH) +-BUILD_RELEASE_DIR=release$(ARCH) ++BUILD_DEBUG_DIR=debug ++BUILD_RELEASE_DIR=release + +-CC=gcc ++CC?=gcc + BASE_CFLAGS=-Dstricmp=strcasecmp + + RELEASE_CFLAGS=$(BASE_CFLAGS) -ffast-math -funroll-loops \ +@@ -53,7 +43,7 @@ SHLIBLDFLAGS=-shared + DO_CC=$(CC) $(CFLAGS) -o $@ -c $< + DO_SHLIB_CC=$(CC) $(CFLAGS) $(SHLIBCFLAGS) -o $@ -c $< + +-TARGETS=$(BUILDDIR)/psychomod/game$(ARCH).$(SHLIBEXT) ++TARGETS=$(BUILDDIR)/psychomod/game.$(SHLIBEXT) + + all: + @echo +@@ -64,11 +54,11 @@ all: + @echo + debug: + @-mkdir -p $(BUILD_DEBUG_DIR)/psychomod +- $(MAKE) targets BUILDDIR=$(BUILD_DEBUG_DIR) CFLAGS="$(DEBUG_CFLAGS)" ++ $(MAKE) targets BUILDDIR=$(BUILD_DEBUG_DIR) CFLAGS+="$(DEBUG_CFLAGS)" + + release: + @-mkdir -p $(BUILD_RELEASE_DIR)/psychomod +- $(MAKE) targets BUILDDIR=$(BUILD_RELEASE_DIR) CFLAGS="$(RELEASE_CFLAGS)" ++ $(MAKE) targets BUILDDIR=$(BUILD_RELEASE_DIR) CFLAGS+="$(RELEASE_CFLAGS)" + + targets: $(TARGETS) + +@@ -124,7 +114,7 @@ GAME_OBJS = \ + $(BUILDDIR)/p_weapon.o \ + $(BUILDDIR)/q_shared.o + +-$(BUILDDIR)/psychomod/game$(ARCH).$(SHLIBEXT) : $(GAME_OBJS) ++$(BUILDDIR)/psychomod/game.$(SHLIBEXT) : $(GAME_OBJS) + $(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(GAME_OBJS) + + $(BUILDDIR)/g_ai.o : g_ai.c +@@ -282,10 +272,10 @@ $(BUILDDIR)/q_shared.o : q_shared.c + clean: clean-debug clean-release + + clean-debug: +- $(MAKE) clean2 BUILDDIR=$(BUILD_DEBUG_DIR) CFLAGS="$(DEBUG_CFLAGS)" ++ $(MAKE) clean2 BUILDDIR=$(BUILD_DEBUG_DIR) CFLAGS+="$(DEBUG_CFLAGS)" + + clean-release: +- $(MAKE) clean2 BUILDDIR=$(BUILD_RELEASE_DIR) CFLAGS="$(DEBUG_CFLAGS)" ++ $(MAKE) clean2 BUILDDIR=$(BUILD_RELEASE_DIR) CFLAGS+="$(DEBUG_CFLAGS)" + + clean2: + -rm -f $(GAME_OBJS) Property changes on: head/games/quake2-psychomod/files/patch-src_Makefile ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/games/quake2-psychomod/files/patch-src_g__items.c =================================================================== --- head/games/quake2-psychomod/files/patch-src_g__items.c (nonexistent) +++ head/games/quake2-psychomod/files/patch-src_g__items.c (revision 417166) @@ -0,0 +1,15 @@ +--- src/g_items.c.orig 2016-06-20 14:35:21 UTC ++++ src/g_items.c +@@ -21,9 +21,9 @@ gitem_armor_t jacketarmor_info = { 25, + gitem_armor_t combatarmor_info = { 50, 100, .60, .30, ARMOR_COMBAT}; + gitem_armor_t bodyarmor_info = {100, 200, .80, .60, ARMOR_BODY}; + +-static int jacket_armor_index; +-static int combat_armor_index; +-static int body_armor_index; ++int jacket_armor_index; ++int combat_armor_index; ++int body_armor_index; + static int power_screen_index; + static int power_shield_index; + Property changes on: head/games/quake2-psychomod/files/patch-src_g__items.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/games/scorched3d/Makefile =================================================================== --- head/games/scorched3d/Makefile (revision 417165) +++ head/games/scorched3d/Makefile (revision 417166) @@ -1,76 +1,74 @@ # Created by: mdodd # $FreeBSD$ PORTNAME= scorched3d PORTVERSION= 0.${SCORCH_VERSION}${SCORCH_REVISION} PORTREVISION= 9 CATEGORIES= games MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/Version%20${SCORCH_VERSION} DISTNAME= Scorched3D-${SCORCH_VERSION}-src MAINTAINER= ports@FreeBSD.org COMMENT= 3D version of the classic DOS game Scorched Earth LICENSE= GPLv2 LIB_DEPENDS= libvorbis.so:audio/libvorbis \ libpng.so:graphics/png \ libfftw3.so:math/fftw3 \ libfftw3f.so:math/fftw3-float \ libexpat.so:textproc/expat2 OPTIONS_DEFINE= MYSQL WRKSRC= ${WRKDIR}/scorched USE_GL= glew glu USE_SDL= mixer net sdl USE_WX= 2.8 WX_CONF_ARGS= absolute -WX_UNICODE= yes USES= autoreconf dos2unix gmake iconv jpeg openal:al,alut perl5 pkgconfig GNU_CONFIGURE= yes CONFIGURE_ARGS= --datadir=${DATADIR} -DOS2UNIX_FILES= src/client/GLEXT/GLFont2dFreeType.h \ - src/launcher/wxdialogs/TrueTypeFont.h +DOS2UNIX_GLOB= *.h *.cpp CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib SCORCH_VERSION= 43.3d SCORCH_REVISION= # none MYSQL_USE= MYSQL=yes MYSQL_CONFIGURE_ON= --with-mysql PLIST_FILES= bin/scorched3d \ bin/scorched3dc \ bin/scorched3ds PORTDATA= * post-extract: @${RM} -f ${WRKSRC}/src/client/GLEXT/[a-z]* post-patch: @${REINPLACE_CMD} -e \ '/^CPPFLAGS=/s|^|#|g ; \ /^LDFLAGS=/s|^|#|g ; \ /if test/s|==|=|' ${WRKSRC}/configure.ac @${REINPLACE_CMD} -e \ '/GL_LIBS/s|"-lGL -lGLU"|"-lGL -lGLU -lGLEW"| ; \ /if test/s|==|=|' ${WRKSRC}/*.m4 @${REINPLACE_CMD} -e \ 's|std::exit|exit|' ${WRKSRC}/src/common/common/main.h @${REINPLACE_CMD} -e \ 's|"glew.h"||' ${WRKSRC}/src/client/GLEXT/GLState.h @${REINPLACE_CMD} -e \ '/GLEXT\\glew.c/d ; \ /GLEXT\\glew.h/d ; \ /GLEXT\\glxew.h/d ; \ /GLEXT\\wglew.h/d' ${WRKSRC}/src/client/scorchedc/scorchedc.vcxproj pre-configure: @cd ${WRKSRC}/scripts && ${PERL} createAMMakefile.pl .include Index: head/games/scorched3d/files/patch-src-client-client-SecureID.cpp =================================================================== --- head/games/scorched3d/files/patch-src-client-client-SecureID.cpp (revision 417165) +++ head/games/scorched3d/files/patch-src-client-client-SecureID.cpp (nonexistent) @@ -1,50 +0,0 @@ ---- src/client/client/SecureID.cpp.orig 2008-03-03 00:47:36.000000000 +0600 -+++ src/client/client/SecureID.cpp 2009-09-29 14:13:58.000000000 +0700 -@@ -34,6 +34,47 @@ - return "0:0:0:0:0:0"; - } - -+#elif defined(__FreeBSD__) -+ -+#include -+#include -+#include -+#include -+ -+std::string SecureID::GetPrivateKey(void) -+{ -+ std::string Key; -+ struct ifaddrs* ifaphead; -+ -+ if (getifaddrs(&ifaphead) != 0) -+ { -+ return ""; -+ } -+ -+ for (struct ifaddrs* ifap = ifaphead; ifap; ifap = ifap->ifa_next) -+ { -+ if (ifap->ifa_addr->sa_family == AF_LINK) -+ { -+ if (strncmp(ifap->ifa_name, "lo", 2) != 0) -+ { -+ struct sockaddr_dl* sdl = -+ (struct sockaddr_dl *)ifap->ifa_addr; -+ unsigned char* if_mac = (unsigned char*)LLADDR(sdl); -+ char buf[18]; -+ snprintf(buf, 18, -+ "%02x:%02x:%02x:%02x:%02x:%02x", -+ if_mac[0], if_mac[1], if_mac[2], -+ if_mac[3], if_mac[4], if_mac[5]); -+ Key = buf; -+ break; -+ } -+ } -+ } -+ -+ freeifaddrs(ifaphead); -+ return Key; -+} -+ - #else - - #include Property changes on: head/games/scorched3d/files/patch-src-client-client-SecureID.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/games/scorched3d/files/patch-src__common__porting__windows.h =================================================================== --- head/games/scorched3d/files/patch-src__common__porting__windows.h (revision 417165) +++ head/games/scorched3d/files/patch-src__common__porting__windows.h (nonexistent) @@ -1,18 +0,0 @@ ---- src/common/porting/windows.h.orig 2008-03-03 03:47:36.000000000 +0900 -+++ src/common/porting/windows.h 2012-03-07 18:29:31.000000000 +0900 -@@ -9,6 +9,7 @@ - #include - #include - -+#if defined(_WIN32) - typedef char * LPSTR; - typedef const char * LPCTSTR; - typedef unsigned int DWORD; -@@ -27,6 +28,7 @@ - typedef int LRESULT; - typedef void * HDC; - typedef void * HGLRC; -+#endif - - #define _strnicmp(a,b,c) strncasecmp(a,b,c) - #define stricmp(a,b) strcasecmp(a,b) Property changes on: head/games/scorched3d/files/patch-src__common__porting__windows.h ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/games/scorched3d/files/patch-src__client__client__LoadPNG.cpp =================================================================== --- head/games/scorched3d/files/patch-src__client__client__LoadPNG.cpp (revision 417165) +++ head/games/scorched3d/files/patch-src__client__client__LoadPNG.cpp (nonexistent) @@ -1,63 +0,0 @@ ---- src/client/client/LoadPNG.cpp.orig 2010-08-16 08:26:36.000000000 +0900 -+++ src/client/client/LoadPNG.cpp 2012-03-07 19:25:24.000000000 +0900 -@@ -28,6 +28,8 @@ - int row, i; - volatile int ckey = -1; - png_color_16 *transv; -+ png_colorp png_palette; -+ int num_palette; - - if ( !src ) { - /* The error message has been set in SDL_RWFromFile */ -@@ -58,7 +60,7 @@ - * the normal method of doing things with libpng). REQUIRED unless you - * set up your own error handlers in png_create_read_struct() earlier. - */ -- if ( setjmp(png_ptr->jmpbuf) ) { -+ if ( setjmp(png_jmpbuf(png_ptr)) ) { - error = "Error reading the PNG file."; - goto done; - } -@@ -127,9 +129,9 @@ - Rmask = 0x000000FF; - Gmask = 0x0000FF00; - Bmask = 0x00FF0000; -- Amask = (info_ptr->channels == 4) ? 0xFF000000 : 0; -+ Amask = (png_get_channels(png_ptr, info_ptr) == 4) ? 0xFF000000 : 0; - } else { -- int s = (info_ptr->channels == 4) ? 0 : 8; -+ int s = (png_get_channels(png_ptr, info_ptr) == 4) ? 0 : 8; - Rmask = 0xFF000000 >> s; - Gmask = 0x00FF0000 >> s; - Bmask = 0x0000FF00 >> s; -@@ -137,7 +139,7 @@ - } - } - surface = SDL_AllocSurface(SDL_SWSURFACE, width, height, -- bit_depth*info_ptr->channels, Rmask,Gmask,Bmask,Amask); -+ bit_depth*png_get_channels(png_ptr, info_ptr), Rmask,Gmask,Bmask,Amask); - if ( surface == NULL ) { - error = "Out of memory"; - goto done; -@@ -185,12 +187,15 @@ - palette->colors[i].g = i; - palette->colors[i].b = i; - } -- } else if (info_ptr->num_palette > 0 ) { -- palette->ncolors = info_ptr->num_palette; -- for( i=0; inum_palette; ++i ) { -- palette->colors[i].b = info_ptr->palette[i].blue; -- palette->colors[i].g = info_ptr->palette[i].green; -- palette->colors[i].r = info_ptr->palette[i].red; -+ } else { -+ png_get_PLTE(png_ptr, info_ptr, &png_palette, &num_palette); -+ if (num_palette > 0 ) { -+ palette->ncolors = num_palette; -+ for( i=0; icolors[i].b = png_palette[i].blue; -+ palette->colors[i].g = png_palette[i].green; -+ palette->colors[i].r = png_palette[i].red; -+ } - } - } - } Property changes on: head/games/scorched3d/files/patch-src__client__client__LoadPNG.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/games/scorched3d/files/patch-src__common__image__ImagePngFactory.cpp =================================================================== --- head/games/scorched3d/files/patch-src__common__image__ImagePngFactory.cpp (revision 417165) +++ head/games/scorched3d/files/patch-src__common__image__ImagePngFactory.cpp (nonexistent) @@ -1,11 +0,0 @@ ---- src/common/image/ImagePngFactory.cpp.orig 2012-01-10 09:52:15.000000000 +0900 -+++ src/common/image/ImagePngFactory.cpp 2012-03-07 18:31:12.000000000 +0900 -@@ -62,7 +62,7 @@ - - static void user_png_error(png_structp png_ptr, png_const_charp msg) - { -- longjmp(png_ptr->jmpbuf,1); -+ longjmp(png_jmpbuf(png_ptr),1); - } - - static void user_png_warning(png_structp png_ptr, png_const_charp msg) Property changes on: head/games/scorched3d/files/patch-src__common__image__ImagePngFactory.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/games/scorched3d/files/patch-configure-al.m4 =================================================================== --- head/games/scorched3d/files/patch-configure-al.m4 (revision 417165) +++ head/games/scorched3d/files/patch-configure-al.m4 (revision 417166) @@ -1,125 +1,125 @@ ---- configure-al.m4.orig 2011-12-31 23:51:36.000000000 +0900 -+++ configure-al.m4 2012-03-08 02:09:57.000000000 +0900 +--- configure-al.m4.orig 2011-12-31 14:51:36 UTC ++++ configure-al.m4 @@ -1,118 +1,8 @@ dnl Checking for OpenAL -AC_ARG_WITH([openal-static], - AC_HELP_STRING([--with-openal-static], - [enable static linking for openal (default no)]), - [use_static_openal=${withval}],,) -AC_ARG_ENABLE(openaltest, - [ --disable-openaltest Do not try to compile and run a test OpenAL program], - , enable_openaltest=yes) -AC_MSG_CHECKING(for OpenAL support) -AC_PATH_PROG(OPENAL_CONFIG, openal-config, no) -if test x$OPENAL_CONFIG = xno; then - echo "The openal-config script installed by OpenAL could not be found" - echo "Make sure openal-config is in your path, or set the OPENAL_CONFIG" - echo "environment variable to the full path to openal-config." - echo "Trying pkg-config instead." - - AC_PATH_PROG(PKG_CONFIG, pkg-config, no) - if test x$PKG_CONFIG = xno; then - echo "The pkg-config script could not be found" - echo "Make sure pkg-config is in your path, or set the PKG_CONFIG" - echo "environment variable to the full path to pkg-config." - - AC_MSG_ERROR([*** Can't find the openal library. Try: http://www.openal.org/]) - else - OPENAL_CONFIG="$PKG_CONFIG openal"; - fi -fi - -if test x"$use_static_openal" = x"yes"; then - AL_LIBS="/usr/local/lib/libopenal.a" -else - AL_LIBS="`$OPENAL_CONFIG --libs`" -fi - -AL_CFLAGS="`$OPENAL_CONFIG --cflags`" - -AC_MSG_RESULT(yes) - -AC_MSG_CHECKING(for Freealut support) -AC_PATH_PROG(FREEALUT_CONFIG, freealut-config, no) -if test x$FREEALUT_CONFIG = xno; then - echo "*** Warning: The freealut-config script installed by OpenAL could not be found." - echo "*** The alut library is required, however some older OpenAL distribitions may include it." - echo "*** If Scorched3D fails to link check alut is in the link line." - echo "*** Alternatively, make sure freealut-config is in your path, or set the FREEALUT_CONFIG" - echo "*** environment variable to the full path to openal-config." -else - - AL_LIBS="$AL_LIBS `$FREEALUT_CONFIG --libs`" - AL_CFLAGS="$AL_CFLAGS `$FREEALUT_CONFIG --cflags`" - - AC_MSG_RESULT(yes) -fi - -AC_MSG_CHECKING(for OpenAL compilation) -if test "x$enable_openaltest" = "xyes" ; then - - ac_save_CFLAGS="$CFLAGS" - ac_save_LIBS="$LIBS" - CFLAGS="$CFLAGS $AL_CFLAGS" - LIBS="$AL_LIBS $LIBS" - - AC_TRY_COMPILE([ -#ifdef __APPLE__ - #include - #include -#else - #include - #include - #include -#endif - - ],[ - ],[ - have_openal=yes - ],[ - echo "*** Failed to compile using the OpenAL library." - echo "*** CFLAGS = $AL_CFLAGS"; - AC_MSG_ERROR([*** Check the OpenAL library is correctly installed.]) - ]) - - AC_TRY_LINK([ -#ifdef __APPLE__ - #include - #include -#else - #include - #include - #include -#endif - - int main(int argc, char *argv[]) - { - alutInit(argc, argv); - return 0; - } -#undef main -#define main K_and_R_C_main - - ],[ - ],[ - have_openal=yes - ],[ - echo "*** Compiled but failed to link using the OpenAL library." - echo "*** LIBS = $AL_LIBS"; - echo "*** Check the OpenAL library is on the LD_LIBRARY_PATH"; - AC_MSG_ERROR([*** Check the OpenAL library is correctly installed.]) - ]) - - CFLAGS="$ac_save_CFLAGS" - LIBS="$ac_save_LIBS" - - AC_MSG_RESULT(yes) -fi - +PKG_CHECK_MODULES([OPENAL], [openal]) +PKG_CHECK_MODULES([FREEALUT], [freealut]) +AL_CFLAGS="$OPENAL_CFLAGS $FREEALUT_CFLAGS" +AL_LIBS="$OPENAL_LIBS $FREEALUT_LIBS" AC_SUBST(AL_CFLAGS) AC_SUBST(AL_LIBS) Index: head/games/scorched3d/files/patch-src_client_GLEXT_GLFont2dFreeType.h =================================================================== --- head/games/scorched3d/files/patch-src_client_GLEXT_GLFont2dFreeType.h (revision 417165) +++ head/games/scorched3d/files/patch-src_client_GLEXT_GLFont2dFreeType.h (revision 417166) @@ -1,17 +1,17 @@ ---- src/client/GLEXT/GLFont2dFreeType.h.orig 2013-12-17 09:58:11.000000000 +0100 -+++ src/client/GLEXT/GLFont2dFreeType.h 2013-12-17 09:59:18.000000000 +0100 +--- src/client/GLEXT/GLFont2dFreeType.h.orig 2016-06-20 14:16:37 UTC ++++ src/client/GLEXT/GLFont2dFreeType.h @@ -23,10 +23,10 @@ #include #include -#include -#include -#include -#include +#include FT_FREETYPE_H +#include FT_GLYPH_H +#include FT_OUTLINE_H +#include FT_TRIGONOMETRY_H #include class GLFont2dFreeType Index: head/games/scorched3d/files/patch-src_client_client_LoadPNG.cpp =================================================================== --- head/games/scorched3d/files/patch-src_client_client_LoadPNG.cpp (nonexistent) +++ head/games/scorched3d/files/patch-src_client_client_LoadPNG.cpp (revision 417166) @@ -0,0 +1,63 @@ +--- src/client/client/LoadPNG.cpp.orig 2016-06-20 14:16:37 UTC ++++ src/client/client/LoadPNG.cpp +@@ -28,6 +28,8 @@ SDL_Surface *EXT_LoadPNG_RW(SDL_RWops *s + int row, i; + volatile int ckey = -1; + png_color_16 *transv; ++ png_colorp png_palette; ++ int num_palette; + + if ( !src ) { + /* The error message has been set in SDL_RWFromFile */ +@@ -58,7 +60,7 @@ SDL_Surface *EXT_LoadPNG_RW(SDL_RWops *s + * the normal method of doing things with libpng). REQUIRED unless you + * set up your own error handlers in png_create_read_struct() earlier. + */ +- if ( setjmp(png_ptr->jmpbuf) ) { ++ if ( setjmp(png_jmpbuf(png_ptr)) ) { + error = "Error reading the PNG file."; + goto done; + } +@@ -127,9 +129,9 @@ SDL_Surface *EXT_LoadPNG_RW(SDL_RWops *s + Rmask = 0x000000FF; + Gmask = 0x0000FF00; + Bmask = 0x00FF0000; +- Amask = (info_ptr->channels == 4) ? 0xFF000000 : 0; ++ Amask = (png_get_channels(png_ptr, info_ptr) == 4) ? 0xFF000000 : 0; + } else { +- int s = (info_ptr->channels == 4) ? 0 : 8; ++ int s = (png_get_channels(png_ptr, info_ptr) == 4) ? 0 : 8; + Rmask = 0xFF000000 >> s; + Gmask = 0x00FF0000 >> s; + Bmask = 0x0000FF00 >> s; +@@ -137,7 +139,7 @@ SDL_Surface *EXT_LoadPNG_RW(SDL_RWops *s + } + } + surface = SDL_AllocSurface(SDL_SWSURFACE, width, height, +- bit_depth*info_ptr->channels, Rmask,Gmask,Bmask,Amask); ++ bit_depth*png_get_channels(png_ptr, info_ptr), Rmask,Gmask,Bmask,Amask); + if ( surface == NULL ) { + error = "Out of memory"; + goto done; +@@ -185,12 +187,15 @@ SDL_Surface *EXT_LoadPNG_RW(SDL_RWops *s + palette->colors[i].g = i; + palette->colors[i].b = i; + } +- } else if (info_ptr->num_palette > 0 ) { +- palette->ncolors = info_ptr->num_palette; +- for( i=0; inum_palette; ++i ) { +- palette->colors[i].b = info_ptr->palette[i].blue; +- palette->colors[i].g = info_ptr->palette[i].green; +- palette->colors[i].r = info_ptr->palette[i].red; ++ } else { ++ png_get_PLTE(png_ptr, info_ptr, &png_palette, &num_palette); ++ if (num_palette > 0 ) { ++ palette->ncolors = num_palette; ++ for( i=0; icolors[i].b = png_palette[i].blue; ++ palette->colors[i].g = png_palette[i].green; ++ palette->colors[i].r = png_palette[i].red; ++ } + } + } + } Property changes on: head/games/scorched3d/files/patch-src_client_client_LoadPNG.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/games/scorched3d/files/patch-src_client_client_SecureID.cpp =================================================================== --- head/games/scorched3d/files/patch-src_client_client_SecureID.cpp (nonexistent) +++ head/games/scorched3d/files/patch-src_client_client_SecureID.cpp (revision 417166) @@ -0,0 +1,50 @@ +--- src/client/client/SecureID.cpp.orig 2016-06-20 14:16:37 UTC ++++ src/client/client/SecureID.cpp +@@ -71,6 +71,47 @@ std::string SecureID::GetPrivateKey(void + return result; + } + ++#elif defined(__FreeBSD__) ++ ++#include ++#include ++#include ++#include ++ ++std::string SecureID::GetPrivateKey(void) ++{ ++ std::string Key; ++ struct ifaddrs* ifaphead; ++ ++ if (getifaddrs(&ifaphead) != 0) ++ { ++ return ""; ++ } ++ ++ for (struct ifaddrs* ifap = ifaphead; ifap; ifap = ifap->ifa_next) ++ { ++ if (ifap->ifa_addr->sa_family == AF_LINK) ++ { ++ if (strncmp(ifap->ifa_name, "lo", 2) != 0) ++ { ++ struct sockaddr_dl* sdl = ++ (struct sockaddr_dl *)ifap->ifa_addr; ++ unsigned char* if_mac = (unsigned char*)LLADDR(sdl); ++ char buf[18]; ++ snprintf(buf, 18, ++ "%02x:%02x:%02x:%02x:%02x:%02x", ++ if_mac[0], if_mac[1], if_mac[2], ++ if_mac[3], if_mac[4], if_mac[5]); ++ Key = buf; ++ break; ++ } ++ } ++ } ++ ++ freeifaddrs(ifaphead); ++ return Key; ++} ++ + #else + + #include Property changes on: head/games/scorched3d/files/patch-src_client_client_SecureID.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/games/scorched3d/files/patch-src_common_image_ImagePngFactory.cpp =================================================================== --- head/games/scorched3d/files/patch-src_common_image_ImagePngFactory.cpp (nonexistent) +++ head/games/scorched3d/files/patch-src_common_image_ImagePngFactory.cpp (revision 417166) @@ -0,0 +1,11 @@ +--- src/common/image/ImagePngFactory.cpp.orig 2016-06-20 14:16:37 UTC ++++ src/common/image/ImagePngFactory.cpp +@@ -62,7 +62,7 @@ struct user_read_struct + + static void user_png_error(png_structp png_ptr, png_const_charp msg) + { +- longjmp(png_ptr->jmpbuf,1); ++ longjmp(png_jmpbuf(png_ptr),1); + } + + static void user_png_warning(png_structp png_ptr, png_const_charp msg) Property changes on: head/games/scorched3d/files/patch-src_common_image_ImagePngFactory.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/games/scorched3d/files/patch-src_common_porting_windows.h =================================================================== --- head/games/scorched3d/files/patch-src_common_porting_windows.h (nonexistent) +++ head/games/scorched3d/files/patch-src_common_porting_windows.h (revision 417166) @@ -0,0 +1,18 @@ +--- src/common/porting/windows.h.orig 2016-06-20 14:16:37 UTC ++++ src/common/porting/windows.h +@@ -9,6 +9,7 @@ + #include + #include + ++#if defined(_WIN32) + typedef char * LPSTR; + typedef const char * LPCTSTR; + typedef unsigned int DWORD; +@@ -27,6 +28,7 @@ typedef int LPARAM; + typedef int LRESULT; + typedef void * HDC; + typedef void * HGLRC; ++#endif + + #define _strnicmp(a,b,c) strncasecmp(a,b,c) + #define stricmp(a,b) strcasecmp(a,b) Property changes on: head/games/scorched3d/files/patch-src_common_porting_windows.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/games/scorched3d/files/patch-src_launcher_wxdialogs_TrueTypeFont.h =================================================================== --- head/games/scorched3d/files/patch-src_launcher_wxdialogs_TrueTypeFont.h (revision 417165) +++ head/games/scorched3d/files/patch-src_launcher_wxdialogs_TrueTypeFont.h (revision 417166) @@ -1,17 +1,17 @@ ---- src/launcher/wxdialogs/TrueTypeFont.h.orig 2013-12-17 10:01:02.000000000 +0100 -+++ src/launcher/wxdialogs/TrueTypeFont.h 2013-12-17 10:01:16.000000000 +0100 +--- src/launcher/wxdialogs/TrueTypeFont.h.orig 2016-06-20 14:16:37 UTC ++++ src/launcher/wxdialogs/TrueTypeFont.h @@ -25,10 +25,10 @@ #include #include #include -#include -#include -#include -#include +#include FT_FREETYPE_H +#include FT_GLYPH_H +#include FT_OUTLINE_H +#include FT_TRIGONOMETRY_H class TrueTypeFont { Index: head/graphics/c-a-i-r/Makefile =================================================================== --- head/graphics/c-a-i-r/Makefile (revision 417165) +++ head/graphics/c-a-i-r/Makefile (revision 417166) @@ -1,24 +1,25 @@ # Created by: buganini@gmail.com # $FreeBSD$ PORTNAME= c-a-i-r PORTVERSION= 2.19 CATEGORIES= graphics MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/CAIR%20v${PORTVERSION} DISTNAME= CAIR_v${PORTVERSION} MAINTAINER= buganini@gmail.com COMMENT= Content Aware Image Resizer is an implementation of seam carving -USES= gmake zip +USES= dos2unix gmake zip +DOS2UNIX_GLOB= *.cpp MAKE_ARGS+= CC="${CXX}" WRKSRC= ${WRKDIR} PLIST_FILES= bin/cair do-install: ${INSTALL_PROGRAM} ${WRKSRC}/cair ${STAGEDIR}${PREFIX}/bin .include Index: head/graphics/c-a-i-r/files/patch-CAIR.cpp =================================================================== --- head/graphics/c-a-i-r/files/patch-CAIR.cpp (revision 417165) +++ head/graphics/c-a-i-r/files/patch-CAIR.cpp (revision 417166) @@ -1,38 +1,38 @@ ---- CAIR.cpp.orig 2010-03-16 08:51:06.000000000 +0800 -+++ CAIR.cpp 2010-03-16 08:55:11.000000000 +0800 -@@ -276,7 +276,7 @@ - //Our thread function for the Grayscale - void * Gray_Quadrant( void * id ) - { -- int num = *((int *)id); -+ long int num = *((long int *)id); - - while( true ) - { -@@ -437,7 +437,7 @@ - //The thread function, splitting the image into strips - void * Edge_Quadrant( void * id ) - { -- int num = *((int *)id); -+ long int num = *((long int *)id); - - while( true ) - { -@@ -744,7 +744,7 @@ - //This works like Remove_Quadrant, strips across the image. - void * Add_Quadrant( void * id ) - { -- int num = *((int *)id); -+ long int num = *((long int *)id); - Thread_Params add_area; - - while( true ) -@@ -907,7 +907,7 @@ - //the areas are not quadrants, rather, more like strips, but I keep the name convention - void * Remove_Quadrant( void * id ) - { -- int num = *((int *)id); -+ long int num = *((long int *)id); - Thread_Params remove_area; - - while( true ) +--- CAIR.cpp.orig 2016-06-20 15:51:27 UTC ++++ CAIR.cpp +@@ -276,7 +276,7 @@ inline CML_byte Grayscale_Pixel( CML_RGB + //Our thread function for the Grayscale + void * Gray_Quadrant( void * id ) + { +- int num = *((int *)id); ++ long int num = *((long int *)id); + + while( true ) + { +@@ -437,7 +437,7 @@ int Convolve_Pixel( CML_image_ptr * Sour + //The thread function, splitting the image into strips + void * Edge_Quadrant( void * id ) + { +- int num = *((int *)id); ++ long int num = *((long int *)id); + + while( true ) + { +@@ -744,7 +744,7 @@ CML_RGBA Average_Pixels( CML_RGBA Pixel1 + //This works like Remove_Quadrant, strips across the image. + void * Add_Quadrant( void * id ) + { +- int num = *((int *)id); ++ long int num = *((long int *)id); + Thread_Params add_area; + + while( true ) +@@ -907,7 +907,7 @@ bool CAIR_Add( CML_image * Source, CML_i + //the areas are not quadrants, rather, more like strips, but I keep the name convention + void * Remove_Quadrant( void * id ) + { +- int num = *((int *)id); ++ long int num = *((long int *)id); + Thread_Params remove_area; + + while( true ) Index: head/graphics/picpuz/Makefile =================================================================== --- head/graphics/picpuz/Makefile (revision 417165) +++ head/graphics/picpuz/Makefile (revision 417166) @@ -1,30 +1,31 @@ # Created by: Stas Timokhin # $FreeBSD$ PORTNAME= picpuz PORTVERSION= 2.1.1 PORTREVISION= 5 CATEGORIES= graphics games MASTER_SITES= http://kornelix.squarespace.com/storage/downloads/ \ http://www.stasyan.com/devel/distfiles/ MAINTAINER= devel@stasyan.com COMMENT= Jigsaw puzzle program -USES= execinfo gmake pkgconfig +USES= dos2unix execinfo gmake pkgconfig +DOS2UNIX_GLOB= *.h USE_GNOME= gtk20 ALL_TARGET= # #RUN_DEPENDS+= xdg-desktop-menu:devel/xdg-utils DESKTOP_ENTRIES="Picpuz" \ "Jigsaw Puzzle" \ "${PREFIX}/share/pixmaps/picpuz.png" \ "picpuz" \ "Graphics;Game;GTK;" \ true post-install: (cd ${STAGEDIR}${PREFIX}/share/pixmaps && \ ${LN} -s ${DATADIR}/icons/picpuz.png .) .include Index: head/graphics/picpuz/files/patch-Makefile =================================================================== --- head/graphics/picpuz/files/patch-Makefile (revision 417165) +++ head/graphics/picpuz/files/patch-Makefile (revision 417166) @@ -1,54 +1,54 @@ ---- Makefile.orig 2009-10-29 09:38:40.000000000 +0100 -+++ Makefile 2014-02-18 19:19:51.140331100 +0100 -@@ -6,7 +6,7 @@ +--- Makefile.orig 2009-10-29 08:38:40 UTC ++++ Makefile +@@ -6,7 +6,7 @@ SOURCE = $(PROGRAM)-$(VERSION).cpp # replace CFLAGS and LFLAGS -O (oh) with -g for GDB debugging CFLAGS = -O -Wall -c `pkg-config --cflags gtk+-2.0` -LFLAGS = -O -Wall -rdynamic `pkg-config --libs gtk+-2.0 gthread-2.0` +LFLAGS = -O -Wall -rdynamic -lexecinfo `pkg-config --libs gtk+-2.0 gthread-2.0` # use $PREFIX if defined, else assume /usr/local ifeq "$(PREFIX)" "" -@@ -19,14 +19,14 @@ +@@ -19,14 +19,14 @@ DOCDIR = $(PREFIX)/share/doc/$(PROGRAM) DESKTOP = $(DATADIR)/kornelix-$(PROGRAM).desktop $(PROGRAM): $(PROGRAM).o zfuncs.o - @ g++ $(LFLAGS) -o $(PROGRAM) $(PROGRAM).o zfuncs.o + @ ${CXX} $(LFLAGS) -o $(PROGRAM) $(PROGRAM).o zfuncs.o $(PROGRAM).o: $(SOURCE) zfuncs.h - @ g++ $(CFLAGS) -o $(PROGRAM).o $(SOURCE) \ + @ ${CXX} $(CFLAGS) -o $(PROGRAM).o $(SOURCE) \ -D "DATADIR=\"$(DATADIR)\"" -D "DOCDIR=\"$(DOCDIR)\"" zfuncs.o: zfuncs.cpp zfuncs.h - @ g++ $(CFLAGS) zfuncs.cpp \ + @ ${CXX} $(CFLAGS) zfuncs.cpp \ -D "DATADIR=\"$(DATADIR)\"" -D "DOCDIR=\"$(DOCDIR)\"" -D "BINDIR=\"$(BINDIR)\"" install: $(PROGRAM) -@@ -39,15 +39,15 @@ +@@ -39,15 +39,15 @@ install: $(PROGRAM) cp $(PROGRAM) $(DESTDIR)$(BINDIR) cp -R locales/* $(DESTDIR)$(DATADIR)/locales # install .desktop file (menu entry) - @echo "[Desktop Entry]" > $(DESKTOP) - @echo "Name=$(PROGRAM)" >> $(DESKTOP) - @echo "Categories=Game" >> $(DESKTOP) - @echo "Type=Application" >> $(DESKTOP) - @echo "Terminal=false" >> $(DESKTOP) - @echo "Exec=$(BINDIR)/$(PROGRAM)" >> $(DESKTOP) - @echo "Icon=$(DATADIR)/icons/$(PROGRAM).png" >> $(DESKTOP) - @echo "GenericName=Jigsaw Puzzle" >> $(DESKTOP) - xdg-desktop-menu install $(DESKTOP) +# @echo "[Desktop Entry]" > $(DESKTOP) +# @echo "Name=$(PROGRAM)" >> $(DESKTOP) +# @echo "Categories=Game" >> $(DESKTOP) +# @echo "Type=Application" >> $(DESKTOP) +# @echo "Terminal=false" >> $(DESKTOP) +# @echo "Exec=$(BINDIR)/$(PROGRAM)" >> $(DESKTOP) +# @echo "Icon=$(DATADIR)/icons/$(PROGRAM).png" >> $(DESKTOP) +# @echo "GenericName=Jigsaw Puzzle" >> $(DESKTOP) +# xdg-desktop-menu install $(DESKTOP) uninstall: xdg-desktop-menu uninstall $(DESKTOP) Index: head/graphics/picpuz/files/patch-zfuncs.cpp =================================================================== --- head/graphics/picpuz/files/patch-zfuncs.cpp (revision 417165) +++ head/graphics/picpuz/files/patch-zfuncs.cpp (revision 417166) @@ -1,41 +1,41 @@ ---- zfuncs.cpp.orig 2009-10-29 08:38:40.000000000 +0000 -+++ zfuncs.cpp 2013-03-30 09:06:21.000000000 +0000 +--- zfuncs.cpp.orig 2009-10-29 08:38:40 UTC ++++ zfuncs.cpp @@ -23,6 +23,11 @@ // zfuncs.cpp version v.2.28 #include "zfuncs.h" +#ifdef __FreeBSD__ +#include +#include +#include +#endif /************************************************************************** system-level utility functions -@@ -236,7 +241,7 @@ +@@ -236,7 +241,7 @@ void synch_threads(int NT) // safely access parameters from multiple threads // limitation: one lock for any number of parameters -mutex zget_lock = PTHREAD_MUTEX_INITIALIZER; +mutex_tp zget_lock = PTHREAD_MUTEX_INITIALIZER; int zget_locked(int ¶m) // lock and return parameter { -@@ -2916,7 +2921,7 @@ +@@ -2916,7 +2921,7 @@ int initz_appfiles(const char *appname, strcpy(zicondir,zdatadir); strcat(zicondir,"/icons"); - pp = cuserid(0); + pp = getpwuid(geteuid())->pw_name; if (strEqu(pp,"root")) snprintf(zuserdir,199,"/root/.%s",zappname); // get /root/.appname else snprintf(zuserdir,199,"%s/.%s",getenv("HOME"),zappname); // or /home/user/.appname -@@ -3415,7 +3420,7 @@ +@@ -3415,7 +3420,7 @@ pthread_t tid_main = 0; pthread_t tids[tmax]; int tlocks[tmax]; int zinit = 0; -mutex zmutex; +mutex_tp zmutex; void zlockInit() // initz. call from main() { Index: head/graphics/picpuz/files/patch-zfuncs.h =================================================================== --- head/graphics/picpuz/files/patch-zfuncs.h (revision 417165) +++ head/graphics/picpuz/files/patch-zfuncs.h (revision 417166) @@ -1,223 +1,223 @@ ---- zfuncs.h.orig 2009-10-29 08:38:40.000000000 +0000 -+++ zfuncs.h 2013-03-30 09:03:57.000000000 +0000 +--- zfuncs.h.orig 2016-06-20 15:52:16 UTC ++++ zfuncs.h @@ -36,7 +36,201 @@ #include #include #include -#include +// inotify_local.h injected directly into zfuncs.h + +/* + * inotify_local.h - wrapping of libc features and kernel defines + * + * Copyright (C) 2005-2006 Kay Sievers + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation version 2 of the License. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 675 Mass Ave, Cambridge, MA 02139, USA. + * + */ + +#ifndef _INOTIFY_LOCAL_H_ +#define _INOTIFY_LOCAL_H_ + +#include +#include +#include + +/* needed until Inotify! syscalls reach glibc */ +#include +#ifndef __NR_inotify_init +#if defined(__i386__) +# define __NR_inotify_init 291 +# define __NR_inotify_add_watch 292 +# define __NR_inotify_rm_watch 293 +#elif defined(__x86_64__) +# define __NR_inotify_init 253 +# define __NR_inotify_add_watch 254 +# define __NR_inotify_rm_watch 255 +#elif defined(__powerpc__) || defined(__powerpc64__) +# define __NR_inotify_init 275 +# define __NR_inotify_add_watch 276 +# define __NR_inotify_rm_watch 277 +#elif defined (__ia64__) +# define __NR_inotify_init 1277 +# define __NR_inotify_add_watch 1278 +# define __NR_inotify_rm_watch 1279 +#elif defined (__s390__) +# define __NR_inotify_init 284 +# define __NR_inotify_add_watch 285 +# define __NR_inotify_rm_watch 286 +#elif defined (__mc68000__) +# define __NR_inotify_init 284 +# define __NR_inotify_add_watch 285 +# define __NR_inotify_rm_watch 286 +#elif defined (__alpha__) +# define __NR_inotify_init 444 +# define __NR_inotify_add_watch 445 +# define __NR_inotify_rm_watch 446 +#elif defined (__sparc__) || defined (__sparc64__) +# define __NR_inotify_init 151 +# define __NR_inotify_add_watch 152 +# define __NR_inotify_rm_watch 156 +#elif defined (__arm__) +# define __NR_inotify_init __NR_SYSCALL_BASE+316 +# define __NR_inotify_add_watch __NR_SYSCALL_BASE+317 +# define __NR_inotify_rm_watch __NR_SYSCALL_BASE+318 +#elif defined (__sh__) +# define __NR_inotify_init 290 +# define __NR_inotify_add_watch 291 +# define __NR_inotify_rm_watch 292 +#elif defined (__m32r__) +# define __NR_inotify_init 290 +# define __NR_inotify_add_watch 291 +# define __NR_inotify_rm_watch 292 +#elif defined (__hppa__) +# define __NR_inotify_init 269 +# define __NR_inotify_add_watch 270 +# define __NR_inotify_rm_watch 271 +#elif defined (__mips__) +# include +# if _MIPS_SIM == _MIPS_SIM_ABI32 +# define __NR_Linux 4000 +# define __NR_inotify_init (__NR_Linux + 284) +# define __NR_inotify_add_watch (__NR_Linux + 285) +# define __NR_inotify_rm_watch (__NR_Linux + 286) +# elif _MIPS_SIM == _MIPS_SIM_ABI64 +# define __NR_Linux 5000 +# define __NR_inotify_init (__NR_Linux + 243) +# define __NR_inotify_add_watch (__NR_Linux + 244) +# define __NR_inotify_rm_watch (__NR_Linux + 245) +# elif _MIPS_SIM == _MIPS_SIM_NABI32 +# define __NR_Linux 6000 +# define __NR_inotify_init (__NR_Linux + 247) +# define __NR_inotify_add_watch (__NR_Linux + 248) +# define __NR_inotify_rm_watch (__NR_Linux + 249) +# endif +#else +# warning "inotify unsupported on this architecture!" +#endif +#endif /* __NR_inotify_init */ + +/* dummy if we don't have the syscalls defined */ +#ifndef __NR_inotify_init +static inline int inotify_init(void) +{ + return -1; +} + +static inline int inotify_add_watch(int fd, const char *name, uint32_t mask) +{ + return -1; +} + +static inline int inotify_rm_watch(int fd, uint32_t wd) +{ + return -1; +} +#else +static inline int inotify_init(void) +{ + return syscall(__NR_inotify_init); +} + +static inline int inotify_add_watch(int fd, const char *name, uint32_t mask) +{ + return syscall(__NR_inotify_add_watch, fd, name, mask); +} + +static inline int inotify_rm_watch(int fd, uint32_t wd) +{ + return syscall(__NR_inotify_rm_watch, fd, wd); +} +#endif /* __NR_inotify_init */ + +#ifndef IN_CREATE +#define IN_CREATE 0x00000100 /* Subfile was created */ +#define IN_MOVED_FROM 0x00000040 /* File was moved from X */ +#define IN_MOVED_TO 0x00000080 /* File was moved to Y */ +#define IN_DELETE 0x00000200 /* Subfile was deleted */ +#define IN_CLOSE_WRITE 0x00000008 /* Writtable file was closed */ +#define IN_MOVE (IN_MOVED_FROM | IN_MOVED_TO) /* moves */ +#endif /* IN_CREATE */ + +struct inotify_event { + int wd; + uint32_t mask; + uint32_t cookie; + uint32_t len; + char *name; +}; + +/* the following are legal, implemented events that user-space can watch for */ +#define IN_ACCESS 0x00000001 /* File was accessed */ +#define IN_MODIFY 0x00000002 /* File was modified */ +#define IN_ATTRIB 0x00000004 /* Metadata changed */ +#define IN_CLOSE_WRITE 0x00000008 /* Writtable file was closed */ +#define IN_CLOSE_NOWRITE 0x00000010 /* Unwrittable file closed */ +#define IN_OPEN 0x00000020 /* File was opened */ +#define IN_MOVED_FROM 0x00000040 /* File was moved from X */ +#define IN_MOVED_TO 0x00000080 /* File was moved to Y */ +#define IN_CREATE 0x00000100 /* Subfile was created */ +#define IN_DELETE 0x00000200 /* Subfile was deleted */ +#define IN_DELETE_SELF 0x00000400 /* Self was deleted */ +#define IN_MOVE_SELF 0x00000800 /* Self was moved */ + +/* the following are legal events. they are sent as needed to any watch */ +#define IN_UNMOUNT 0x00002000 /* Backing fs was unmounted */ +#define IN_Q_OVERFLOW 0x00004000 /* Event queued overflowed */ +#define IN_IGNORED 0x00008000 /* File was ignored */ + +/* helper events */ +#define IN_CLOSE (IN_CLOSE_WRITE | IN_CLOSE_NOWRITE) /* close */ +#define IN_MOVE (IN_MOVED_FROM | IN_MOVED_TO) /* moves */ + +/* special flags */ +#define IN_ONLYDIR 0x01000000 /* only watch the path if it is a directory */ +#define IN_DONT_FOLLOW 0x02000000 /* don't follow a sym link */ +#define IN_MASK_ADD 0x20000000 /* add to the mask of an already existing watch */ +#define IN_ISDIR 0x40000000 /* event occurred against dir */ +#define IN_ONESHOT 0x80000000 /* only send event once */ + +/* + * All of the events - we build the list by hand so that we can add flags in + * the future and not break backward compatibility. Apps will get only the + * events that they originally wanted. Be sure to add new events here! + */ +#define IN_ALL_EVENTS (IN_ACCESS | IN_MODIFY | IN_ATTRIB | IN_CLOSE_WRITE | \ + IN_CLOSE_NOWRITE | IN_OPEN | IN_MOVED_FROM | \ + IN_MOVED_TO | IN_DELETE | IN_CREATE | IN_DELETE_SELF | \ + IN_MOVE_SELF) + +#endif /* _INOTIFY_LOCAL_H_ */ + #define int8 char // number types #define int16 short @@ -52,7 +246,7 @@ #define wstrerror(err) strerror(WEXITSTATUS(err)) // get text status for child process -#define mutex pthread_mutex_t // abbreviations +#define mutex_tp pthread_mutex_t // abbreviations #define mutex_init pthread_mutex_init #define mutex_lock pthread_mutex_lock #define mutex_trylock pthread_mutex_trylock -@@ -495,7 +689,7 @@ +@@ -495,7 +689,7 @@ class Queue { - char wmi[8]; - Vxstring * vd; // vector of xstrings -- mutex qmutex; // for multi-thread access -+ mutex_tp qmutex; // for multi-thread access + char wmi[8]; + Vxstring * vd; // vector of xstrings +- mutex qmutex; // for multi-thread access ++ mutex_tp qmutex; // for multi-thread access int qcap; // queue capacity - int qcount; // curr. queue count - int ent1; // first entry pointer + int qcount; // curr. queue count + int ent1; // first entry pointer Index: head/graphics/seam-carving-gui/Makefile =================================================================== --- head/graphics/seam-carving-gui/Makefile (revision 417165) +++ head/graphics/seam-carving-gui/Makefile (revision 417166) @@ -1,24 +1,25 @@ # Created by: buganini@gmail.com # $FreeBSD$ PORTNAME= seam-carving-gui PORTVERSION= 1.11 PORTREVISION= 2 CATEGORIES= graphics MASTER_SITES= GOOGLE_CODE DISTNAME= SeamCarvingGui-Src-${PORTVERSION} MAINTAINER= buganini@gmail.com COMMENT= The Seam Carving GUI is a GUI front end to CAIR -USES= gmake qmake +USES= dos2unix gmake qmake +DOS2UNIX_GLOB= *.cpp USE_QT4= gui imageformats_run moc_build uic_build WRKSRC= ${WRKDIR}/Src\ Seam\ Carving\ GUI\ ${PORTVERSION} PLIST_FILES= bin/SeamCarvingGui do-install: ${INSTALL_SCRIPT} ${WRKSRC}/SeamCarvingGui ${STAGEDIR}${PREFIX}/bin .include Index: head/graphics/seam-carving-gui/files/patch-cair_CAIR.cpp =================================================================== --- head/graphics/seam-carving-gui/files/patch-cair_CAIR.cpp (revision 417165) +++ head/graphics/seam-carving-gui/files/patch-cair_CAIR.cpp (revision 417166) @@ -1,38 +1,38 @@ ---- cair/CAIR.cpp.orig 2010-02-28 16:44:47.000000000 +0800 -+++ cair/CAIR.cpp 2010-02-28 16:45:32.000000000 +0800 -@@ -276,7 +276,7 @@ - //Our thread function for the Grayscale - void * Gray_Quadrant( void * id ) - { -- int num = *((int *)id); -+ long int num = *((long int *)id); - - while( true ) - { -@@ -437,7 +437,7 @@ - //The thread function, splitting the image into strips - void * Edge_Quadrant( void * id ) - { -- int num = *((int *)id); -+ long int num = *((long int *)id); - - while( true ) - { -@@ -744,7 +744,7 @@ - //This works like Remove_Quadrant, strips across the image. - void * Add_Quadrant( void * id ) - { -- int num = *((int *)id); -+ long int num = *((long int *)id); - Thread_Params add_area; - - while( true ) -@@ -907,7 +907,7 @@ - //the areas are not quadrants, rather, more like strips, but I keep the name convention - void * Remove_Quadrant( void * id ) - { -- int num = *((int *)id); -+ long int num = *((long int *)id); - Thread_Params remove_area; - - while( true ) +--- cair/CAIR.cpp.orig 2016-06-20 15:53:24 UTC ++++ cair/CAIR.cpp +@@ -276,7 +276,7 @@ inline CML_byte Grayscale_Pixel( CML_RGB + //Our thread function for the Grayscale + void * Gray_Quadrant( void * id ) + { +- int num = *((int *)id); ++ long int num = *((long int *)id); + + while( true ) + { +@@ -437,7 +437,7 @@ int Convolve_Pixel( CML_image_ptr * Sour + //The thread function, splitting the image into strips + void * Edge_Quadrant( void * id ) + { +- int num = *((int *)id); ++ long int num = *((long int *)id); + + while( true ) + { +@@ -744,7 +744,7 @@ CML_RGBA Average_Pixels( CML_RGBA Pixel1 + //This works like Remove_Quadrant, strips across the image. + void * Add_Quadrant( void * id ) + { +- int num = *((int *)id); ++ long int num = *((long int *)id); + Thread_Params add_area; + + while( true ) +@@ -907,7 +907,7 @@ bool CAIR_Add( CML_image * Source, CML_i + //the areas are not quadrants, rather, more like strips, but I keep the name convention + void * Remove_Quadrant( void * id ) + { +- int num = *((int *)id); ++ long int num = *((long int *)id); + Thread_Params remove_area; + + while( true ) Index: head/irc/psybnc/Makefile =================================================================== --- head/irc/psybnc/Makefile (revision 417165) +++ head/irc/psybnc/Makefile (revision 417166) @@ -1,68 +1,70 @@ # Created by: Mina Naguib # $FreeBSD$ PORTNAME= psybnc DISTVERSION= 2.3.2-9 PORTREVISION= 2 CATEGORIES= irc ipv6 MASTER_SITES= http://www.psybnc.at/download/beta/ DISTNAME= psyBNC-${DISTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Powerful IRC bouncer LICENSE= GPLv1+ # though COPYING is GPLv2 BROKEN_powerpc64= Does not build USE_OPENSSL= yes +USES= dos2unix +DOS2UNIX_GLOB= *.c *.h WRKSRC= ${WRKDIR}/psybnc PSYBASE?= ${PREFIX}/psybnc MAKE_ARGS= PSYBASE=${PSYBASE} SUB_FILES= pkg-message SUB_LIST= PSYBASE=${PSYBASE} PLIST_SUB= PSYBASE=${PSYBASE:S,^${PREFIX}/,,} OPTIONS_DEFINE= MENUCONFIG MENUCONFIG_DESC=Configure using menu .include .if ${PORT_OPTIONS:MMENUCONFIG} IS_INTERACTIVE= yes .endif post-patch: @${REINPLACE_CMD} -e 's#=help/#=${PSYBASE}/help/#' ${WRKSRC}/lang/* .if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000024 @${REINPLACE_CMD} -e 's,gcc,clang -Wno-return-type,g' ${WRKSRC}/Makefile @${REINPLACE_CMD} -e 's,gcc,clang -Wno-return-type,g' ${WRKSRC}/tools/autoconf.c .endif do-configure: .if ${PORT_OPTIONS:MMENUCONFIG} cd ${WRKSRC} && make menuconfig .else # Fool makefile.out into believing certs are unnecessary ${TOUCH} ${WRKSRC}/key/psybnc.cert.pem .endif do-install: ${INSTALL} -d ${STAGEDIR}${PSYBASE}/lang/ ${STAGEDIR}${PSYBASE}/key/ ${STAGEDIR}${PSYBASE}/help/ ${INSTALL_DATA} ${WRKSRC}/lang/INFO ${STAGEDIR}${PSYBASE}/lang/ ${INSTALL_DATA} ${WRKSRC}/lang/*.lng ${STAGEDIR}${PSYBASE}/lang/ ${INSTALL_DATA} ${WRKSRC}/src/ssl.cnf ${STAGEDIR}${PSYBASE}/key/ ${INSTALL_DATA} ${WRKSRC}/help/*.TXT ${STAGEDIR}${PSYBASE}/help/ ${INSTALL_DATA} ${WRKSRC}/help/*.DEU ${STAGEDIR}${PSYBASE}/help/ ${INSTALL_DATA} ${WRKSRC}/help/*.ITA ${STAGEDIR}${PSYBASE}/help/ ${INSTALL_PROGRAM} ${WRKSRC}/psybnc ${STAGEDIR}${PREFIX}/bin/ ${INSTALL_DATA} ${WRKSRC}/psybnc.conf ${STAGEDIR}${PREFIX}/etc/psybnc.conf.sample post-install: if [ -f ${WRKSRC}/key/psybnc.req.pem ]; then \ ${INSTALL_DATA} ${WRKSRC}/key/psybnc.cert.pem ${STAGEDIR}${PSYBASE}/key/; \ ${INSTALL_DATA} ${WRKSRC}/key/psybnc.key.pem ${STAGEDIR}${PSYBASE}/key/; \ ${INSTALL_DATA} ${WRKSRC}/key/psybnc.req.pem ${STAGEDIR}${PSYBASE}/key/; \ fi .include Index: head/irc/psybnc/files/patch-src_p_idea.c =================================================================== --- head/irc/psybnc/files/patch-src_p_idea.c (revision 417165) +++ head/irc/psybnc/files/patch-src_p_idea.c (nonexistent) @@ -1,22 +0,0 @@ -diff -urN src/p_idea.c psybnc.new/src/p_idea.c ---- src/p_idea.c 2005-06-04 22:22:45.000000000 +0400 -+++ src/p_idea.c 2008-02-25 23:44:12.000000000 +0300 -@@ -50,6 +50,9 @@ - * string encryption by psychoid - */ - -+ -+#include -+/* - #include - #include - #include -@@ -62,7 +65,7 @@ - - #define pcontext { strmncpy(ctxt,__FILE__,sizeof(ctxt));strmncpy(cfunc,__FUNCTION__,sizeof(cfunc)); cline=__LINE__; } - #define pmalloc(n) __pmalloc((n),__FILE__,__FUNCTION__,__LINE__) -- -+*/ - #ifdef CRYPT - - #define IDEAROUNDS 8 Property changes on: head/irc/psybnc/files/patch-src_p_idea.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/irc/psybnc/files/patch-src_p_memory.c =================================================================== --- head/irc/psybnc/files/patch-src_p_memory.c (revision 417165) +++ head/irc/psybnc/files/patch-src_p_memory.c (nonexistent) @@ -1,34 +0,0 @@ -diff -urN src/p_memory.c psybnc.new/src/p_memory.c ---- src/p_memory.c 2005-06-04 22:22:45.000000000 +0400 -+++ src/p_memory.c 2008-02-25 23:31:29.000000000 +0300 -@@ -32,10 +32,10 @@ - - /* malloc-wrapper. No memory will log an error entry and kill the bouncer */ - --unsigned long *__pmalloc(unsigned long size,char *module,char *function, int line) -+char *__pmalloc(unsigned long size,char *module,char *function, int line) - { -- unsigned long *rc; -- if (!(rc=(unsigned long *)malloc(size))) -+ char *rc; -+ if (!(rc=(char *)malloc(size))) - { - p_log(LOG_ERROR,-1,lngtxt(602),module,function,line); - exit(0x0); -@@ -53,7 +53,7 @@ - return rc; - } - --void _pfree(unsigned long *pointer, char *module, char *function, int line) -+void _pfree(char *pointer, char *module, char *function, int line) - { - #ifdef LOGALLOC - if(logm==NULL) -@@ -67,7 +67,7 @@ - free(pointer); - } - --#define free(a) _pfree((void *)a,__FILE__,__FUNCTION__,__LINE__) -+#define free(a) _pfree((void *)a,__FILE__,(char*)__FUNCTION__,__LINE__) - - /* struct wrappers. Those alloc, delete and return the needed structures */ Property changes on: head/irc/psybnc/files/patch-src_p_memory.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/irc/psybnc/files/patch-src_p_string.c =================================================================== --- head/irc/psybnc/files/patch-src_p_string.c (revision 417165) +++ head/irc/psybnc/files/patch-src_p_string.c (nonexistent) @@ -1,12 +0,0 @@ - #ifndef SSLSEC ---- ./src/p_string.c Fri Jul 19 09:01:52 2002 -+++ ../../psybnc.mina/src/p_string.c Sun Nov 24 17:58:56 2002 -@@ -613,7 +613,7 @@ - int msg; - pcontext; - clearlanguage(); -- ap_snprintf(lfname,sizeof(lfname),"lang/%s.lng",langf); -+ ap_snprintf(lfname,sizeof(lfname),"%s/lang/%s.lng",PSYBASE, langf); - maxindex=0; - langname[0]=0; - lfile=fopen(lfname,"r"); Property changes on: head/irc/psybnc/files/patch-src_p_string.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/irc/psybnc/files/patch-src_p_global.h =================================================================== --- head/irc/psybnc/files/patch-src_p_global.h (revision 417165) +++ head/irc/psybnc/files/patch-src_p_global.h (nonexistent) @@ -1,36 +0,0 @@ ---- ./src/p_global.h Sun Jul 7 08:07:23 2002 -+++ ../../psybnc.mina/src/p_global.h Sun Nov 24 18:20:55 2002 -@@ -1264,8 +1264,8 @@ - #define pcontext { strmncpy(ctxt,__FILE__,sizeof(ctxt)); strmncpy(cfunc,__FUNCTION__,sizeof(cfunc)); cline=__LINE__; } - #define pmalloc(n) __pmalloc((n),__FILE__,__FUNCTION__,__LINE__) - --#define SSLCERT "key/psybnc.cert.pem" --#define SSLKEY "key/psybnc.key.pem" -+#define SSLCERT PSYBASE "/key/psybnc.cert.pem" -+#define SSLKEY PSYBASE "/key/psybnc.key.pem" - - #ifdef HAVE_SSL - #ifndef SSLSEC -diff -urN src/p_global.h psybnc.new/src/p_global.h ---- src/p_global.h 2005-06-04 22:22:45.000000000 +0400 -+++ src/p_global.h 2008-02-25 23:36:21.000000000 +0300 -@@ -972,7 +972,7 @@ - #endif - - #ifndef P_MEMORY --unsigned long *__pmalloc(unsigned long size,char *module,char *function,int line); -+char *__pmalloc(unsigned long size,char *module,char *function,int line); - void _pfree(void * pointer,char *module, char *function, int line); - struct usert *user(int usern); - struct newpeert *newpeer(int usern); -@@ -1267,8 +1267,8 @@ - - #endif - --#define pcontext { strmncpy(ctxt,__FILE__,sizeof(ctxt)); strmncpy(cfunc,__FUNCTION__,sizeof(cfunc)); cline=__LINE__; } --#define pmalloc(n) __pmalloc((n),__FILE__,__FUNCTION__,__LINE__) -+#define pcontext { strmncpy(ctxt,__FILE__,sizeof(ctxt)); strmncpy(cfunc,(char*)__FUNCTION__,sizeof(cfunc)); cline=__LINE__; } -+#define pmalloc(n) __pmalloc((n),__FILE__,(char*)__FUNCTION__,(int)__LINE__) - - #define SSLCERT "key/psybnc.cert.pem" - #define SSLKEY "key/psybnc.key.pem" Property changes on: head/irc/psybnc/files/patch-src_p_global.h ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/irc/psybnc/files/patch-src_p_blowfish.c =================================================================== --- head/irc/psybnc/files/patch-src_p_blowfish.c (revision 417165) +++ head/irc/psybnc/files/patch-src_p_blowfish.c (nonexistent) @@ -1,38 +0,0 @@ ---- src/p_blowfish.c 2005-06-04 22:22:45.000000000 +0400 -+++ src/p_blowfish.c 2008-02-25 23:42:07.000000000 +0300 -@@ -27,16 +27,21 @@ - static char rcsid[] = "@(#)$Id: p_blowfish.c,v 1.3 2005/06/04 18:00:14 hisi Exp $"; - #endif - -+#include -+/* - #include - #include - #include - - char *strmncpy(char *dest, char *source, size_t len); - char *lngtxt(int msgnum); -+*/ - -+/* - #define pcontext { strmncpy(ctxt,__FILE__,sizeof(ctxt));strmncpy(cfunc,__FUNCTION__,sizeof(cfunc)); cline=__LINE__; } - #define pmalloc(n) __pmalloc((n),__FILE__,__FUNCTION__,__LINE__) - #define free(n) _pfree(n,__FILE__,__FUNCTION__,__LINE__) -+*/ - - unsigned char *hashstring(unsigned char *str,int len); - unsigned char *unhashstring(unsigned char *str); -@@ -478,10 +483,11 @@ - char *p, *s, *dest, *d, *pt; - char rim[5],ep[5],rep[5]; - int i; -- dest = (char *) pmalloc((strlen(str) + 9) * 2); -+ dest = __pmalloc((strlen(str) + 9) * 2, "p_blowfish.c", "BLOWencrypt", 481); -+ dest = pmalloc((strlen(str) + 9) * 2); - *dest=0; - /* pad fake string with 8 bytes to make sure there's enough */ -- s = (char *) pmalloc(strlen(str) + 9); -+ s = pmalloc(strlen(str) + 9); - strcpy(s, str); - p = s; - while (*p) Property changes on: head/irc/psybnc/files/patch-src_p_blowfish.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/irc/psybnc/files/patch-Makefile =================================================================== --- head/irc/psybnc/files/patch-Makefile (revision 417165) +++ head/irc/psybnc/files/patch-Makefile (revision 417166) @@ -1,29 +1,29 @@ ---- ./Makefile Sun Jul 7 18:09:25 2002 -+++ ../../psybnc.mina/Makefile Sun Nov 24 19:41:57 2002 -@@ -7,7 +7,7 @@ +--- Makefile.orig 2007-03-20 14:02:50 UTC ++++ Makefile +@@ -7,7 +7,7 @@ all: $(OBJS) @$(CC) tools/convconf.c -o tools/convconf @tools/convconf @echo [*] Running Autoconfig. - @$(CC) -I. tools/autoconf.c -o tools/autoconf + @$(CC) -I. tools/autoconf.c -o tools/autoconf -DPSYBASE=\"$(PSYBASE)\" -DPREFIX=\"$(PREFIX)\" @tools/autoconf @echo [*] Compiling MakeSalt for Encryption.. @$(CC) -I. -o makesalt tools/makesalt.c -@@ -23,7 +23,7 @@ +@@ -23,7 +23,7 @@ menuconfig: @$(CC) tools/convconf.c -o tools/convconf @tools/convconf @echo [*] Running Autoconfig. - @$(CC) -I. tools/autoconf.c -o tools/autoconf + @$(CC) -I. tools/autoconf.c -o tools/autoconf -DPSYBASE=\"$(PSYBASE)\" -DPREFIX=\"$(PREFIX)\" @tools/autoconf @echo [*] Creating Menu, please wait. @echo This needs the 'ncurses' library. If it is not available, menuconf wont work. If you are using 'curses', use make menuconfig-curses instead. -@@ -39,7 +39,7 @@ +@@ -39,7 +39,7 @@ menuconfig-curses: @$(CC) tools/convconf.c -o tools/convconf @tools/convconf @echo [*] Running Autoconfig. - @$(CC) -I. tools/autoconf.c -o tools/autoconf + @$(CC) -I. tools/autoconf.c -o tools/autoconf -DPSYBASE=\"$(PSYBASE)\" -DPREFIX=\"$(PREFIX)\" @tools/autoconf @echo [*] Creating Menu, please wait. @echo This needs the 'curses' library. If it is not available, menuconf wont work. Index: head/irc/psybnc/files/patch-lang_english.lng =================================================================== --- head/irc/psybnc/files/patch-lang_english.lng (revision 417165) +++ head/irc/psybnc/files/patch-lang_english.lng (revision 417166) @@ -1,11 +1,11 @@ ---- ./lang/english.lng Sat Jun 1 18:07:47 2002 -+++ ../../psybnc.mina/lang/english.lng Sun Nov 24 19:14:01 2002 -@@ -1998,7 +1998,7 @@ +--- lang/english.lng.orig 2008-10-22 19:09:46 UTC ++++ lang/english.lng +@@ -1999,7 +1999,7 @@ msg0994=SYSTEM ; psybnc.c line 201: msg0995=PORT1 ; psybnc.c line 203: -msg0996=No Listenports/-hosts defined.ÿRun either 'make menuconfig' to setupÿor add:ÿPSYBNC.SYSTEM.PORT1=yourportÿandÿPSYBNC.SYSTEM.HOST1=*ÿto the psybnc.confÿ +msg0996=No Listenports/-hosts defined.ÿAdd:ÿPSYBNC.SYSTEM.PORT1=yourportÿandÿPSYBNC.SYSTEM.HOST1=*ÿto the psybnc.confÿ ; psybnc.c line 207: msg0997=SYSTEM ; psybnc.c line 212: Index: head/irc/psybnc/files/patch-lang_german.lng =================================================================== --- head/irc/psybnc/files/patch-lang_german.lng (revision 417165) +++ head/irc/psybnc/files/patch-lang_german.lng (revision 417166) @@ -1,11 +1,11 @@ ---- ./lang/german.lng Sat Jun 1 18:08:01 2002 -+++ ../../psybnc.mina/lang/german.lng Sun Nov 24 19:14:22 2002 -@@ -2003,7 +2003,7 @@ +--- lang/german.lng.orig 2008-10-22 19:10:34 UTC ++++ lang/german.lng +@@ -2004,7 +2004,7 @@ msg0994=SYSTEM ; psybnc.c line 201: msg0995=PORT1 ; psybnc.c line 203: -msg0996=Keine Listen-Ports definiert.ÿStarte 'make menuconfig' ÿoder fuege:ÿPSYBNC.SYSTEM.PORT1=deinportÿundÿPSYBNC.SYSTEM.HOST1=*ÿzur psybnc.conf hinzuÿ +msg0996=Keine Listen-Ports definiert.ÿFuege:ÿPSYBNC.SYSTEM.PORT1=deinportÿundÿPSYBNC.SYSTEM.HOST1=*ÿzur psybnc.conf hinzuÿ ; psybnc.c line 207: msg0997=SYSTEM ; psybnc.c line 212: Index: head/irc/psybnc/files/patch-lang_italiano.lng =================================================================== --- head/irc/psybnc/files/patch-lang_italiano.lng (revision 417165) +++ head/irc/psybnc/files/patch-lang_italiano.lng (revision 417166) @@ -1,11 +1,11 @@ ---- ./lang/italiano.lng Sat Jun 1 18:08:25 2002 -+++ ../../psybnc.mina/lang/italiano.lng Sun Nov 24 19:14:44 2002 -@@ -1998,7 +1998,7 @@ +--- lang/italiano.lng.orig 2008-10-22 19:10:54 UTC ++++ lang/italiano.lng +@@ -1999,7 +1999,7 @@ msg0994=SYSTEM ; psybnc.c line 201: msg0995=PORT1 ; psybnc.c line 203: -msg0996=Nessuna porta/host di listening definite.ÿEsegui 'make menuconfig' per il setupÿoppure aggiungi:ÿPSYBNC.SYSTEM.PORT1=tuaportaÿeÿPSYBNC.SYSTEM.HOST1=*ÿal file psybnc.confÿ +msg0996=Nessuna porta/host di listening definite.ÿAggiungi:ÿPSYBNC.SYSTEM.PORT1=tuaportaÿeÿPSYBNC.SYSTEM.HOST1=*ÿal file psybnc.confÿ ; psybnc.c line 207: msg0997=SYSTEM ; psybnc.c line 212: Index: head/irc/psybnc/files/patch-src_match.c =================================================================== --- head/irc/psybnc/files/patch-src_match.c (revision 417165) +++ head/irc/psybnc/files/patch-src_match.c (revision 417166) @@ -1,11 +1,10 @@ -diff -Naurp src/match.c src/match.c ---- src/match.c 2007-02-26 12:26:10.000000000 +0000 -+++ src/match.c 2007-02-26 12:26:17.000000000 +0000 +--- src/match.c.orig 2016-06-20 14:41:27 UTC ++++ src/match.c @@ -36,6 +36,7 @@ /* Remove the next line to use this in IrcII */ #define EGGDROP +#include /* =================================================================== * Best to leave stuff after this point alone, but go on and change Index: head/irc/psybnc/files/patch-src_p__blowfish.c =================================================================== --- head/irc/psybnc/files/patch-src_p__blowfish.c (nonexistent) +++ head/irc/psybnc/files/patch-src_p__blowfish.c (revision 417166) @@ -0,0 +1,38 @@ +--- src/p_blowfish.c.orig 2016-06-20 14:41:27 UTC ++++ src/p_blowfish.c +@@ -27,16 +27,21 @@ + static char rcsid[] = "@(#)$Id: p_blowfish.c,v 1.3 2005/06/04 18:00:14 hisi Exp $"; + #endif + ++#include ++/* + #include + #include + #include + + char *strmncpy(char *dest, char *source, size_t len); + char *lngtxt(int msgnum); ++*/ + ++/* + #define pcontext { strmncpy(ctxt,__FILE__,sizeof(ctxt));strmncpy(cfunc,__FUNCTION__,sizeof(cfunc)); cline=__LINE__; } + #define pmalloc(n) __pmalloc((n),__FILE__,__FUNCTION__,__LINE__) + #define free(n) _pfree(n,__FILE__,__FUNCTION__,__LINE__) ++*/ + + unsigned char *hashstring(unsigned char *str,int len); + unsigned char *unhashstring(unsigned char *str); +@@ -478,10 +483,11 @@ char * BLOWencrypt(unsigned char *str) + char *p, *s, *dest, *d, *pt; + char rim[5],ep[5],rep[5]; + int i; +- dest = (char *) pmalloc((strlen(str) + 9) * 2); ++ dest = __pmalloc((strlen(str) + 9) * 2, "p_blowfish.c", "BLOWencrypt", 481); ++ dest = pmalloc((strlen(str) + 9) * 2); + *dest=0; + /* pad fake string with 8 bytes to make sure there's enough */ +- s = (char *) pmalloc(strlen(str) + 9); ++ s = pmalloc(strlen(str) + 9); + strcpy(s, str); + p = s; + while (*p) Property changes on: head/irc/psybnc/files/patch-src_p__blowfish.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/irc/psybnc/files/patch-src_p__global.h =================================================================== --- head/irc/psybnc/files/patch-src_p__global.h (nonexistent) +++ head/irc/psybnc/files/patch-src_p__global.h (revision 417166) @@ -0,0 +1,22 @@ +--- src/p_global.h.orig 2016-06-20 14:41:27 UTC ++++ src/p_global.h +@@ -972,7 +972,7 @@ int checklogging(int usern); + #endif + + #ifndef P_MEMORY +-unsigned long *__pmalloc(unsigned long size,char *module,char *function,int line); ++char *__pmalloc(unsigned long size,char *module,char *function,int line); + void _pfree(void * pointer,char *module, char *function, int line); + struct usert *user(int usern); + struct newpeert *newpeer(int usern); +@@ -1267,8 +1267,8 @@ extern char * BLOW_stringdecrypt(unsigne + + #endif + +-#define pcontext { strmncpy(ctxt,__FILE__,sizeof(ctxt)); strmncpy(cfunc,__FUNCTION__,sizeof(cfunc)); cline=__LINE__; } +-#define pmalloc(n) __pmalloc((n),__FILE__,__FUNCTION__,__LINE__) ++#define pcontext { strmncpy(ctxt,__FILE__,sizeof(ctxt)); strmncpy(cfunc,(char*)__FUNCTION__,sizeof(cfunc)); cline=__LINE__; } ++#define pmalloc(n) __pmalloc((n),__FILE__,(char*)__FUNCTION__,(int)__LINE__) + + #define SSLCERT "key/psybnc.cert.pem" + #define SSLKEY "key/psybnc.key.pem" Property changes on: head/irc/psybnc/files/patch-src_p__global.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/irc/psybnc/files/patch-src_p__idea.c =================================================================== --- head/irc/psybnc/files/patch-src_p__idea.c (nonexistent) +++ head/irc/psybnc/files/patch-src_p__idea.c (revision 417166) @@ -0,0 +1,21 @@ +--- src/p_idea.c.orig 2016-06-20 14:41:27 UTC ++++ src/p_idea.c +@@ -50,6 +50,9 @@ static char rcsid[] = "@(#)$Id: p_idea.c + * string encryption by psychoid + */ + ++ ++#include ++/* + #include + #include + #include +@@ -62,7 +65,7 @@ extern int cline; + + #define pcontext { strmncpy(ctxt,__FILE__,sizeof(ctxt));strmncpy(cfunc,__FUNCTION__,sizeof(cfunc)); cline=__LINE__; } + #define pmalloc(n) __pmalloc((n),__FILE__,__FUNCTION__,__LINE__) +- ++*/ + #ifdef CRYPT + + #define IDEAROUNDS 8 Property changes on: head/irc/psybnc/files/patch-src_p__idea.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/irc/psybnc/files/patch-src_p__memory.c =================================================================== --- head/irc/psybnc/files/patch-src_p__memory.c (nonexistent) +++ head/irc/psybnc/files/patch-src_p__memory.c (revision 417166) @@ -0,0 +1,34 @@ +--- src/p_memory.c.orig 2016-06-20 14:41:27 UTC ++++ src/p_memory.c +@@ -32,10 +32,10 @@ FILE *logm=NULL; + + /* malloc-wrapper. No memory will log an error entry and kill the bouncer */ + +-unsigned long *__pmalloc(unsigned long size,char *module,char *function, int line) ++char *__pmalloc(unsigned long size,char *module,char *function, int line) + { +- unsigned long *rc; +- if (!(rc=(unsigned long *)malloc(size))) ++ char *rc; ++ if (!(rc=(char *)malloc(size))) + { + p_log(LOG_ERROR,-1,lngtxt(602),module,function,line); + exit(0x0); +@@ -53,7 +53,7 @@ unsigned long *__pmalloc(unsigned long s + return rc; + } + +-void _pfree(unsigned long *pointer, char *module, char *function, int line) ++void _pfree(char *pointer, char *module, char *function, int line) + { + #ifdef LOGALLOC + if(logm==NULL) +@@ -67,7 +67,7 @@ void _pfree(unsigned long *pointer, char + free(pointer); + } + +-#define free(a) _pfree((void *)a,__FILE__,__FUNCTION__,__LINE__) ++#define free(a) _pfree((void *)a,__FILE__,(char*)__FUNCTION__,__LINE__) + + /* struct wrappers. Those alloc, delete and return the needed structures */ + Property changes on: head/irc/psybnc/files/patch-src_p__memory.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/irc/psybnc/files/patch-src_p__string.c =================================================================== --- head/irc/psybnc/files/patch-src_p__string.c (nonexistent) +++ head/irc/psybnc/files/patch-src_p__string.c (revision 417166) @@ -0,0 +1,11 @@ +--- src/p_string.c.orig 2016-06-20 14:41:27 UTC ++++ src/p_string.c +@@ -616,7 +616,7 @@ int loadlanguage(char *langf) + int msg; + pcontext; + clearlanguage(); +- ap_snprintf(lfname,sizeof(lfname),"lang/%s.lng",langf); ++ ap_snprintf(lfname,sizeof(lfname),"%s/lang/%s.lng",PSYBASE, langf); + maxindex=0; + langname[0]=0; + lfile=fopen(lfname,"r"); Property changes on: head/irc/psybnc/files/patch-src_p__string.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/irc/psybnc/files/patch-src_psybnc.c =================================================================== --- head/irc/psybnc/files/patch-src_psybnc.c (revision 417165) +++ head/irc/psybnc/files/patch-src_psybnc.c (revision 417166) @@ -1,47 +1,47 @@ ---- ./src/psybnc.c Wed Jul 24 17:19:05 2002 -+++ ../../psybnc.mina/src/psybnc.c Sun Nov 24 19:54:52 2002 -@@ -43,6 +43,8 @@ +--- src/psybnc.c.orig 2016-06-20 14:41:27 UTC ++++ src/psybnc.c +@@ -44,6 +44,8 @@ int slice=0; #ifdef HAVE_SSL +int fexists(char *fname); + void initSSL() { SSL_load_error_strings(); -@@ -170,13 +172,17 @@ +@@ -171,13 +173,17 @@ main (int argc, char **argv) if(argc==2) { strmncpy(configfile,argv[1],sizeof(configfile)); - } else { + } else if (fexists("psybnc.conf")) { + strcpy(configfile, "psybnc.conf"); + } else if (fexists(PREFIX "/etc/psybnc.conf")) { strcpy(configfile,"psybnc.conf"); /* rcsid */ + } else { + strcpy(configfile, "psybnc.conf"); } conffile=fopen(configfile,"r"); if(conffile==NULL) { - printf("Configuration File %s not found, aborting\nRun 'make menuconfig' for creating a configuration or create the file manually.\n",conffile); /* rcsid */ + printf("Configuration file psybnc.conf not found in current directory or in " PREFIX "/etc/psybnc.conf.\n Copy " PREFIX "/etc/psybnc.conf.sample to the current directory as psybnc.conf :\n cp " PREFIX "/etc/psybnc.conf.sample psybnc.conf\n\nOR create the file manually.\n"); /* rcsid */ exit (0x0); } fclose(conffile); -@@ -301,3 +307,15 @@ +@@ -302,3 +308,15 @@ main (int argc, char **argv) bncmain(); - } + } +int fexists(char *fname) +{ + FILE *fn; + int rc=0; + fn=fopen(fname,"r"); + if(fn!=NULL) + { + fclose(fn); + rc=1; + } + return rc; +} Index: head/irc/psybnc/files/patch-tools_autoconf.c =================================================================== --- head/irc/psybnc/files/patch-tools_autoconf.c (revision 417165) +++ head/irc/psybnc/files/patch-tools_autoconf.c (revision 417166) @@ -1,24 +1,24 @@ ---- tools/autoconf.c.orig 2006-11-16 00:27:04.000000000 +0000 -+++ tools/autoconf.c 2013-01-18 13:55:10.102047624 +0000 -@@ -443,9 +443,9 @@ +--- tools/autoconf.c.orig 2016-06-20 14:41:27 UTC ++++ tools/autoconf.c +@@ -443,9 +443,9 @@ int main() fprintf(makefile,"INCLUDE = -I./src/ -I.\n"); fprintf(makefile,"OBJS = src/psybnc.o src/match.o src/p_client.o src/p_crypt.o src/p_dcc.o src/p_hash.o src/p_idea.o src/p_inifunc.o src/p_link.o src/p_log.o src/p_memory.o src/p_network.o src/p_parse.o src/p_peer.o src/p_server.o src/p_socket.o src/p_string.o src/p_sysmsg.o src/p_userfile.o src/p_uchannel.o src/p_script.o src/p_topology.o src/p_intnet.o src/p_blowfish.o src/p_translate.o src/p_coredns.o src/snprintf.o %s\n",env); if(provi==0) - fprintf(makefile,"DEFINE = -DHAVE_CONFIG %s%s%s%s%s%s\n",sunosopt,bigopt,ipv6opt,timeopt,sslopt,dnsopt); + fprintf(makefile,"DEFINE = -DHAVE_CONFIG %s%s%s%s%s%s -DPSYBASE=\\\"%s\\\" -DPREFIX=\\\"%s\\\"\n",sunosopt,bigopt,ipv6opt,timeopt,sslopt,dnsopt, PSYBASE, PREFIX); else - fprintf(makefile,"DEFINE = -DHAVE_PROV_CONFIG %s%s%s%s%s%s\n",sunosopt,bigopt,ipv6opt,timeopt,sslopt,dnsopt); + fprintf(makefile,"DEFINE = -DHAVE_PROV_CONFIG %s%s%s%s%s%s -DPSYBASE=\\\"%s\\\" -DPREFIX=\\\"%s\\\"\n",sunosopt,bigopt,ipv6opt,timeopt,sslopt,dnsopt, PSYBASE, PREFIX); fprintf(makefile,"TARGET = psybnc\n"); fprintf(makefile,"\n"); fprintf(makefile,"all: $(OBJS)\n"); -@@ -453,7 +453,8 @@ +@@ -453,7 +453,8 @@ int main() fprintf(makefile," @strip $(TARGET)\n"); if(ssl==0) { - if(!fexists("key/psybnc.cert.pem")) /* only create, if not exist */ + if(!fexists(PSYBASE "/key/psybnc.cert.pem") && + !fexists("key/psybnc.cert.pem")) /* only create, if not exist */ { mkdir("key",0700); fprintf(makefile," @echo \"*** GENERATING SSL-KEYS FROM CERTIFICATE **\"\n"); Index: head/java/jakarta-commons-pool/Makefile =================================================================== --- head/java/jakarta-commons-pool/Makefile (revision 417165) +++ head/java/jakarta-commons-pool/Makefile (revision 417166) @@ -1,47 +1,49 @@ # Created by: Anton Yudin # $FreeBSD$ PORTNAME= commons-pool PORTVERSION= 1.6 CATEGORIES= java devel MASTER_SITES= APACHE_COMMONS_SOURCE PKGNAMEPREFIX= jakarta- DISTNAME= ${PORTNAME}-${PORTVERSION}-src MAINTAINER= ale@FreeBSD.org COMMENT= Jakarta Object-pooling API LICENSE= APACHE20 OPTIONS_DEFINE= DOCS +USES= dos2unix +DOS2UNIX_GLOB= *.xml *.java USE_JAVA= yes JAVA_VERSION= 1.6+ USE_ANT= yes ALL_TARGET= build-jar -PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar +PLIST_FILES= ${JAVAJARDIR}/${PORTNAME}.jar PORTDOCS= * .include .if ${PORT_OPTIONS:MDOCS} ALL_TARGET+= javadoc .endif do-install: @${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..." @${INSTALL_DATA} ${WRKSRC}/dist/${PORTNAME}-${PORTVERSION}.jar \ ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar @${ECHO_MSG} " [ DONE ]" .if ${PORT_OPTIONS:MDOCS} @${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..." @${MKDIR} ${STAGEDIR}${DOCSDIR} @cd ${WRKSRC}/dist/docs && ${FIND} api \ | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${DOCSDIR} > /dev/null 2>&1 @${ECHO_MSG} " [ DONE ]" .endif .include Index: head/java/jakarta-commons-pool/files/patch-build.xml =================================================================== --- head/java/jakarta-commons-pool/files/patch-build.xml (revision 417165) +++ head/java/jakarta-commons-pool/files/patch-build.xml (revision 417166) @@ -1,11 +1,11 @@ ---- build.xml.orig 2012-01-10 13:14:30.000000000 +0100 -+++ build.xml 2012-01-10 13:14:40.000000000 +0100 +--- build.xml.orig 2016-06-20 15:05:02 UTC ++++ build.xml @@ -40,7 +40,7 @@ - - - -- -+ - - - + + + +- ++ + + + Index: head/java/jgrapht/Makefile =================================================================== --- head/java/jgrapht/Makefile (revision 417165) +++ head/java/jgrapht/Makefile (revision 417166) @@ -1,60 +1,61 @@ # Created by: ijliao # $FreeBSD$ PORTNAME= jgrapht PORTVERSION= 0.7.3 PORTREVISION= 1 CATEGORIES= java math MASTER_SITES= SF/${PORTNAME}/JGraphT/Version%20${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Java package for mathematical graph-theory objects and algorithms -USES= zip +USES= dos2unix zip +DOS2UNIX_GLOB= *.xml *.java USE_JAVA= yes JAVA_VERSION= 1.6 1.7 OPTIONS_DEFINE= DOCS .include .if !defined(WITHOUT_COMPILE) USE_ANT= yes ALL_TARGET= jar .if ${PORT_OPTIONS:MDOCS} ALL_TARGET+= javadoc .endif .else NO_BUILD= yes .endif PORTDOCS= * -PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar +PLIST_FILES= ${JAVAJARDIR}/${PORTNAME}.jar .include JAVA_PORT_API= ${LOCALBASE}/share/doc/jdk${JAVA_PORT_VERSION:C/([0-9]\.[0-9])\.[0-9]/\1/}/api .if exists(${JAVA_PORT_API}) MAKE_ARGS+= -Djdk.api="${JAVA_PORT_API}" .endif pre-fetch: @${ECHO_MSG} "" @${ECHO_MSG} "You may use the following build options:" @${ECHO_MSG} "" @${ECHO_MSG} " WITHOUT_COMPILE=yes Install the pre-compiled .jar file" @${ECHO_MSG} "" do-install: @${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..." @${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-jdk1.5.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar @${ECHO_MSG} " [DONE]" .if ${PORT_OPTIONS:MDOCS} @${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..." @cd ${WRKSRC}/javadoc && ${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/{} \; @cd ${WRKSRC}/javadoc && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \; @${ECHO_MSG} " [DONE]" .endif .include Index: head/java/jgrapht/files/patch-build.xml =================================================================== --- head/java/jgrapht/files/patch-build.xml (revision 417165) +++ head/java/jgrapht/files/patch-build.xml (revision 417166) @@ -1,12 +1,12 @@ Patch to allow the JDK API location to be passed to Ant using -Djdk.api ---- build.xml.orig Mon Jul 3 00:53:38 2006 -+++ build.xml Sun Mar 11 12:16:31 2007 -@@ -400,6 +400,7 @@ - - - -+ - - - +--- build.xml.orig 2016-06-20 15:06:43 UTC ++++ build.xml +@@ -355,6 +355,7 @@ + + + ++ + + + Index: head/mail/vpopmail/Makefile =================================================================== --- head/mail/vpopmail/Makefile (revision 417165) +++ head/mail/vpopmail/Makefile (revision 417166) @@ -1,423 +1,424 @@ # Created by: Neil Blakey-Milner # $FreeBSD$ PORTNAME= vpopmail PORTVERSION= 5.4.33 PORTREVISION= 2 CATEGORIES= mail MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-stable/${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Easy virtual domain and authentication package for use with qmail LICENSE= GPLv2 GPLv3 LICENSE_COMB= dual BUILD_DEPENDS= ${LOCALBASE}/bin/tcprules:sysutils/ucspi-tcp RUN_DEPENDS= ${LOCALBASE}/bin/tcprules:sysutils/ucspi-tcp PATCH_STRIP= -p1 -USES= qmail gmake fakeroot +USES= dos2unix qmail gmake fakeroot +DOS2UNIX_FILES= doc/README.vpopmaild CONFLICTS= vpopmail-devel-5.* GNU_CONFIGURE= YES OPTIONS_SUB= yes USERS= vpopmail GROUPS= vchkpw VCFGDIR?= ${WRKDIR}/vcfg VCFGFILES?= inc_deps lib_deps tcp.smtp CONFIGURE_ENV+= VCFGDIR="${VCFGDIR}" \ AUTOCONF=true ACLOCAL=true AUTOMAKE=true AUTOHEADER=true CONFIGURE_ARGS= --enable-qmaildir=${QMAIL_PREFIX} \ --enable-tcprules-prog=${LOCALBASE}/bin/tcprules \ --enable-tcpserver-file=${VPOPMAIL_DIR}/etc/tcp.smtp \ --enable-non-root-build \ --enable-logging=${LOGLEVEL} \ --enable-vpopuser=nobody \ --enable-vpopgroup=nobody OPTIONS_DEFINE= DOCS \ PASSWD \ MD5_PASSWORDS \ CLEAR_PASSWD \ LEARN_PASSWORDS \ MYSQL_REPLICATION \ MYSQL_LIMITS \ VALIAS \ ROAMING \ IP_ALIAS \ QMAIL_EXT \ FILE_LOCKING \ FILE_SYNC \ USERS_BIG_DIR \ SEEKABLE \ SPAMASSASSIN \ SUID_VCHKPW \ SMTP_AUTH_PATCH \ ONCHANGE_SCRIPT \ FPIC \ MAILDROP \ DOMAIN_QUOTAS \ SPAMFOLDER \ SINGLE_DOMAIN \ AUTH_LOG \ SQL_LOG \ SQL_LOG_TRIM OPTIONS_SINGLE= AUTH OPTIONS_SINGLE_AUTH= CDB MYSQL PGSQL LDAP LDAP_SASL ORACLE SYBASE OPTIONS_DEFAULT=MD5_PASSWORDS \ CDB \ ROAMING \ FILE_LOCKING \ USERS_BIG_DIR \ SEEKABLE \ FPIC \ AUTH_LOG CDB_DESC= Auth via CDB PASSWD_DESC= /etc/passwd account support MYSQL_DESC= Auth via MySQL PGSQL_DESC= Auth via PostgreSQL SYBASE_DESC= Auth via Sybase MD5_PASSWORDS_DESC= Store passwords in MD5 format CLEAR_PASSWD_DESC= Store passwords in plaintext LEARN_PASSWORDS_DESC= Learn passwords during POP auth MYSQL_REPLICATION_DESC= MySQL database replication support MYSQL_LIMITS_DESC= MySQL mailbox limitations support ORACLE_DESC= Auth via Oracle LDAP_DESC= Auth via LDAP LDAP_SASL_DESC= Auth via LDAP SASL VALIAS_DESC= Store aliases in DB instead of .qmail files ROAMING_DESC= roaming users support IP_ALIAS_DESC= IP alias support QMAIL_EXT_DESC= qmail-like user-* address support FILE_LOCKING_DESC= file locking support FILE_SYNC_DESC= fsync support (decreases performance) USERS_BIG_DIR_DESC= Hashing user directories (BIGDIR) SEEKABLE_DESC= Make input to vdelivermail seekable SPAMASSASSIN_DESC= SpamAssassin support SUID_VCHKPW_DESC= Set vchkpw setugid vpopmail:vchkpw SMTP_AUTH_PATCH_DESC= Swap Challenge/Response for CRAM-MD5 ONCHANGE_SCRIPT_DESC= vpopmail/etc/onchange script support FPIC_DESC= Compile with -fPIC MAILDROP_DESC= Maildrop MDA support DOMAIN_QUOTAS_DESC= Domain quotas support SPAMFOLDER_DESC= Move spam to Junk (requires SA) SINGLE_DOMAIN_DESC= Optimize for a single domain setup AUTH_LOG_DESC= Log auth attempts when using a DB SQL_LOG_DESC= Log to selected SQL database SQL_LOG_TRIM_DESC= Trim logs of deleted users/domains # Compatibility with older KNOB, correctly will enable if set, # but be unset if unselected in the 'config' dialog .if defined(WITH_POSTGRESQL) PORT_OPTIONS+= PGSQL .endif .if defined(WITH_MYSQL_LOG) PORT_OPTIONS+= SQL_LOG .endif .if defined(WITH_PGSQL_LOG) PORT_OPTIONS+= SQL_LOG .endif .if defined(WITH_SQL_LOG_REMOVE_DELETED) PORT_OPTIONS+= SQL_LOG_TRIM .endif DOMAIN_QUOTAS_CONFIGURE_ON= --enable-domainquotas=y DOMAIN_QUOTAS_CONFIGURE_OFF= --enable-domainquotas=n PASSWD_CONFIGURE_ON= --enable-passwd MD5_PASSWORDS_CONFIGURE_OFF= --disable-md5-passwords VALIAS_CONFIGURE_ON= --enable-valias CLEAR_PASSWD_CONFIGURE_OFF= --disable-clear-passwd LEARN_PASSWORDS_CONFIGURE_ON= --enable-learn-passwords LDAP_CONFIGURE_ON= --enable-auth-module=ldap ORACLE_CONFIGURE_ON= --enable-auth-module=oracle SYBASE_CONFIGURE_ON= --enable-auth-module=sybase SINGLE_DOMAIN_CONFIGURE_ON= --disable-many-domains IP_ALIAS_CONFIGURE_ON= --enable-ip-alias-domains QMAIL_EXT_CONFIGURE_ON= --enable-qmail-ext FILE_LOCKING_CONFIGURE_OFF= --disable-file-locking FILE_SYNC_CONFIGURE_ON= --enable-file-sync AUTH_LOG_CONFIGURE_OFF= --disable-auth-logging USERS_BIG_DIR_CONFIGURE_OFF= --disable-users-big-dir SEEKABLE_CONFIGURE_OFF= --disable-make-seekable ROAMING_CONFIGURE_ON= --enable-roaming-users \ --enable-relay-clear-minutes=${RELAYCLEAR} MYSQL_CONFIGURE_ON= --enable-auth-module=mysql \ --enable-incdir=${LOCALBASE}/include/mysql \ --enable-libdir=${LOCALBASE}/lib/mysql MYSQL_REPLICATION_CONFIGURE_ON= --enable-mysql-replication MYSQL_LIMITS_CONFIGURE_ON= --enable-mysql-limits PGSQL_CONFIGURE_ON= --enable-auth-module=pgsql SQL_LOG_CONFIGURE_ON= --enable-sql-logging ONCHANGE_SCRIPT_CONFIGURE_ON= --enable-onchange-script MAILDROP_CONFIGURE_ON= --enable-maildrop=y \ --enable-maildrop-prog=${LOCALBASE}/bin/maildrop MAILDROP_CONFIGURE_OFF= --enable-maildrop=n MAILDROP_RUN_DEPENDS= maildrop:${MAILDROP_PORT} MAILDROP_BUILD_DEPENDS= maildrop:${MAILDROP_PORT} SPAMASSASSIN_CONFIGURE_ON= --enable-spamassassin \ --enable-spamc-prog=${LOCALBASE}/bin/spamc \ --enable-spam-threshold=${SPAM_THRESHOLD} SPAMASSASSIN_BUILD_DEPENDS= spamc:mail/spamassassin SPAMASSASSIN_RUN_DEPENDS= spamc:mail/spamassassin SPAMFOLDER_CONFIGURE_ON= --enable-spam-junkfolder INSTALL_TARGET= install-strip .include .if ${PORT_OPTIONS:MSUID_VCHKPW} VCHKPW_MODE="6711" .endif PLIST_SUB+= VCHKPW_MODE="${VCHKPW_MODE}" # PostgreSQL database configuration options # # WITH_PGSQL_USER - the username for connecting to the PostgreSQL server (postgres) # WITH_PGSQL_DB - the name of the PostgreSQL database to use (vpopmail) # # Oracle database configuration options # # WARNING: This is NOT TESTED, not in the least. # Please report any success or failure to the port maintainer # # WITH_ORACLE_PROC - the name of the Oracle Pro-C precompiler, default 'proc' # WITH_ORACLE_SERVICE - the Oracle service name (jimmy) # WITH_ORACLE_USER - the username for connecting to the Oracle server (system) # WITH_ORACLE_PASSWD - the password for connecting to the Oracle server (manager) # WITH_ORACLE_DB - the name of the Oracle database to connect to (orcl1) # WITH_ORACLE_HOME - the Oracle installation directory (/export/home/oracle) # # Sybase database configuration options # # WARNING: This is NOT TESTED, not in the least. # Please report any success or failure to the port maintainer # # WITH_SYBASE_SERVER - the Sybase server name (empty) # WITH_SYBASE_USER - the username for connecting to the Sybase server (sa) # WITH_SYBASE_PASSWD - the password for connecting to the Sybase server (empty) # WITH_SYBASE_APP - the app for connecting to the Sybase server (vpopmail) # WITH_SYBASE_DB - the name of the Sybase database to connect to (vpopmail) # # Courier IMAP configuration options for authvchkpw # # WARNING: This is NOT TESTED, not in the least. # Please report any success or failure to the port maintainer # # WITH_COURIER_IMAPLOGIN - the path to the imaplogin program # WITH_COURIER_IMAPD - the path to the imapd program # User-configurable variables # # ONCHANGE_SCRIPT - see README.onchange # MAILDROP - see README.maildrop # # Define these to change from the default behaviour # # MAILDROP_PORT - the port that provides the bin/maildrop program # # Set these to the values you'd prefer # # RELAYCLEAR - time in minutes before clearing relay hole (requires roaming) # SPAM_THRESHOLD - minimum score required to delete spam messages (requires spamassassin) # LOGLEVEL - n - no logging, y - log all, # e - log errors, p - log passwords in errors, # v - verbose success and errors with passwords # QMAIL_PREFIX - location of qmail directory # VPOPMAIL_DIR - installation area for vpopmail (see comment below) # # RELAYCLEAR?= 30 SPAM_THRESHOLD?=15 LOGLEVEL?= y MAILDROP_PORT?= mail/maildrop WITH_COURIER_IMAPLOGIN?= ${LOCALBASE}/sbin/imaplogin WITH_VPOPMAIL_AUTHVCHKPW?= ${VPOPMAIL_DIR}/bin/authvchkpw WITH_COURIER_IMAPD?= ${LOCALBASE}/bin/imapd WITH_ORACLE_PROC?= proc VPOPMAIL_DIR?= ${PREFIX}/vpopmail # Uncomment this, or set PREFIX to /home if you have an existing # vpopmail install with the vpopmail users' home directory set to # /home/vpopmail - package rules dictate we default to LOCALBASE/vpopmail # #PREFIX?= /home # End of user-configurable variables .if ${PORT_OPTIONS:MLDAP} USE_OPENLDAP= yes .if ${PORT_OPTIONS:MLDAP_SASL} WANT_OPENLDAP_SASL= yes .endif LDAP_FILES= ${WRKSRC}/doc/README.ldap \ ${WRKSRC}/ldap/nsswitch.conf \ ${WRKSRC}/ldap/pam_ldap.conf \ ${WRKSRC}/ldap/pam_ldap.secret \ ${WRKSRC}/ldap/qmailUser.schema \ ${WRKSRC}/ldap/slapd.conf \ ${WRKSRC}/ldap/vpopmail.ldif .endif .if ${PORT_OPTIONS:MMYSQL} USE_MYSQL= yes .if defined(WITH_MYSQL_USER) || defined(WITH_MYSQL_READ_USER) || defined(WITH_MYSQL_UPDATE_USER) BROKEN_MYSQL_PARAMS= true .endif .if defined(WITH_MYSQL_SERVER) || defined(WITH_MYSQL_READ_SERVER) || defined(WITH_MYSQL_UPDATE_SERVER) BROKEN_MYSQL_PARAMS= true .endif .if defined(WITH_MYSQL_PASSWD) || defined(WITH_MYSQL_READ_PASSWD) || defined(WITH_MYSQL_UPDATE_PASSWD) BROKEN_MYSQL_PARAMS= true .endif .if defined(WITH_MYSQL_DB) BROKEN_MYSQL_PARAMS= true .endif .if defined(BROKEN_MYSQL_PARAMS) BROKEN= The MySQL connection parameters are no longer setup at compile time - please edit the ${VPOPMAIL_DIR}/etc/vpopmail.mysql file instead .endif .endif .if defined(DEFAULT_DOMAIN) BROKEN= The default vpopmail domain is no longer setup at compile time - please edit the ${VPOPMAIL_DIR}/etc/defaultdomain file instead .endif .if defined(WITH_APOP) BROKEN= The WITH_APOP option is deprecated; set WITH_CLEAR_PASSWD instead, APOP will just work .endif .if ${PORT_OPTIONS:MPGSQL} USES= pgsql .endif .if ${PORT_OPTIONS:MSQL_LOG_TRIM} EXTRA_PATCHES+= ${FILESDIR}/sql-remove-deleted.patch .endif .if ${PORT_OPTIONS:MSMTP_AUTH_PATCH} EXTRA_PATCHES+= ${FILESDIR}/vchkpw-smtp-auth.patch .endif .if ${PORT_OPTIONS:MMAILDROP} MAILDROP_FILES= ${WRKSRC}/maildrop/maildroprc.v1 \ ${WRKSRC}/maildrop/maildroprc.v2 .endif .if empty(PORT_OPTIONS:MDOCS) EXTRA_PATCHES+= ${FILESDIR}/Makefile.in-noportdocs.patch .endif .if ${PORT_OPTIONS:MFPIC} && ( ${ARCH} == "amd64" || ${ARCH} == "ia64" ) CFLAGS+= -fPIC .endif # # Some suggestions from Gabriel Ambuehl # # DOCS= README README.activedirectory README.filelocking \ README.ipaliasdomains README.ldap README.maildrop \ README.mysql \ README.onchange README.oracle README.pgsql \ README.qmail-default README.quotas \ README.roamingusers README.spamassassin README.sybase \ README.vdelivermail README.vlimits \ README.vpopmaild README.vpopmaild README.vqmaillocal \ UPGRADE # # This port doesn't honour PREFIX, it honours vpopmail's home directory. # Since we create vpopmail if it doesn't exist, we set it so that it # does honour PREFIX. -- nbm # pre-configure: ${AWK} -F: '/^${USERS}:/ { print $$3 }' ${UID_FILES} > ${WRKSRC}/vpopmail.uid ${AWK} -F: '/^${USERS}:/ { sub(/\/usr\/local/, "${PREFIX}", $$9); print $$9 }' ${UID_FILES} > ${WRKSRC}/vpopmail.dir ${AWK} -F: '/^${GROUPS}:/ { print $$3 }' ${GID_FILES} > ${WRKSRC}/vpopmail.gid .if ${PORT_OPTIONS:MPGSQL} .if defined(WITH_PGSQL_DB) ${REINPLACE_CMD} -E -e "s/(#define DB.*)vpopmail(.*)/\1${WITH_PGSQL_DB}\2/" ${WRKSRC}/vpgsql.h .endif .if defined(WITH_PGSQL_USER) ${REINPLACE_CMD} -E -e "s/(#define PG_CONNECT.*)postgres(.*)/\1${WITH_PGSQL_USER}\2/" ${WRKSRC}/vpgsql.h .endif .endif .if ${PORT_OPTIONS:MORACLE} .if defined(WITH_ORACLE_SERVICE) ${REINPLACE_CMD} -E -e "s/(#define ORACLE_SERVICE.*)jimmy(.*)/\1${WITH_ORACLE_SERVICE}\2/" ${WRKSRC}/voracle.h .endif .if defined(WITH_ORACLE_USER) ${REINPLACE_CMD} -E -e "s/(#define ORACLE_USER.*)system(.*)/\1${WITH_ORACLE_USER}\2/" ${WRKSRC}/voracle.h .endif .if defined(WITH_ORACLE_PASSWD) ${REINPLACE_CMD} -E -e "s/(#define ORACLE_PASSWD.*)manager(.*)/\1${WITH_ORACLE_PASSWD}\2/" ${WRKSRC}/voracle.h .endif .if defined(WITH_ORACLE_HOME) ${REINPLACE_CMD} -E -e "s@(#define ORACLE_HOME.*)/export/home/oracle(.*)@\1${WITH_ORACLE_HOME}\2@" ${WRKSRC}/voracle.h .endif .if defined(WITH_ORACLE_DB) ${REINPLACE_CMD} -E -e "s/(#define ORACLE_DATABASE.*)orcl1(.*)/\1${WITH_ORACLE_DB}\2/" ${WRKSRC}/voracle.h .endif cd ${WRKSRC} && ${WITH_ORACLE_PROC} voracle.pc .endif .if ${PORT_OPTIONS:MSYBASE} .if defined(WITH_SYBASE_SERVER) ${REINPLACE_CMD} -E -e "s/(#define SYBASE_SERVER.*)\"\"(.*)/\1\"${WITH_SYBASE_SERVER}\"\2/" ${WRKSRC}/vsybase.h .endif .if defined(WITH_SYBASE_USER) ${REINPLACE_CMD} -E -e "s/(#define SYBASE_USER.*)sa(.*)/\1${WITH_SYBASE_USER}\2/" ${WRKSRC}/vsybase.h .endif .if defined(WITH_SYBASE_PASSWD) ${REINPLACE_CMD} -E -e "s/(#define SYBASE_PASSWD.*)\"\"(.*)/\1\"${WITH_SYBASE_PASSWD}\"\2/" ${WRKSRC}/vsybase.h .endif .if defined(WITH_SYBASE_APP) ${REINPLACE_CMD} -E -e "s@(#define SYBASE_APP.*)vpopmail(.*)@\1${WITH_SYBASE_APP}\2@" ${WRKSRC}/vsybase.h .endif .if defined(WITH_SYBASE_DB) ${REINPLACE_CMD} -E -e "s/(#define SYBASE_DATABASE.*)vpopmail(.*)/\1${WITH_SYBASE_DB}\2/" ${WRKSRC}/vsybase.h .endif .endif ${REINPLACE_CMD} -E -e "s@(#define PATH_IMAPLOGIN.*)VPOPMAILDIR.*@\1\"${WITH_COURIER_IMAPLOGIN}\"@" ${WRKSRC}/authvchkpw.c ${REINPLACE_CMD} -E -e "s@(#define PATH_AUTHVCHKPW.*)VPOPMAILDIR.*@\1\"${WITH_VPOPMAIL_AUTHVCHKPW}\"@" ${WRKSRC}/authvchkpw.c ${REINPLACE_CMD} -E -e "s@(#define PATH_IMAPD.*)VPOPMAILDIR.*@\1\"${WITH_COURIER_IMAPD}\"@" ${WRKSRC}/authvchkpw.c ${MKDIR} ${VCFGDIR} post-install: ${MKDIR} ${STAGEDIR}${VPOPMAIL_DIR}/etc if [ -e "${VCFGDIR}/tcp.smtp" ]; then \ ${INSTALL_DATA} ${VCFGDIR}/tcp.smtp ${STAGEDIR}${VPOPMAIL_DIR}/etc/tcp.smtp-dist; \ else \ ${TOUCH} ${STAGEDIR}${VPOPMAIL_DIR}/etc/tcp.smtp-dist; \ fi; .if ${PORT_OPTIONS:MLDAP} @${ECHO_CMD} "# LDAP CONNECTION SETTINGS FOR VPOPMAIL" > ${STAGEDIR}${VPOPMAIL_DIR}/etc/vpopmail.ldap-dist @${ECHO_CMD} "# Line format:" >> ${STAGEDIR}${VPOPMAIL_DIR}/etc/vpopmail.ldap-dist @${ECHO_CMD} "# host|port|user|password|basedn" >> ${STAGEDIR}${VPOPMAIL_DIR}/etc/vpopmail.ldap-dist @${ECHO_CMD} "localhost|389|cn=vpopmailuser, o=vpopmail|vpoppasswd|o=vpopmail" >> ${STAGEDIR}${VPOPMAIL_DIR}/etc/vpopmail.ldap-dist .endif .if ${PORT_OPTIONS:MLDAP} ${MKDIR} ${STAGEDIR}${VPOPMAIL_DIR}/ldap ${INSTALL_DATA} ${LDAP_FILES} ${STAGEDIR}${VPOPMAIL_DIR}/ldap .endif .if ${PORT_OPTIONS:MMAILDROP} ${MKDIR} ${STAGEDIR}${VPOPMAIL_DIR}/maildrop ${INSTALL_DATA} ${MAILDROP_FILES} ${STAGEDIR}${VPOPMAIL_DIR}/maildrop .endif .if ${PORT_OPTIONS:MDOCS} ${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/doc/,} ${STAGEDIR}${VPOPMAIL_DIR}/doc/ .endif .include Index: head/mail/vpopmail/files/patch-README.vpopmaild =================================================================== --- head/mail/vpopmail/files/patch-README.vpopmaild (revision 417165) +++ head/mail/vpopmail/files/patch-README.vpopmaild (revision 417166) @@ -1,44 +1,44 @@ Description: Fix a couple of typos and grammatical errors. Forwarded: no Author: Peter Pentchev Last-Update: 2009-11-26 --- a/doc/README.vpopmaild +++ b/doc/README.vpopmaild @@ -243,7 +243,7 @@ - - Rights required: Must be a valid email address. - --Action: Verify the username and password of the persion desiring to -+Action: Verify the username and password of the person desiring to - login, and set their access rights. - - For the "login" command, a successful login will return a + + Rights required: Must be a valid email address. + +-Action: Verify the username and password of the persion desiring to ++Action: Verify the username and password of the person desiring to + login, and set their access rights. + + For the "login" command, a successful login will return a @@ -386,7 +386,7 @@ - - - The following values are returned as the character '1' or '0'. '1' --says the field is active which, for example an active no_password_change -+says the field is active - for example, an active no_password_change field - means the user can not change passwords. - - no_password_change, no_pop, no_webmail, no_imap, bounce_mail, no_relay, + + + The following values are returned as the character '1' or '0'. '1' +-says the field is active which, for example an active no_password_change ++says the field is active - for example, an active no_password_change field + means the user can not change passwords. + + no_password_change, no_pop, no_webmail, no_imap, bounce_mail, no_relay, @@ -631,7 +631,7 @@ - Rights required: SA_ADMIN - - Action: List all domains on the system, and their parent domain. --If the optional page is given, lines_per_page must be specified also. -+If the optional page is given, lines_per_page must also be specified. - When both are given, the data is broken up into pages with lines_per_page - lines on each. The page returned is specified by page. - + Rights required: SA_ADMIN + + Action: List all domains on the system, and their parent domain. +-If the optional page is given, lines_per_page must be specified also. ++If the optional page is given, lines_per_page must also be specified. + When both are given, the data is broken up into pages with lines_per_page + lines on each. The page returned is specified by page. + @@ -1088,7 +1088,7 @@ - The actual error messages are stored in the file vpopmaild.msg for easy translation. - Once there are other language files, I'll create a directory to store the various - language files, and use a symlink to select a language. Error messages are set --at comile time. -+at compile time. - --0.X represents a message passed up from fpopmaild primitives, and does not otherwise -+0.X represents a message passed up from vpopmaild primitives, and does not otherwise - follow the standard error reporting structure. (yet?) + The actual error messages are stored in the file vpopmaild.msg for easy translation. + Once there are other language files, I'll create a directory to store the various + language files, and use a symlink to select a language. Error messages are set +-at comile time. ++at compile time. + +-0.X represents a message passed up from fpopmaild primitives, and does not otherwise ++0.X represents a message passed up from vpopmaild primitives, and does not otherwise + follow the standard error reporting structure. (yet?) Index: head/math/spar/Makefile =================================================================== --- head/math/spar/Makefile (revision 417165) +++ head/math/spar/Makefile (revision 417166) @@ -1,27 +1,28 @@ # Created by: ijliao # $FreeBSD$ PORTNAME= spar PORTVERSION= 0.5.10 PORTREVISION= 3 CATEGORIES= math devel MASTER_SITES= SF/${PORTNAME}/Spar/${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Modular math parser -USES= libtool ncurses readline +USES= dos2unix libtool ncurses readline +DOS2UNIX_FILES= lib/randist/rand.c GNU_CONFIGURE= yes USE_CSTD= gnu89 USE_LDCONFIG= yes post-patch: @${REINPLACE_CMD} -e "s,-ldl,,g" \ ${WRKSRC}/lib/Makefile.in ${WRKSRC}/lib/module/Makefile.in @${REINPLACE_CMD} -e 's|-lcurses|-lncurses|' ${WRKSRC}/configure post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/spar/*.so .include Index: head/math/spar/files/patch-calculator__Makefile.in =================================================================== --- head/math/spar/files/patch-calculator__Makefile.in (revision 417165) +++ head/math/spar/files/patch-calculator__Makefile.in (nonexistent) @@ -1,11 +0,0 @@ ---- calculator/Makefile.in.orig Sun Jul 1 02:55:42 2001 -+++ calculator/Makefile.in Sun Jul 1 02:55:56 2001 -@@ -91,7 +91,7 @@ - DEFS = @DEFS@ -I. -I$(srcdir) -I.. - CPPFLAGS = @CPPFLAGS@ - LDFLAGS = @LDFLAGS@ --LIBS = @LIBS@ -+LIBS = @LIBS@ -lcompat - spar_OBJECTS = commands.o commands_table.o shell.o spar.o - spar_DEPENDENCIES = ../lib/.libs/libspar.so - spar_LDFLAGS = Property changes on: head/math/spar/files/patch-calculator__Makefile.in ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/math/spar/files/patch-lib__randist__rand.c =================================================================== --- head/math/spar/files/patch-lib__randist__rand.c (revision 417165) +++ head/math/spar/files/patch-lib__randist__rand.c (nonexistent) @@ -1,10 +0,0 @@ ---- lib/randist/rand.c.orig Sun Jul 1 02:45:44 2001 -+++ lib/randist/rand.c Sun Jul 1 02:46:03 2001 -@@ -64,6 +64,7 @@ - * struct timeb to be defined. They can be - * found in timeb.h. - */ -+#include - #include - void - sl_randomize (void) Property changes on: head/math/spar/files/patch-lib__randist__rand.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/math/spar/files/patch-calculator_Makefile.in =================================================================== --- head/math/spar/files/patch-calculator_Makefile.in (nonexistent) +++ head/math/spar/files/patch-calculator_Makefile.in (revision 417166) @@ -0,0 +1,11 @@ +--- calculator/Makefile.in.orig 2001-06-26 13:32:25 UTC ++++ calculator/Makefile.in +@@ -91,7 +91,7 @@ PROGRAMS = $(bin_PROGRAMS) + DEFS = @DEFS@ -I. -I$(srcdir) -I.. + CPPFLAGS = @CPPFLAGS@ + LDFLAGS = @LDFLAGS@ +-LIBS = @LIBS@ ++LIBS = @LIBS@ -lcompat + spar_OBJECTS = commands.o commands_table.o shell.o spar.o + spar_DEPENDENCIES = ../lib/.libs/libspar.so + spar_LDFLAGS = Property changes on: head/math/spar/files/patch-calculator_Makefile.in ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/math/spar/files/patch-configure =================================================================== --- head/math/spar/files/patch-configure (revision 417165) +++ head/math/spar/files/patch-configure (revision 417166) @@ -1,10 +1,10 @@ ---- configure.orig Tue Jun 26 05:46:47 2001 -+++ configure Sun Sep 8 15:42:06 2002 -@@ -1580,7 +1563,6 @@ +--- configure.orig 2001-06-26 12:46:47 UTC ++++ configure +@@ -1580,7 +1580,6 @@ LIBTOOL='$(SHELL) $(top_builddir)/libtoo exec 5>>./config.log -CFLAGS="-Wall -O2" if test "$CC" = "gcc"; then CFLAGS="$CFLAGS -pipe" fi Index: head/math/spar/files/patch-lib_randist_rand.c =================================================================== --- head/math/spar/files/patch-lib_randist_rand.c (nonexistent) +++ head/math/spar/files/patch-lib_randist_rand.c (revision 417166) @@ -0,0 +1,10 @@ +--- lib/randist/rand.c.orig 2016-06-20 13:16:43 UTC ++++ lib/randist/rand.c +@@ -64,6 +64,7 @@ + * struct timeb to be defined. They can be + * found in timeb.h. + */ ++#include + #include + void + sl_randomize (void) Property changes on: head/math/spar/files/patch-lib_randist_rand.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/multimedia/vdr-plugin-wirbelscan/Makefile =================================================================== --- head/multimedia/vdr-plugin-wirbelscan/Makefile (revision 417165) +++ head/multimedia/vdr-plugin-wirbelscan/Makefile (revision 417166) @@ -1,32 +1,33 @@ # Created by: Juergen Lock # $FreeBSD$ PORTNAME= vdr-plugin-wirbelscan PORTVERSION= 0.0.7 PORTREVISION= 6 CATEGORIES= multimedia MASTER_SITES= http://wirbel.htpc-forum.de/wirbelscan/ DISTNAME= ${PORTNAME:S/-plugin-/-/}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX} MAINTAINER= ports@FreeBSD.org COMMENT= Video Disk Recorder - wirbelscan plugin -USES= tar:tgz +USES= dos2unix tar:tgz +DOS2UNIX_FILES= scanner.c PATCH_STRIP= -p1 HAVE_CONFIGURE= yes PORTDOCS= COPYING README HISTORY WRKSRC= ${WRKDIR}/${PLUGIN}-${DISTVERSION} .include "${.CURDIR}/../vdr/Makefile.plugins" post-patch: post-patch-plugin ${REINPLACE_CMD} -f ${FILESDIR}/types.sed ${WRKSRC}/*.c ${WRKSRC}/*.h pre-install: ${MKDIR} ${STAGEDIR}${PREFIX}/lib/vdr post-install: post-install-pluginlocales ${MKDIR} ${STAGEDIR}${DOCSDIR} (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}) .include Index: head/multimedia/vdr-plugin-wirbelscan/files/patch-scanner.c =================================================================== --- head/multimedia/vdr-plugin-wirbelscan/files/patch-scanner.c (revision 417165) +++ head/multimedia/vdr-plugin-wirbelscan/files/patch-scanner.c (revision 417166) @@ -1,11 +1,11 @@ --- a/scanner.c +++ b/scanner.c -@@ -633,7 +633,7 @@ void cScanner::Action(void) { - else - continue; - cCondWait::SleepMs(2000); -- vbiSupport = vcap.capabilities & (V4L2_CAP_VBI_CAPTURE || V4L2_CAP_SLICED_VBI_CAPTURE); -+ vbiSupport = vcap.capabilities & (V4L2_CAP_VBI_CAPTURE | V4L2_CAP_SLICED_VBI_CAPTURE); - if (vbiSupport) - dlog(1, "device can capture vbi"); - } +@@ -633,7 +633,7 @@ void cScanner::Action(void) { + else + continue; + cCondWait::SleepMs(2000); +- vbiSupport = vcap.capabilities & (V4L2_CAP_VBI_CAPTURE || V4L2_CAP_SLICED_VBI_CAPTURE); ++ vbiSupport = vcap.capabilities & (V4L2_CAP_VBI_CAPTURE | V4L2_CAP_SLICED_VBI_CAPTURE); + if (vbiSupport) + dlog(1, "device can capture vbi"); + } Index: head/multimedia/w_scan/Makefile =================================================================== --- head/multimedia/w_scan/Makefile (revision 417165) +++ head/multimedia/w_scan/Makefile (revision 417166) @@ -1,46 +1,45 @@ # Created by: Juergen Lock # $FreeBSD$ PORTNAME= w_scan PORTVERSION= 20120415 CATEGORIES= multimedia MASTER_SITES= http://wirbel.htpc-forum.de/w_scan/ MAINTAINER= ports@FreeBSD.org COMMENT= Perform frequency scans for DVB and ATSC transmissions LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= v4l_compat>=1.0.20120501:multimedia/v4l_compat -PATCH_STRIP= -lp1 - GNU_CONFIGURE= yes -USES= gettext iconv localbase tar:bzip2 +USES= dos2unix gettext iconv localbase tar:bzip2 +DOS2UNIX_GLOB= *.c *.h LDFLAGS+= ${ICONV_LIB} NO_WRKSUBDIR= yes PORTDOCS= COPYING ChangeLog README PLIST_FILES= bin/${PORTNAME} \ man/man1/${PORTNAME}.1.gz OPTIONS_DEFINE= LINUX DOCS LINUX_DESC= Install Linux binary too (linux-w_scan) LINUX_USE= LINUX=yes LINUX_RUN_DEPENDS= linux_dvbwrapper-kmod>=1.0:multimedia/linux_dvbwrapper-kmod LINUX_PLIST_FILES= bin/linux-${PORTNAME} post-patch: @${REINPLACE_CMD} -f ${FILESDIR}/types.sed ${WRKSRC}/configure ${WRKSRC}/*.c ${WRKSRC}/*.h @${CP} ${WRKSRC}/${PORTNAME} ${WRKSRC}/linux-${PORTNAME} post-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}) post-install-LINUX-on: (cd ${WRKSRC} && ${INSTALL_PROGRAM} linux-${PORTNAME} ${STAGEDIR}${PREFIX}/bin) .include Index: head/multimedia/w_scan/files/patch-z-scan.c =================================================================== --- head/multimedia/w_scan/files/patch-z-scan.c (revision 417165) +++ head/multimedia/w_scan/files/patch-z-scan.c (nonexistent) @@ -1,14 +0,0 @@ ---- a/scan.c -+++ b/scan.c -@@ -1816,7 +1816,11 @@ static int set_frontend(int frontend_fd, - case SCAN_TERRESTRIAL: - set_cmd_sequence(DTV_DELIVERY_SYSTEM, t->param.u.terr.delivery_system); - if (t->param.u.terr.delivery_system == SYS_DVBT2) { -+#ifndef DTV_DVBT2_PLP_ID -+ set_cmd_sequence(DTV_DVBT2_PLP_ID_LEGACY, t->pids.plp_id); -+#else - set_cmd_sequence(DTV_DVBT2_PLP_ID, t->pids.plp_id); -+#endif - } - set_cmd_sequence(DTV_FREQUENCY, t->param.frequency); - set_cmd_sequence(DTV_INVERSION, t->param.inversion); Property changes on: head/multimedia/w_scan/files/patch-z-scan.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/multimedia/w_scan/files/patch-clang =================================================================== --- head/multimedia/w_scan/files/patch-clang (revision 417165) +++ head/multimedia/w_scan/files/patch-clang (nonexistent) @@ -1,41 +0,0 @@ -The code is using gnu C extensions. The following new patchfile under files/ fixes the issue: - -# cat files/patch-descriptors.c ---- a/descriptors.c 2012-10-03 12:39:42.000000000 +0200 -+++ b/descriptors.c 2012-10-03 12:39:56.000000000 +0200 -@@ -1000,6 +1000,16 @@ - } - } - -+__u8 LeapYear(__u16 year) { -+ if ((year % 400) == 0) -+ return 1; -+ else if ((year % 100) == 0) -+ return 0; -+ else if ((year % 4) == 0) -+ return 1; -+ return 0; -+} -+ - - /* 300468 v011101 annex C, Conversion between time and date conventions - * NOTE: These formulas are applicable between the inclusive dates 1900 March 1 to 2100 February 28. -@@ -1011,16 +1021,6 @@ - int _M = (int) (MJD - 14956.1 - (int) (_Y * 365.25)) / 30.6001; - int K = (_M == 14) ? 1 : (_M == 15) ? 1 : 0; - -- __u8 LeapYear(__u16 year) { -- if ((year % 400) == 0) -- return 1; -- else if ((year % 100) == 0) -- return 0; -- else if ((year % 4) == 0) -- return 1; -- return 0; -- } -- - memset(&utc, 0, sizeof(struct tm)); - utc.tm_mday = MJD - 14956 - (int) (_Y * 365.25) - (int) (_M * 30.6001); - utc.tm_year = _Y + K; - - Property changes on: head/multimedia/w_scan/files/patch-clang ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/multimedia/w_scan/files/patch-char-coding.c =================================================================== --- head/multimedia/w_scan/files/patch-char-coding.c (revision 417165) +++ head/multimedia/w_scan/files/patch-char-coding.c (revision 417166) @@ -1,35 +1,35 @@ ---- a/char-coding.c -+++ b/char-coding.c +--- char-coding.c.orig 2016-06-20 13:13:56 UTC ++++ char-coding.c @@ -250,6 +250,10 @@ void char_coding(char **inbuf, size_t * - // Fallback method: copy all printable chars from *inbuf to *outbuf. - size_t i; - size_t pos = 0; -+#ifdef __FreeBSD__ -+ int to_utf = user_charset_id < iconv_codes_count() && -+ !strncmp(iconv_codes[user_charset_id], "UTF", sizeof "UTF" - 1); -+#endif - - for (i = 0; i < nsrc; i++) { - switch((uint8_t) *(psrc + i)) { -@@ -257,7 +259,21 @@ void char_coding(char **inbuf, size_t * - //case 0xA0 ... 0xFF: - // printable chars ISO-6937-2 - // Figure A.1: Character code table 00 - Latin alphabet -+#ifdef __FreeBSD__ -+ case 0x80 ... 0xFF: -+ // the iconv used on FreeBSD doesn't know about the -+ // default DVB charset ISO_6937-2 so we'll end up here -+ // for 8-bit chars in channel names that are (usually -+ // wrongly) specified as the default charset - and if -+ // we are converting to utf those will create invalid -+ // encodings. -+ if (to_utf) -+ continue; -+ // FALLTHRU -+ case 0x01 ... 0x7F: -+#else - case 0x01 ... 0xFF: // 20121202: don't touch anything; leave it as it is. -+#endif - *(pdest + pos++) = *(psrc + i); - default:; - } + // Fallback method: copy all printable chars from *inbuf to *outbuf. + size_t i; + size_t pos = 0; ++#ifdef __FreeBSD__ ++ int to_utf = user_charset_id < iconv_codes_count() && ++ !strncmp(iconv_codes[user_charset_id], "UTF", sizeof "UTF" - 1); ++#endif + + for (i = 0; i < nsrc; i++) { + switch((uint8_t) *(psrc + i)) { +@@ -257,7 +261,21 @@ void char_coding(char **inbuf, size_t * + //case 0xA0 ... 0xFF: + // printable chars ISO-6937-2 + // Figure A.1: Character code table 00 - Latin alphabet ++#ifdef __FreeBSD__ ++ case 0x80 ... 0xFF: ++ // the iconv used on FreeBSD doesn't know about the ++ // default DVB charset ISO_6937-2 so we'll end up here ++ // for 8-bit chars in channel names that are (usually ++ // wrongly) specified as the default charset - and if ++ // we are converting to utf those will create invalid ++ // encodings. ++ if (to_utf) ++ continue; ++ // FALLTHRU ++ case 0x01 ... 0x7F: ++#else + case 0x01 ... 0xFF: // 20121202: don't touch anything; leave it as it is. ++#endif + *(pdest + pos++) = *(psrc + i); + default:; + } Index: head/multimedia/w_scan/files/patch-descriptors.c =================================================================== --- head/multimedia/w_scan/files/patch-descriptors.c (nonexistent) +++ head/multimedia/w_scan/files/patch-descriptors.c (revision 417166) @@ -0,0 +1,39 @@ +The code is using gnu C extensions. The following new patchfile under files/ fixes the issue: + +# cat files/patch-descriptors.c +--- descriptors.c.orig 2016-06-20 13:13:56 UTC ++++ descriptors.c +@@ -1000,6 +1000,16 @@ void parse_T2_delivery_system_descriptor + } + } + ++__u8 LeapYear(__u16 year) { ++ if ((year % 400) == 0) ++ return 1; ++ else if ((year % 100) == 0) ++ return 0; ++ else if ((year % 4) == 0) ++ return 1; ++ return 0; ++} ++ + + /* 300468 v011101 annex C, Conversion between time and date conventions + * NOTE: These formulas are applicable between the inclusive dates 1900 March 1 to 2100 February 28. +@@ -1011,16 +1021,6 @@ struct tm modified_julian_date_to_utc(__ + int _M = (int) (MJD - 14956.1 - (int) (_Y * 365.25)) / 30.6001; + int K = (_M == 14) ? 1 : (_M == 15) ? 1 : 0; + +- __u8 LeapYear(__u16 year) { +- if ((year % 400) == 0) +- return 1; +- else if ((year % 100) == 0) +- return 0; +- else if ((year % 4) == 0) +- return 1; +- return 0; +- } +- + memset(&utc, 0, sizeof(struct tm)); + utc.tm_mday = MJD - 14956 - (int) (_Y * 365.25) - (int) (_M * 30.6001); + utc.tm_year = _Y + K; Property changes on: head/multimedia/w_scan/files/patch-descriptors.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/multimedia/w_scan/files/patch-scan.c =================================================================== --- head/multimedia/w_scan/files/patch-scan.c (revision 417165) +++ head/multimedia/w_scan/files/patch-scan.c (revision 417166) @@ -1,13 +1,25 @@ ---- a/scan.c -+++ b/scan.c -@@ -2936,8 +2936,8 @@ int main (int argc, char **argv) +--- scan.c.orig 2016-06-20 13:13:56 UTC ++++ scan.c +@@ -1816,7 +1816,11 @@ static int set_frontend(int frontend_fd, + case SCAN_TERRESTRIAL: + set_cmd_sequence(DTV_DELIVERY_SYSTEM, t->param.u.terr.delivery_system); + if (t->param.u.terr.delivery_system == SYS_DVBT2) { ++#ifndef DTV_DVBT2_PLP_ID ++ set_cmd_sequence(DTV_DVBT2_PLP_ID_LEGACY, t->pids.plp_id); ++#else + set_cmd_sequence(DTV_DVBT2_PLP_ID, t->pids.plp_id); ++#endif + } + set_cmd_sequence(DTV_FREQUENCY, t->param.frequency); + set_cmd_sequence(DTV_INVERSION, t->param.inversion); +@@ -3010,8 +3014,8 @@ int main (int argc, char **argv) cleanup(); return -1; } - if (((adapter > 7) && (adapter != 999)) || (adapter < 0)) { - info("Invalid adapter: out of range (0..7)\n"); + if (((adapter > 255) && (adapter != 999)) || (adapter < 0)) { + info("Invalid adapter: out of range (0..255)\n"); bad_usage(argv[0]); cleanup(); return -1; Index: head/net/bittwist/Makefile =================================================================== --- head/net/bittwist/Makefile (revision 417165) +++ head/net/bittwist/Makefile (revision 417166) @@ -1,20 +1,21 @@ # $FreeBSD$ PORTNAME= bittwist PORTVERSION= 1.1 CATEGORIES= net MASTER_SITES= SF/${PORTNAME}/_BSD/Bit-Twist%20${PORTVERSION} DISTNAME= ${PORTNAME}-bsd-${PORTVERSION} MAINTAINER= wxs@FreeBSD.org COMMENT= Libpcap-based Ethernet packet generator, with PCAP editor WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} -USES= gmake +USES= dos2unix gmake +DOS2UNIX_FILES= Makefile PLIST_FILES= bin/bittwist bin/bittwistb bin/bittwiste \ man/man1/bittwist.1.gz \ man/man1/bittwistb.1.gz \ man/man1/bittwiste.1.gz .include Index: head/net/bittwist/files/patch-Makefile =================================================================== --- head/net/bittwist/files/patch-Makefile (revision 417165) +++ head/net/bittwist/files/patch-Makefile (revision 417166) @@ -1,29 +1,29 @@ ---- Makefile.orig 2011-02-24 23:23:42.000000000 +0800 -+++ Makefile 2014-06-23 10:40:19.186220280 +0800 +--- Makefile.orig 2016-06-20 15:56:31 UTC ++++ Makefile @@ -1,6 +1,6 @@ - SHELL = /bin/sh - --prefix = /usr/local -+prefix = ${PREFIX} - exec_prefix = ${prefix} - bindir = ${exec_prefix}/bin - mandir = ${prefix}/man/man1 -@@ -31,12 +31,12 @@ clean: - rm -f $(SRC)/bittwist $(SRC)/bittwistb $(SRC)/bittwiste - - install: -- mkdir -p $(bindir) -- chmod 755 $(bindir) -- $(INSTALL_PROGRAM) $(SRC)/bittwist $(SRC)/bittwistb $(SRC)/bittwiste $(bindir) -- mkdir -p $(mandir) -- chmod 755 $(mandir) -- $(INSTALL_DATA) $(DOC)/bittwist.1 $(DOC)/bittwistb.1 $(DOC)/bittwiste.1 $(mandir) -+ mkdir -p $(DESTDIR)$(bindir) -+ chmod 755 $(DESTDIR)$(bindir) -+ $(INSTALL_PROGRAM) $(SRC)/bittwist $(SRC)/bittwistb $(SRC)/bittwiste $(DESTDIR)$(bindir) -+ mkdir -p $(DESTDIR)$(mandir) -+ chmod 755 $(DESTDIR)$(mandir) -+ $(INSTALL_DATA) $(DOC)/bittwist.1 $(DOC)/bittwistb.1 $(DOC)/bittwiste.1 $(DESTDIR)$(mandir) - - uninstall: - rm -f $(bindir)/bittwist $(bindir)/bittwistb $(bindir)/bittwiste + SHELL = /bin/sh + +-prefix = /usr/local ++prefix = ${PREFIX} + exec_prefix = ${prefix} + bindir = ${exec_prefix}/bin + mandir = ${prefix}/man/man1 +@@ -31,12 +31,12 @@ clean: + rm -f $(SRC)/bittwist $(SRC)/bittwistb $(SRC)/bittwiste + + install: +- mkdir -p $(bindir) +- chmod 755 $(bindir) +- $(INSTALL_PROGRAM) $(SRC)/bittwist $(SRC)/bittwistb $(SRC)/bittwiste $(bindir) +- mkdir -p $(mandir) +- chmod 755 $(mandir) +- $(INSTALL_DATA) $(DOC)/bittwist.1 $(DOC)/bittwistb.1 $(DOC)/bittwiste.1 $(mandir) ++ mkdir -p $(DESTDIR)$(bindir) ++ chmod 755 $(DESTDIR)$(bindir) ++ $(INSTALL_PROGRAM) $(SRC)/bittwist $(SRC)/bittwistb $(SRC)/bittwiste $(DESTDIR)$(bindir) ++ mkdir -p $(DESTDIR)$(mandir) ++ chmod 755 $(DESTDIR)$(mandir) ++ $(INSTALL_DATA) $(DOC)/bittwist.1 $(DOC)/bittwistb.1 $(DOC)/bittwiste.1 $(DESTDIR)$(mandir) + + uninstall: + rm -f $(bindir)/bittwist $(bindir)/bittwistb $(bindir)/bittwiste Index: head/net/hlmaster/Makefile =================================================================== --- head/net/hlmaster/Makefile (revision 417165) +++ head/net/hlmaster/Makefile (revision 417166) @@ -1,28 +1,30 @@ # Created by: pat@databits.net # $FreeBSD$ PORTNAME= hlmaster PORTVERSION= 0.9.3 CATEGORIES= net games MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}%20${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Half-Life game master server daemon +USES= dos2unix +DOS2UNIX_GLOB= *.cpp GNU_CONFIGURE= yes OPTIONS_DEFINE= DOCS EXAMPLES pre-patch: @${REINPLACE_CMD} -e 's|-O2||' ${WRKSRC}/configure @${FIND} ${WRKSRC} -name Makefile.in | \ ${XARGS} ${REINPLACE_CMD} -e 's|CXXFLAGS = -O2 -Wall||' post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/examples/*.list ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/examples/woncomm.lst ${STAGEDIR}${EXAMPLESDIR} .include Index: head/net/hlmaster/files/patch-HLServerList.cpp =================================================================== --- head/net/hlmaster/files/patch-HLServerList.cpp (revision 417165) +++ head/net/hlmaster/files/patch-HLServerList.cpp (nonexistent) @@ -1,20 +0,0 @@ ---- src/HLServerList.cpp.orig 2007-08-03 13:52:50.000000000 +0200 -+++ src/HLServerList.cpp 2007-08-03 13:53:27.000000000 +0200 -@@ -73,7 +73,7 @@ - m_nSkipRequests = 0; - - // initialize challenge number (should be random) -- m_nChallengeSeed = (int) &m_pHeadDummyItem; -+ m_nChallengeSeed = (intptr_t) &m_pHeadDummyItem; - } - - -@@ -604,7 +604,7 @@ - if(pItem != NULL) - { - // get a fresh, random id -- pItem->m_nChallengeId = GetRandomChallenge((int)&pItem, (int)nTimestamp); -+ pItem->m_nChallengeId = GetRandomChallenge((intptr_t)&pItem, (int)nTimestamp); - } - } - Property changes on: head/net/hlmaster/files/patch-HLServerList.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/net/hlmaster/files/patch-src_HLServerList.cpp =================================================================== --- head/net/hlmaster/files/patch-src_HLServerList.cpp (nonexistent) +++ head/net/hlmaster/files/patch-src_HLServerList.cpp (revision 417166) @@ -0,0 +1,20 @@ +--- src/HLServerList.cpp.orig 2016-06-20 15:57:45 UTC ++++ src/HLServerList.cpp +@@ -73,7 +73,7 @@ HLServerList::HLServerList(int nMaxItems + m_nSkipRequests = 0; + + // initialize challenge number (should be random) +- m_nChallengeSeed = (int) &m_pHeadDummyItem; ++ m_nChallengeSeed = (intptr_t) &m_pHeadDummyItem; + } + + +@@ -604,7 +604,7 @@ HLServerListItem* HLServerList::HeartBea + if(pItem != NULL) + { + // get a fresh, random id +- pItem->m_nChallengeId = GetRandomChallenge((int)&pItem, (int)nTimestamp); ++ pItem->m_nChallengeId = GetRandomChallenge((intptr_t)&pItem, (int)nTimestamp); + } + } + Property changes on: head/net/hlmaster/files/patch-src_HLServerList.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net/rtptools/Makefile =================================================================== --- head/net/rtptools/Makefile (revision 417165) +++ head/net/rtptools/Makefile (revision 417166) @@ -1,23 +1,25 @@ # Created by: fenner # $FreeBSD$ PORTNAME= rtptools PORTVERSION= 1.20 CATEGORIES= net mbone MASTER_SITES= http://www.cs.columbia.edu/IRT/software/rtptools/download/ MAINTAINER= cpm@fbsd.es COMMENT= Set of tools to record, playback, and monitor RTPv2 data streams +USES= dos2unix +DOS2UNIX_GLOB= *.c GNU_CONFIGURE= yes PLIST_FILES= bin/rtpdump bin/rtpplay bin/rtpsend bin/rtptrans PORTDOCS= README ChangeLog.html rtptools.html OPTIONS_DEFINE= DOCS post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} .include Index: head/net/rtptools/files/patch-rtp.h =================================================================== --- head/net/rtptools/files/patch-rtp.h (revision 417165) +++ head/net/rtptools/files/patch-rtp.h (revision 417166) @@ -1,23 +1,23 @@ ---- rtp.h.orig Thu Mar 9 07:35:26 2000 -+++ rtp.h Sat Apr 21 21:52:49 2001 -@@ -110,13 +110,18 @@ +--- rtp.h.orig 2001-12-29 12:48:24 UTC ++++ rtp.h +@@ -112,13 +112,18 @@ typedef struct { #define RTCP_VALID_MASK (0xc000 | 0x2000 | 0xfe) #define RTCP_VALID_VALUE ((RTP_VERSION << 14) | RTCP_SR) +#define RTCP_FRACTION(x) (((x) >> 24) & 0xFF) +#define RTCP_LOST(x) ((((x) & 0xFFFFFF) < 0x800000) ? \ + ((x) & 0xFFFFFF) \ + : (((x) & 0xFFFFFF) - 0x1000000)) + /* * Reception report block */ typedef struct { u_int32 ssrc; /* data source being reported */ - unsigned int fraction:8; /* fraction lost since last SR/RR */ - int lost:24; /* cumul. no. pkts lost (signed!) */ + u_int32 fraclost; /* fraction lost since last SR/RR and */ + /* cumul. no. pkts lost (signed!) */ u_int32 last_seq; /* extended last seq. no. received */ u_int32 jitter; /* interarrival jitter */ u_int32 lsr; /* last SR packet from this source */ Index: head/net/rtptools/files/patch-rtpdump.c =================================================================== --- head/net/rtptools/files/patch-rtpdump.c (revision 417165) +++ head/net/rtptools/files/patch-rtpdump.c (revision 417166) @@ -1,24 +1,24 @@ ---- rtpdump.c.orig Sat Apr 7 08:02:13 2001 -+++ rtpdump.c Sat Apr 21 21:54:10 2001 -@@ -429,8 +429,8 @@ +--- rtpdump.c.orig 2016-06-20 15:59:04 UTC ++++ rtpdump.c +@@ -441,8 +441,8 @@ static int parse_control(FILE *out, char for (i = 0; i < r->common.count; i++) { fprintf(out, " (ssrc=0x%lx fraction=%g lost=%lu last_seq=%lu jit=%lu lsr=%lu dlsr=%lu )\n", (unsigned long)ntohl(r->r.sr.rr[i].ssrc), - r->r.sr.rr[i].fraction / 256., - (unsigned long)ntohl(r->r.sr.rr[i].lost), /* XXX I'm pretty sure this is wrong */ + RTCP_FRACTION(ntohl(r->r.sr.rr[i].fraclost)) / 256., + RTCP_LOST(ntohl(r->r.sr.rr[i].fraclost)), (unsigned long)ntohl(r->r.sr.rr[i].last_seq), (unsigned long)ntohl(r->r.sr.rr[i].jitter), (unsigned long)ntohl(r->r.sr.rr[i].lsr), -@@ -446,8 +446,8 @@ +@@ -458,8 +458,8 @@ static int parse_control(FILE *out, char for (i = 0; i < r->common.count; i++) { fprintf(out, " (ssrc=0x%lx fraction=%g lost=%lu last_seq=%lu jit=%lu lsr=%lu dlsr=%lu )\n", (unsigned long)ntohl(r->r.rr.rr[i].ssrc), - r->r.rr.rr[i].fraction / 256., - (unsigned long)ntohl(r->r.rr.rr[i].lost), + RTCP_FRACTION(ntohl(r->r.rr.rr[i].fraclost)) / 256., + RTCP_LOST(ntohl(r->r.rr.rr[i].fraclost)), (unsigned long)ntohl(r->r.rr.rr[i].last_seq), (unsigned long)ntohl(r->r.rr.rr[i].jitter), (unsigned long)ntohl(r->r.rr.rr[i].lsr), Index: head/net/rtptools/files/patch-rtpsend.c =================================================================== --- head/net/rtptools/files/patch-rtpsend.c (revision 417165) +++ head/net/rtptools/files/patch-rtpsend.c (revision 417166) @@ -1,24 +1,24 @@ ---- rtpsend.c.orig Tue Sep 10 13:24:10 2002 -+++ rtpsend.c Sat Aug 16 08:58:12 2003 -@@ -353,9 +353,9 @@ +--- rtpsend.c.orig 2016-06-20 15:59:04 UTC ++++ rtpsend.c +@@ -354,9 +354,9 @@ static int rtcp_rr(node_t *list, char *p if (strcmp(n->type, "ssrc") == 0) rr->ssrc = htonl(n->num); else if (strcmp(n->type, "fraction") == 0) - rr->fraction = (n->num)*256; - else if (strcmp(n->type, "lost") == 0) /* PP: alignment OK? */ - rr->lost = htonl(n->num); + rr->fraclost = htonl((ntohl(rr->fraclost) & 0x00ffffff) | ((n->num)*256 << 24)); + else if (strcmp(n->type, "lost") == 0) + rr->fraclost = htonl((ntohl(rr->fraclost) & 0xff000000) | n->num); else if (strcmp(n->type, "last_seq") == 0) rr->last_seq = htonl(n->num); else if (strcmp(n->type, "jit") == 0) -@@ -919,6 +919,8 @@ - local = (struct in_addr *)host->h_addr_list[0]; - sin.sin_addr = *local; +@@ -926,6 +926,8 @@ int main(int argc, char *argv[]) + local = (struct in_addr *)host->h_addr_list[0]; + sin.sin_addr = *local; } + } else { + usage(argv[0]); } /* create/connect sockets */ Index: head/net-im/mbpurple/Makefile =================================================================== --- head/net-im/mbpurple/Makefile (revision 417165) +++ head/net-im/mbpurple/Makefile (revision 417166) @@ -1,29 +1,30 @@ # $FreeBSD$ PORTNAME= mbpurple PORTVERSION= 0.3.0 PORTREVISION= 3 CATEGORIES= net-im MASTER_SITES= GOOGLE_CODE PROJECTHOST= microblog-purple MAINTAINER= ports@FreeBSD.org COMMENT= Integrate Twitter with Pidgin (AKA microblog-purple) BUILD_DEPENDS= ${LOCALBASE}/bin/pidgin:net-im/pidgin RUN_DEPENDS= ${LOCALBASE}/bin/pidgin:net-im/pidgin LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/COPYING -USES= gmake pkgconfig +USES= dos2unix gmake pkgconfig +DOS2UNIX_GLOB= *.c MAKE_ARGS= PREFIX="${PREFIX}" LIBDIR="${PREFIX}/lib" \ PURPLE_DATAROOT_DIR="${PREFIX}/share" post-patch: @${REINPLACE_CMD} 's/make -C/$$(MAKE) -C/' ${WRKSRC}/Makefile post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/purple-2/*.so .include Index: head/net-im/mbpurple/files/patch-microblog__mb_net.c =================================================================== --- head/net-im/mbpurple/files/patch-microblog__mb_net.c (revision 417165) +++ head/net-im/mbpurple/files/patch-microblog__mb_net.c (nonexistent) @@ -1,19 +0,0 @@ -diff --git a/microblog/mb_net.c b/microblog/mb_net.c -index 2752aba..962ac1f 100644 ---- microblog/mb_net.c -+++ microblog/mb_net.c -@@ -160,13 +160,13 @@ void mb_conn_fetch_url_cb(PurpleUtilFetchUrlData * url_data, gpointer user_data, - conn_data->fetch_url_data = NULL; - - if(error_message != NULL) { -- mb_conn_data_free(conn_data); - if(conn_data->handler) { - retval = conn_data->handler(conn_data, conn_data->handler_data, error_message); - } - if(ma->gc != NULL) { - purple_connection_error_reason(ma->gc, PURPLE_CONNECTION_ERROR_NETWORK_ERROR, error_message); - } -+ mb_conn_data_free(conn_data); - } else { - mb_http_data_post_read(conn_data->response, url_text, len); - if(conn_data->handler) { Property changes on: head/net-im/mbpurple/files/patch-microblog__mb_net.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/net-im/mbpurple/files/patch-microblog_mb__net.c =================================================================== --- head/net-im/mbpurple/files/patch-microblog_mb__net.c (nonexistent) +++ head/net-im/mbpurple/files/patch-microblog_mb__net.c (revision 417166) @@ -0,0 +1,17 @@ +--- microblog/mb_net.c.orig 2016-06-20 15:55:29 UTC ++++ microblog/mb_net.c +@@ -160,13 +160,13 @@ void mb_conn_fetch_url_cb(PurpleUtilFetc + conn_data->fetch_url_data = NULL; + + if(error_message != NULL) { +- mb_conn_data_free(conn_data); + if(conn_data->handler) { + retval = conn_data->handler(conn_data, conn_data->handler_data, error_message); + } + if(ma->gc != NULL) { + purple_connection_error_reason(ma->gc, PURPLE_CONNECTION_ERROR_NETWORK_ERROR, error_message); + } ++ mb_conn_data_free(conn_data); + } else { + mb_http_data_post_read(conn_data->response, url_text, len); + if(conn_data->handler) { Property changes on: head/net-im/mbpurple/files/patch-microblog_mb__net.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-mgmt/cdpr/Makefile =================================================================== --- head/net-mgmt/cdpr/Makefile (revision 417165) +++ head/net-mgmt/cdpr/Makefile (revision 417166) @@ -1,30 +1,32 @@ # Created by: Michael L. Hostbaek (mich@freebsdcluster.org) # $FreeBSD$ PORTNAME= cdpr PORTVERSION= 2.2.1 CATEGORIES= net-mgmt MASTER_SITES= SF MAINTAINER= mich@FreeBSD.org COMMENT= Cisco Discovery Protocol Reporter +USES= dos2unix +DOS2UNIX_GLOB= *.c *.h LDFLAGS+= -L${LOCALBASE}/lib -lpcap DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} OPTIONS_DEFINE= DOCS do-build: (cd ${WRKSRC} && ${CC} ${CFLAGS} ${LDFLAGS} -o ${PORTNAME} ${PORTNAME}.c cdprs.c conffile.c) do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin ${MKDIR} ${STAGEDIR}${DATADIR} ${INSTALL_DATA} ${WRKSRC}/cdprs/* ${STAGEDIR}${DATADIR} ${INSTALL_DATA} ${WRKSRC}/cdpr.conf ${STAGEDIR}${DATADIR} ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README.cdprs ${STAGEDIR}${DOCSDIR} .include Index: head/net-mgmt/cdpr/files/patch-cdpr.c =================================================================== --- head/net-mgmt/cdpr/files/patch-cdpr.c (revision 417165) +++ head/net-mgmt/cdpr/files/patch-cdpr.c (revision 417166) @@ -1,36 +1,36 @@ ---- cdpr.c.orig Wed Nov 19 17:53:13 2003 -+++ cdpr.c Wed Nov 19 17:54:06 2003 -@@ -639,7 +639,7 @@ +--- cdpr.c.orig 2016-06-20 14:44:21 UTC ++++ cdpr.c +@@ -641,7 +641,7 @@ main(int argc, char *argv[]) pcap_lookupnet(dev, &net, &mask, errbuf); /* Open the pcap device */ - if((handle = pcap_open_live(dev, BUFSIZ, 1, 0, errbuf)) == NULL) + if((handle = pcap_open_live(dev, BUFSIZ, 1, 1000, errbuf)) == NULL) { printf("Error opening device (%s)\n", errbuf); exit(1); -@@ -656,11 +656,6 @@ +@@ -658,11 +658,6 @@ main(int argc, char *argv[]) pcap_setfilter(handle, &filter); pcap_freecode(&filter); - /* Set non-blocking mode */ - if(pcap_setnonblock(handle, 1, errbuf)) - { - pcap_perror(handle, NULL); - } /* Get the next packet that comes in, we only need one */ printf("Waiting for CDP advertisement:\n"); -@@ -671,11 +666,7 @@ +@@ -673,11 +668,7 @@ main(int argc, char *argv[]) do { packet = pcap_next(handle, &header); -#ifdef WIN32 - Sleep(10000); -#else - usleep(10000); -#endif + } while ((!packet) && ( timeout=((start_time+seconds) > (unsigned int)time(NULL))) ); /* Index: head/net-mgmt/cdpr/files/patch-conffile.c =================================================================== --- head/net-mgmt/cdpr/files/patch-conffile.c (revision 417165) +++ head/net-mgmt/cdpr/files/patch-conffile.c (revision 417166) @@ -1,19 +1,19 @@ ---- conffile.c.orig +--- conffile.c.orig 2016-06-20 14:44:21 UTC +++ conffile.c -@@ -57,6 +57,7 @@ - struct hostent *h; - char *addy; - int port; -+ char *tport; - - if (ip && url) - { -@@ -70,7 +71,7 @@ - else - { - strtok(ip,":"); -- char *tport = strtok(NULL,":"); -+ tport = strtok(NULL,":"); - port = atoi(tport); - } - /* +@@ -57,6 +57,7 @@ do_something_with (char *ip, char *url) + struct hostent *h; + char *addy; + int port; ++ char *tport; + + if (ip && url) + { +@@ -70,7 +71,7 @@ do_something_with (char *ip, char *url) + else + { + strtok(ip,":"); +- char *tport = strtok(NULL,":"); ++ tport = strtok(NULL,":"); + port = atoi(tport); + } + /* Index: head/net-p2p/gnewtellium/Makefile =================================================================== --- head/net-p2p/gnewtellium/Makefile (revision 417165) +++ head/net-p2p/gnewtellium/Makefile (revision 417166) @@ -1,23 +1,24 @@ # Created by: haikal # $FreeBSD$ PORTNAME= gnewtellium PORTVERSION= 0.05b PORTREVISION= 5 CATEGORIES= net-p2p MASTER_SITES= SF MAINTAINER= bofh@FreeBSD.org COMMENT= Gnutella client PORTSCOUT= skipv:0.05 # older than current one USE_GNOME= gtk12 -USES= gmake +USES= dos2unix gmake +DOS2UNIX_GLOB= *.c GNU_CONFIGURE= yes MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \ AUTOHEADER="${TRUE}" PLIST_FILES= bin/gnewtellium %%DATADIR%%/pixmaps/gnewtellium.xpm .include Index: head/net-p2p/gnewtellium/files/patch-src__config.c =================================================================== --- head/net-p2p/gnewtellium/files/patch-src__config.c (revision 417165) +++ head/net-p2p/gnewtellium/files/patch-src__config.c (nonexistent) @@ -1,55 +0,0 @@ ---- src/config.c.orig Tue Feb 5 03:50:18 2002 -+++ src/config.c Tue Mar 9 20:37:00 2004 -@@ -539,8 +539,8 @@ - gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); - gtk_widget_show(hbox); - -- label = gtk_label_new("Let Newtella know what speed your Internet Connection is. --Setting this to an accurate number will help you get the most out of -+ label = gtk_label_new("Let Newtella know what speed your Internet Connection is.\n\ -+Setting this to an accurate number will help you get the most out of\n\ - Newtella's advanced bandwidth management."); - gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT); - hbox = gtk_hbox_new(FALSE, 0); -@@ -579,7 +579,7 @@ - gtk_widget_show(button); - - hbox = gtk_hbox_new(FALSE, 0); -- label = gtk_label_new("Select the directory where you want to store your newly -+ label = gtk_label_new("Select the directory where you want to store your newly\n\ - downloaded files."); - gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT); - gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 10); -@@ -627,8 +627,8 @@ - gtk_widget_show(hbox); - gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 5); - -- label = gtk_label_new("Add any number of directories here. --All .mp3 files under any of these directories can then be -+ label = gtk_label_new("Add any number of directories here.\n\ -+All .mp3 files under any of these directories can then be\n\ - downloaded by other Newtella users."); - gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT); - hbox = gtk_hbox_new(FALSE, 0); -@@ -686,8 +686,8 @@ - gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 10); - - hbox = gtk_hbox_new(FALSE, 0); -- label = gtk_label_new("Select how much search results Newtella will maximally send to --other clients. Use this to limit the impact of stupid searches on your -+ label = gtk_label_new("Select how much search results Newtella will maximally send to\n\ -+other clients. Use this to limit the impact of stupid searches on your\n\ - computer."); - gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT); - gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 10); -@@ -724,8 +724,8 @@ - gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 10); - - hbox = gtk_hbox_new(FALSE, 0); -- label = gtk_label_new("Returns the entered IP with search results instead of your real one. --Useful if your're behind a NAT Firewall (like Windows 98 Internet -+ label = gtk_label_new("Returns the entered IP with search results instead of your real one.\n\ -+Useful if your're behind a NAT Firewall (like Windows 98 Internet\n\ - Connection Sharing)"); - gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT); - gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 10); Property changes on: head/net-p2p/gnewtellium/files/patch-src__config.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/net-p2p/gnewtellium/files/patch-src_config.c =================================================================== --- head/net-p2p/gnewtellium/files/patch-src_config.c (nonexistent) +++ head/net-p2p/gnewtellium/files/patch-src_config.c (revision 417166) @@ -0,0 +1,55 @@ +--- src/config.c.orig 2016-06-20 14:36:47 UTC ++++ src/config.c +@@ -539,8 +539,8 @@ void config_draw(void) + gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); + gtk_widget_show(hbox); + +- label = gtk_label_new("Let Newtella know what speed your Internet Connection is. +-Setting this to an accurate number will help you get the most out of ++ label = gtk_label_new("Let Newtella know what speed your Internet Connection is.\n\ ++Setting this to an accurate number will help you get the most out of\n\ + Newtella's advanced bandwidth management."); + gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT); + hbox = gtk_hbox_new(FALSE, 0); +@@ -579,7 +579,7 @@ Newtella's advanced bandwidth management + gtk_widget_show(button); + + hbox = gtk_hbox_new(FALSE, 0); +- label = gtk_label_new("Select the directory where you want to store your newly ++ label = gtk_label_new("Select the directory where you want to store your newly\n\ + downloaded files."); + gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT); + gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 10); +@@ -627,8 +627,8 @@ downloaded files."); + gtk_widget_show(hbox); + gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 5); + +- label = gtk_label_new("Add any number of directories here. +-All .mp3 files under any of these directories can then be ++ label = gtk_label_new("Add any number of directories here.\n\ ++All .mp3 files under any of these directories can then be\n\ + downloaded by other Newtella users."); + gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT); + hbox = gtk_hbox_new(FALSE, 0); +@@ -686,8 +686,8 @@ downloaded by other Newtella users."); + gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 10); + + hbox = gtk_hbox_new(FALSE, 0); +- label = gtk_label_new("Select how much search results Newtella will maximally send to +-other clients. Use this to limit the impact of stupid searches on your ++ label = gtk_label_new("Select how much search results Newtella will maximally send to\n\ ++other clients. Use this to limit the impact of stupid searches on your\n\ + computer."); + gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT); + gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 10); +@@ -724,8 +724,8 @@ computer."); + gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 10); + + hbox = gtk_hbox_new(FALSE, 0); +- label = gtk_label_new("Returns the entered IP with search results instead of your real one. +-Useful if your're behind a NAT Firewall (like Windows 98 Internet ++ label = gtk_label_new("Returns the entered IP with search results instead of your real one.\n\ ++Useful if your're behind a NAT Firewall (like Windows 98 Internet\n\ + Connection Sharing)"); + gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT); + gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 10); Property changes on: head/net-p2p/gnewtellium/files/patch-src_config.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-p2p/torrentsniff/Makefile =================================================================== --- head/net-p2p/torrentsniff/Makefile (revision 417165) +++ head/net-p2p/torrentsniff/Makefile (revision 417166) @@ -1,25 +1,25 @@ # Created by: Pav Lucistnik # $FreeBSD$ PORTNAME= torrentsniff PORTVERSION= 0.3.0 PORTREVISION= 1 CATEGORIES= net-p2p perl5 MASTER_SITES= http://www.highprogrammer.com/alan/perl/ MAINTAINER= jharris@widomaker.com COMMENT= Commandline tool for getting status of torrent RUN_DEPENDS= p5-libwww>=0:www/p5-libwww \ p5-Digest-SHA1>=0:security/p5-Digest-SHA1 NO_BUILD= yes -USES= shebangfix perl5 +USES= dos2unix shebangfix perl5 SHEBANG_FILES= torrentsniff do-install: ${INSTALL_SCRIPT} ${WRKSRC}/torrentsniff ${STAGEDIR}${PREFIX}/bin ${MKDIR} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/BitTorrent ${INSTALL_DATA} ${WRKSRC}/BitTorrent/BDecode.pm ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/BitTorrent .include Index: head/net-p2p/torrentsniff/files/patch-BitTorrent-BDecode.pm =================================================================== --- head/net-p2p/torrentsniff/files/patch-BitTorrent-BDecode.pm (revision 417165) +++ head/net-p2p/torrentsniff/files/patch-BitTorrent-BDecode.pm (nonexistent) @@ -1,10 +0,0 @@ ---- BitTorrent/BDecode.pm.orig Sun Jun 15 05:47:46 2003 -+++ BitTorrent/BDecode.pm Fri Nov 14 18:42:44 2003 -@@ -5,7 +5,6 @@ - use Carp; - use base 'Exporter'; - use strict; --our @EXPORT_OK = qw(bdecode); - - sub bdecode { - my ($dataref) = @_; Property changes on: head/net-p2p/torrentsniff/files/patch-BitTorrent-BDecode.pm ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/net-p2p/torrentsniff/files/patch-BitTorrent_BDecode.pm =================================================================== --- head/net-p2p/torrentsniff/files/patch-BitTorrent_BDecode.pm (nonexistent) +++ head/net-p2p/torrentsniff/files/patch-BitTorrent_BDecode.pm (revision 417166) @@ -0,0 +1,10 @@ +--- BitTorrent/BDecode.pm.orig 2016-06-20 14:38:26 UTC ++++ BitTorrent/BDecode.pm +@@ -5,7 +5,6 @@ package BitTorrent::BDecode; + use Carp; + use base 'Exporter'; + use strict; +-our @EXPORT_OK = qw(bdecode); + + sub bdecode { + my ($dataref) = @_; Property changes on: head/net-p2p/torrentsniff/files/patch-BitTorrent_BDecode.pm ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-p2p/torrentsniff/files/patch-torrentsniff =================================================================== --- head/net-p2p/torrentsniff/files/patch-torrentsniff (revision 417165) +++ head/net-p2p/torrentsniff/files/patch-torrentsniff (revision 417166) @@ -1,11 +1,11 @@ ---- torrentsniff.orig Fri Nov 14 18:17:20 2003 -+++ torrentsniff Fri Nov 14 18:27:24 2003 -@@ -115,7 +115,7 @@ - my($file, $report_file_info, $report_tracker_info) = @_; - print "$file\n"; - local *TOR; -- if( not open(TOR, "<", $file) ) { -+ if( not open(TOR, "< $file") ) { - print STDERR "Unable to read $file because of $!\n"; - return 0; - } +--- torrentsniff.orig 2016-06-20 14:38:26 UTC ++++ torrentsniff +@@ -115,7 +115,7 @@ sub process_file { + my($file, $report_file_info, $report_tracker_info) = @_; + print "$file\n"; + local *TOR; +- if( not open(TOR, "<", $file) ) { ++ if( not open(TOR, "< $file") ) { + print STDERR "Unable to read $file because of $!\n"; + return 0; + } Index: head/news/newsfetch/Makefile =================================================================== --- head/news/newsfetch/Makefile (revision 417165) +++ head/news/newsfetch/Makefile (revision 417166) @@ -1,27 +1,28 @@ # Created by: Jun-ichiro itojun Itoh # $FreeBSD$ PORTNAME= newsfetch PORTVERSION= 1.21 PORTREVISION= 2 CATEGORIES= news MASTER_SITES= SUNSITE/system/news/readers MAINTAINER= ports@FreeBSD.org COMMENT= Download news articles from NNTP server MAKE_ENV= BINDIR="${PREFIX}/bin" MANDIR="${PREFIX}/man/man" -USES= uidfix +USES= dos2unix uidfix +DOS2UNIX_GLOB= *.c CFLAGS+= -Wno-return-type PLIST_FILES= bin/newsfetch \ man/man1/newsfetch.1.gz do-configure: (cd ${WRKSRC} && ( \ ${ECHO_CMD} "PROG= newsfetch"; \ ${ECHO_CMD} "SRCS=" *.c; \ ${ECHO_CMD} ".include "; \ ) > Makefile) .include Index: head/news/newsfetch/files/patch-newsfetch.1 =================================================================== --- head/news/newsfetch/files/patch-newsfetch.1 (revision 417165) +++ head/news/newsfetch/files/patch-newsfetch.1 (revision 417166) @@ -1,11 +1,11 @@ ---- newsfetch.1.orig Tue Apr 14 20:04:25 1998 -+++ newsfetch.1 Fri Jan 26 23:41:22 2001 -@@ -5,7 +5,7 @@ +--- newsfetch.1.orig 1998-04-14 11:04:25 UTC ++++ newsfetch.1 +@@ -5,7 +5,7 @@ newsfetch - Pull news from an NNTP serve .SH SYNOPSIS .B newsfetch .BI -hostname +hostname[:port] [ .BI \-clsyvV ] Index: head/news/newsfetch/files/patch-newsfetch.c =================================================================== --- head/news/newsfetch/files/patch-newsfetch.c (revision 417165) +++ head/news/newsfetch/files/patch-newsfetch.c (revision 417166) @@ -1,44 +1,44 @@ ---- newsfetch.c.orig Thu Jul 23 18:28:56 1998 -+++ newsfetch.c Fri Jan 26 23:41:22 2001 +--- newsfetch.c.orig 2016-06-20 15:59:53 UTC ++++ newsfetch.c @@ -7,6 +7,7 @@ #include +#include #include #include #include -@@ -28,6 +29,7 @@ +@@ -28,6 +29,7 @@ int terminate = 1; int wait_after_articles = 0, articles_fetched=0, last_than_current; int wait_for_time = 0, timeout=READ_TIMEOUT, article_fetching=0; int cleanup=1, max_article, news_target=0, first_article, only_list=0; +int port = 119; char group[100], pipe_command[100]; FILE *rcfp, *rctmpfp, *socket_fp[2]; char lockfile[100]; -@@ -59,6 +61,16 @@ +@@ -59,6 +61,16 @@ if(argc < 2) getHomedir(homedir); strcpy(hostname,argv[1]); + { + char *p; + int n; + + if (NULL != (p = strchr(hostname, ':')) && 0 < (n = atoi(p + 1))) { + port = n; + *p = '\0'; + } + } + get_commandline(argc, argv, dirname, rcfile, &cleanup, &wait_after_articles, &wait_for_time, &command_flag, execute_command, -@@ -75,7 +87,7 @@ +@@ -75,7 +87,7 @@ if(argc < 2) generateProcmailrc(homedir, rcfile, dirname, pipe_command); } - socket_id=ConnectServer(hostname,119, 0); + socket_id=ConnectServer(hostname, port, 0); /* two file descriptor are for portability among diff systems */ createFd(socket_id, socket_fp); Index: head/news/newsfetch/files/patch-nntp.c =================================================================== --- head/news/newsfetch/files/patch-nntp.c (revision 417165) +++ head/news/newsfetch/files/patch-nntp.c (revision 417166) @@ -1,106 +1,106 @@ ---- nntp.c.orig Thu Jul 23 12:03:11 1998 -+++ nntp.c Thu Jan 27 17:19:01 2005 -@@ -20,6 +20,7 @@ - - char *header; - #define MAXBUFSIZE 500 +--- nntp.c.orig 2016-06-20 15:59:53 UTC ++++ nntp.c +@@ -20,6 +20,7 @@ extern FILE *rcfp, *rctmpfp, *socket_fp[ + + char *header; + #define MAXBUFSIZE 500 +#define GROUP_FMT "%99s" - char command_buf[MAXBUFSIZE+1]; - - readNNTPdata() -@@ -33,7 +34,7 @@ - { - /* dummy read to flush input */ - readNNTPdata(); -- fprintf(socket_fp[0],"MODE READER\n"); -+ fprintf(socket_fp[0],"MODE READER\r\n"); - readNNTPdata(); - return(get_error(command_buf)); - } -@@ -140,7 +141,8 @@ - else - fprintf(rctmpfp,"%s",command_buf); - } -- items_read=sscanf(command_buf,"%s %d %d", group, &first_article, &max_article); -+ items_read=sscanf(command_buf,GROUP_FMT "%d %d", group, &first_article, &max_article); -+ group[sizeof(group)-1] = '\0'; - if(items_read < 2) - return(0); - return(items_read); -@@ -151,7 +153,7 @@ - int first_art, last_art, total_art, tmp ; - - fprintf(stderr,"%s: ",group); -- fprintf(socket_fp[0],"GROUP %s\n",group); -+ fprintf(socket_fp[0],"GROUP %s\r\n",group); - readNNTPdata(); - - #ifdef DEBUG -@@ -180,7 +182,7 @@ - first_article = last_art - max_article + 1; - } - -- fprintf(socket_fp[0],"STAT %d\n",first_article); -+ fprintf(socket_fp[0],"STAT %d\r\n",first_article); - readNNTPdata(); - - while(!get_error1(command_buf)) -@@ -196,7 +198,7 @@ - return(0); - } - -- fprintf(socket_fp[0],"STAT %d\n",first_article); -+ fprintf(socket_fp[0],"STAT %d\r\n",first_article); - readNNTPdata(); - } - fprintf(stderr,"articles %d to %d\n",first_article,last_art); -@@ -256,7 +258,7 @@ - fprintf(stderr," %c",0xd); - } - -- fprintf(socket_fp[0],"ARTICLE\n"); -+ fprintf(socket_fp[0],"ARTICLE\r\n"); - readNNTPdata(); - if(!get_error(command_buf)) - return(0); -@@ -275,7 +277,7 @@ - } - - /* Make it little fast */ -- fprintf(socket_fp[0],"NEXT\n"); -+ fprintf(socket_fp[0],"NEXT\r\n"); - - article_fetching=1; - -@@ -329,17 +331,19 @@ - char groupname[100]; - - fprintf(stderr, "\nList of NewsGroups:\n"); -- fprintf(socket_fp[0],"LIST\n"); -+ fprintf(socket_fp[0],"LIST\r\n"); - readNNTPdata(); - if(!get_error2(command_buf)) - exit(1); - readNNTPdata(); -- sscanf(command_buf,"%s",groupname); -+ sscanf(command_buf,GROUP_FMT,groupname); -+ groupname[sizeof(groupname)-1] = '\0'; - while(command_buf[0] != '.' || command_buf[1] != 13 )/*|| command_buf[1] != 10)*/ - { - fprintf(stderr,"%s\n",groupname); - readNNTPdata(); -- sscanf(command_buf,"%s",groupname); -+ sscanf(command_buf,GROUP_FMT,groupname); -+ groupname[sizeof(groupname)-1] = '\0'; - } - exit(1); - -@@ -348,7 +352,7 @@ - sendQuit() - { - -- fprintf(socket_fp[0],"QUIT\n"); -+ fprintf(socket_fp[0],"QUIT\r\n"); - readNNTPdata(); - } - + char command_buf[MAXBUFSIZE+1]; + + readNNTPdata() +@@ -33,7 +34,7 @@ setReaderMode() + { + /* dummy read to flush input */ + readNNTPdata(); +- fprintf(socket_fp[0],"MODE READER\n"); ++ fprintf(socket_fp[0],"MODE READER\r\n"); + readNNTPdata(); + return(get_error(command_buf)); + } +@@ -140,7 +141,8 @@ while(comment) + else + fprintf(rctmpfp,"%s",command_buf); + } +- items_read=sscanf(command_buf,"%s %d %d", group, &first_article, &max_article); ++ items_read=sscanf(command_buf,GROUP_FMT "%d %d", group, &first_article, &max_article); ++ group[sizeof(group)-1] = '\0'; + if(items_read < 2) + return(0); + return(items_read); +@@ -151,7 +153,7 @@ checkGroup() + int first_art, last_art, total_art, tmp ; + + fprintf(stderr,"%s: ",group); +- fprintf(socket_fp[0],"GROUP %s\n",group); ++ fprintf(socket_fp[0],"GROUP %s\r\n",group); + readNNTPdata(); + + #ifdef DEBUG +@@ -180,7 +182,7 @@ int first_art, last_art, total_art, tmp + first_article = last_art - max_article + 1; + } + +- fprintf(socket_fp[0],"STAT %d\n",first_article); ++ fprintf(socket_fp[0],"STAT %d\r\n",first_article); + readNNTPdata(); + + while(!get_error1(command_buf)) +@@ -196,7 +198,7 @@ int first_art, last_art, total_art, tmp + return(0); + } + +- fprintf(socket_fp[0],"STAT %d\n",first_article); ++ fprintf(socket_fp[0],"STAT %d\r\n",first_article); + readNNTPdata(); + } + fprintf(stderr,"articles %d to %d\n",first_article,last_art); +@@ -256,7 +258,7 @@ int check_header = 1; + fprintf(stderr," %c",0xd); + } + +- fprintf(socket_fp[0],"ARTICLE\n"); ++ fprintf(socket_fp[0],"ARTICLE\r\n"); + readNNTPdata(); + if(!get_error(command_buf)) + return(0); +@@ -275,7 +277,7 @@ int check_header = 1; + } + + /* Make it little fast */ +- fprintf(socket_fp[0],"NEXT\n"); ++ fprintf(socket_fp[0],"NEXT\r\n"); + + article_fetching=1; + +@@ -329,17 +331,19 @@ getGroupList() + char groupname[100]; + + fprintf(stderr, "\nList of NewsGroups:\n"); +- fprintf(socket_fp[0],"LIST\n"); ++ fprintf(socket_fp[0],"LIST\r\n"); + readNNTPdata(); + if(!get_error2(command_buf)) + exit(1); + readNNTPdata(); +- sscanf(command_buf,"%s",groupname); ++ sscanf(command_buf,GROUP_FMT,groupname); ++ groupname[sizeof(groupname)-1] = '\0'; + while(command_buf[0] != '.' || command_buf[1] != 13 )/*|| command_buf[1] != 10)*/ + { + fprintf(stderr,"%s\n",groupname); + readNNTPdata(); +- sscanf(command_buf,"%s",groupname); ++ sscanf(command_buf,GROUP_FMT,groupname); ++ groupname[sizeof(groupname)-1] = '\0'; + } + exit(1); + +@@ -348,7 +352,7 @@ exit(1); + sendQuit() + { + +- fprintf(socket_fp[0],"QUIT\n"); ++ fprintf(socket_fp[0],"QUIT\r\n"); + readNNTPdata(); + } + Index: head/news/newsfetch/files/patch-opt.c =================================================================== --- head/news/newsfetch/files/patch-opt.c (revision 417165) +++ head/news/newsfetch/files/patch-opt.c (revision 417166) @@ -1,13 +1,13 @@ ---- opt.c.orig Wed Nov 19 19:01:47 2003 -+++ opt.c Wed Nov 19 19:01:47 2003 -@@ -192,8 +192,8 @@ +--- opt.c.orig 2016-06-20 15:59:53 UTC ++++ opt.c +@@ -192,8 +192,8 @@ opt_help(char *prog_name) { char *options= -" [-clsyvV] [-d dirname] [-f rcfile] [-t N] - [-T timeout] [-w M ] [-pPY filter] [-x command] +" [-clsyvV] [-d dirname] [-f rcfile] [-t N]\n\ + [-T timeout] [-w M ] [-pPY filter] [-x command]\n\ "; fprintf(stderr,"Usage: %s nntp_server [options]\n", prog_name); fprintf(stderr,"Options:\n%s\n",options); Index: head/news/newsfetch/files/patch-util.c =================================================================== --- head/news/newsfetch/files/patch-util.c (revision 417165) +++ head/news/newsfetch/files/patch-util.c (revision 417166) @@ -1,27 +1,27 @@ ---- util.c.orig Wed Nov 19 19:01:47 2003 -+++ util.c Wed Nov 19 19:01:47 2003 -@@ -61,15 +61,15 @@ +--- util.c.orig 2016-06-20 15:59:53 UTC ++++ util.c +@@ -61,15 +61,15 @@ generateProcmailrc(char *homedir, char * FILE *fp, *fp1, *fp2; char *tmp, buf[200], group[180], filterfile[100], procmailrcfile[100]; int i,j; -char *title=" - -############### Generated by Newsfetch ############################## -# New version of Newsfetch is available from # -# # -# http://ulf.wep.net/newsfetch.html # -# Feedback and Comments to Yusuf Motiwala # -###################################################################### - +char *title="\n\ +\n\ +############### Generated by Newsfetch ##############################\n\ +# New version of Newsfetch is available from #\n\ +# #\n\ +# http://ulf.wep.net/newsfetch.html #\n\ +# Feedback and Comments to Yusuf Motiwala #\n\ +######################################################################\n\ +\n\ "; strcpy(filterfile,homedir); Index: head/print/panda/Makefile =================================================================== --- head/print/panda/Makefile (revision 417165) +++ head/print/panda/Makefile (revision 417166) @@ -1,44 +1,45 @@ # Created by: Akinori MUSHA aka knu # $FreeBSD$ PORTNAME= panda PORTVERSION= 0.5.4 PORTREVISION= 9 CATEGORIES= print MASTER_SITES= SF \ SAVANNAH \ http://www.stillhq.com/panda/source/ MAINTAINER= ports@FreeBSD.org COMMENT= PDF generation library LICENSE= GPLv2 LGPL21 LICENSE_COMB= dual LIB_DEPENDS= libpng.so:graphics/png \ libtiff.so:graphics/tiff GNU_CONFIGURE= yes CONFIGURE_ARGS= --enable-berkeley-db CPPFLAGS+= -I${BDB_INCLUDE_DIR} -I${LOCALBASE}/include LIBS+= -L${BDB_LIB_DIR} -L${LOCALBASE}/lib INSTALL_TARGET= install-strip -USES= autoreconf gmake jpeg libtool pathfix pkgconfig tar:bzip2 +USES= autoreconf dos2unix gmake jpeg libtool pathfix pkgconfig tar:bzip2 +DOS2UNIX_GLOB= *.c PATHFIX_MAKEFILEIN= Makefile.am USE_BDB= yes USE_LDCONFIG= yes OPTIONS_DEFINE= DOCS EXAMPLES post-install: ${INSTALL_MAN} ${WRKSRC}/man/panda_*.3 ${STAGEDIR}${MANPREFIX}/man/man3 @${MKDIR} ${STAGEDIR}${DOCSDIR} .for f in AUTHORS CONTRIBUTORS ChangeLog DEV-HINTS README TODO UNDERWAY ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR} .endfor @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} .for f in IMAGES examples/*.c examples/c++/*.cpp examples/images/*.* ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${EXAMPLESDIR} .endfor .include Index: head/print/panda/files/patch-configure.in =================================================================== --- head/print/panda/files/patch-configure.in (revision 417165) +++ head/print/panda/files/patch-configure.in (revision 417166) @@ -1,26 +1,26 @@ --- configure.in.orig 2004-04-13 00:46:24 UTC +++ configure.in -@@ -28,7 +28,7 @@ +@@ -28,7 +28,7 @@ dnl -ldmalloc: dnl AC_CHECK_LIB(dmalloc, malloc) dnl -lpng:: -AC_CHECK_LIB(png, png_libpng_ver, CFLAGS="$CFLAGS -DHAVE_LIBPNG" LDFLAGS="$LDFLAGS -lpng" ) +AC_CHECK_LIB(png, png_get_libpng_ver, CFLAGS="$CFLAGS -DHAVE_LIBPNG" LDFLAGS="$LDFLAGS -lpng" ) dnl -ltiff: AC_CHECK_LIB(tiff, TIFFOpen, CFLAGS="$CFLAGS -DHAVE_LIBTIFF" LDFLAGS="$LDFLAGS -ltiff") -@@ -52,12 +52,12 @@ +@@ -52,12 +52,12 @@ else if test "z$DATABASE" = "zedb"; then AC_CHECK_LIB(edb, e_db_open, [LDFLAGS="$LDFLAGS -ledb" DATABASE="edb" AC_DEFINE([USE_EDB], [], [Use Edb])], - [AC_MSG_RESULT([not found]), + [AC_MSG_RESULT([not found]) AC_MSG_ERROR([please reinstall the Edb distribution])]) elif test "z$DATABASE" = "zdb"; then AC_CHECK_LIB(db, db_create, [LDFLAGS="$LDFLAGS -ldb" DATABASE="db" AC_DEFINE([USE_DB], [], [Use Berkeley DB])], - [AC_MSG_RESULT([not found]), + [AC_MSG_RESULT([not found]) AC_MSG_ERROR([please reinstall the Berkeley DB distribution])]) fi fi Index: head/print/panda/files/patch-database.c =================================================================== --- head/print/panda/files/patch-database.c (revision 417165) +++ head/print/panda/files/patch-database.c (revision 417166) @@ -1,29 +1,29 @@ ---- ./database.c.orig 2004-04-13 02:46:24.000000000 +0200 -+++ ./database.c 2014-08-15 19:09:39.000000000 +0200 -@@ -160,6 +160,12 @@ +--- database.c.orig 2016-06-20 16:04:03 UTC ++++ database.c +@@ -160,6 +160,12 @@ panda_dbwrite (panda_pdf * document, cha panda_windbwrite (document, key, value); #else +#ifdef USE_EDB + e_db_data_set((E_DB_File *)document->db, key, value, strlen(value)+1); +#else + DBT db_key, db_data; + int ec; + #if defined DEBUG printf ("Storing (%s, %s) in 0x%08x\n", key, value, document->db); #endif -@@ -169,13 +175,6 @@ +@@ -169,13 +175,6 @@ panda_dbwrite (panda_pdf * document, cha if (value == NULL) panda_error (panda_true, "Cannot store null value\n"); -#ifdef USE_EDB - - e_db_data_set((E_DB_File *)document->db, key, value, strlen(value)+1); -#else - DBT db_key, db_data; - int ec; - memset(&db_key, 0, sizeof(db_key)); memset(&db_data, 0, sizeof(db_data)); db_key.data = key; Index: head/print/panda/files/patch-images.c =================================================================== --- head/print/panda/files/patch-images.c (revision 417165) +++ head/print/panda/files/patch-images.c (revision 417166) @@ -1,38 +1,38 @@ ---- ./images.c.orig 2004-04-13 02:46:24.000000000 +0200 -+++ ./images.c 2014-08-15 19:11:07.000000000 +0200 -@@ -835,7 +835,7 @@ +--- images.c.orig 2016-06-20 16:04:03 UTC ++++ images.c +@@ -835,7 +835,7 @@ panda_insertPNG (panda_pdf * output, pan panda_object * imageObj, char *filename) { FILE *image; - unsigned long width, height; + png_uint_32 width, height; int bitdepth, colourtype, outColourType; png_uint_32 i, rowbytes; png_structp png; -@@ -854,7 +854,7 @@ +@@ -854,7 +854,7 @@ panda_insertPNG (panda_pdf * output, pan // Check that it really is a PNG file fread (sig, 1, 8, image); - if (!png_check_sig (sig, 8)) + if (png_sig_cmp (sig, 0, 8)) panda_error (panda_true, "PNG file was invalid"); // Start decompressing -@@ -1399,7 +1399,7 @@ +@@ -1399,7 +1399,7 @@ void panda_imagesizePNG (int *width, int *height, char *filename) { FILE * image; - unsigned long pwidth, pheight; + png_uint_32 pwidth, pheight; int bitdepth, colourtype; png_structp png; png_infop info; -@@ -1411,7 +1411,7 @@ +@@ -1411,7 +1411,7 @@ panda_imagesizePNG (int *width, int *hei // Check that it really is a PNG file fread (sig, 1, 8, image); - if (!png_check_sig (sig, 8)) + if (png_sig_cmp (sig, 0, 8)) panda_error (panda_true, "PNG file was invalid"); // Start decompressing Index: head/print/panda/files/patch-objects.c =================================================================== --- head/print/panda/files/patch-objects.c (revision 417165) +++ head/print/panda/files/patch-objects.c (revision 417166) @@ -1,11 +1,11 @@ ---- ./objects.c.orig 2004-04-13 02:46:24.000000000 +0200 -+++ ./objects.c 2014-08-15 19:09:39.000000000 +0200 -@@ -99,7 +99,7 @@ +--- objects.c.orig 2016-06-20 16:04:03 UTC ++++ objects.c +@@ -99,7 +99,7 @@ panda_newobject (panda_pdf * doc, int ty created->children = (panda_child *) panda_xmalloc (sizeof (panda_child)); ((panda_child *) created->children)->next = NULL; - (panda_child *) created->cachedLastChild = NULL; + created->cachedLastChild = NULL; // By default this object is not a pages object created->isPages = panda_false; Index: head/print/panda/files/patch-utility.c =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: head/security/dcetest/Makefile =================================================================== --- head/security/dcetest/Makefile (revision 417165) +++ head/security/dcetest/Makefile (revision 417166) @@ -1,21 +1,24 @@ # Created by: Yonatan # $FreeBSD$ PORTNAME= dcetest PORTVERSION= 1.2 CATEGORIES= security MASTER_SITES= PACKETSTORM/UNIX/scanners MAINTAINER= onatan@gmail.com COMMENT= Utility to dump MSRPC endpoint information from Windows systems +USES= dos2unix +DOS2UNIX_GLOB= *.c + ALL_TARGET= dcetest MAKE_ARGS= CC="${CC}" WRKSRC= ${WRKDIR}/${PORTNAME} PLIST_FILES= bin/dcetest do-install: ${INSTALL_PROGRAM} ${WRKSRC}/dcetest ${STAGEDIR}${PREFIX}/bin .include Index: head/security/dcetest/files/patch-Makefile =================================================================== --- head/security/dcetest/files/patch-Makefile (revision 417165) +++ head/security/dcetest/files/patch-Makefile (revision 417166) @@ -1,10 +1,10 @@ ---- Makefile.orig Sat Jan 11 06:22:46 2003 -+++ Makefile Sat Jan 11 06:23:10 2003 +--- Makefile.orig 2001-08-20 20:40:40 UTC ++++ Makefile @@ -1,6 +1,6 @@ .SUFFIXES: .a .o .c CC = gcc -CFLAGS = -Wall -funsigned-char -c -fPIC -ggdb +CFLAGS += -Wall -funsigned-char -c -fPIC -ggdb BINS = dcetest ALL = $(BINS) Index: head/security/dcetest/files/patch-dcetest.c =================================================================== --- head/security/dcetest/files/patch-dcetest.c (revision 417165) +++ head/security/dcetest/files/patch-dcetest.c (revision 417166) @@ -1,11 +1,11 @@ ---- dcetest.c.orig Tue Feb 15 11:32:36 2005 -+++ dcetest.c Tue Feb 15 11:31:48 2005 -@@ -359,7 +359,7 @@ - int tint; - char annotation[EPT_MAX_ANNOTATION_SIZE+1]; - int floor, floors; -- int address_type; -+ int address_type=0; - - char tmp_address[200]; - char tmp_address2[200]; +--- dcetest.c.orig 2016-06-20 15:23:56 UTC ++++ dcetest.c +@@ -359,7 +359,7 @@ dce_parse_enum_response(const unsigned c + int tint; + char annotation[EPT_MAX_ANNOTATION_SIZE+1]; + int floor, floors; +- int address_type; ++ int address_type=0; + + char tmp_address[200]; + char tmp_address2[200]; Index: head/security/dcetest/files/patch-tcpstuff.c =================================================================== --- head/security/dcetest/files/patch-tcpstuff.c (revision 417165) +++ head/security/dcetest/files/patch-tcpstuff.c (revision 417166) @@ -1,32 +1,32 @@ ---- tcpstuff.c.orig Sat Jan 11 06:46:08 2003 -+++ tcpstuff.c Sat Jan 11 06:50:59 2003 -@@ -229,6 +229,7 @@ +--- tcpstuff.c.orig 2016-06-20 15:23:56 UTC ++++ tcpstuff.c +@@ -229,6 +229,7 @@ make_tcp_listener(unsigned short localpo /* this function takes in a listenFd and returns an acceptedFd */ +/* This is not used and gives a security warning in FreeBSD ports int tcp_accept(int listenFd) { -@@ -242,12 +243,14 @@ +@@ -242,12 +243,14 @@ tcp_accept(int listenFd) (struct sockaddr *)&clientAddr, &addrLen)) < 0) { +*/ /* This is always an error, looping or not */ +/* return -1; } - +*/ /* Set the "don't linger on close" option */ - +/* lingerVal.l_onoff = 0; lingerVal.l_linger = 0; if (setsockopt(clientFd, SOL_SOCKET, SO_LINGER, -@@ -260,3 +263,4 @@ +@@ -260,3 +263,4 @@ tcp_accept(int listenFd) return(clientFd); } +*/ Index: head/security/dcetest/files/patch-tcpstuff.h =================================================================== --- head/security/dcetest/files/patch-tcpstuff.h (revision 417165) +++ head/security/dcetest/files/patch-tcpstuff.h (revision 417166) @@ -1,10 +1,10 @@ ---- tcpstuff.h.orig Sat Jan 11 06:48:15 2003 -+++ tcpstuff.h Sat Jan 11 06:48:54 2003 -@@ -42,5 +42,7 @@ +--- tcpstuff.h.orig 2001-08-20 20:29:56 UTC ++++ tcpstuff.h +@@ -42,5 +42,7 @@ make_tcp_listener(unsigned short localpo int write_uint32(int fd,uint32 data); +/* This is not used and gives a warning in FreeBSD's ports system int tcp_accept(int listenFd); +*/ Index: head/security/iaikpkcs11wrapper/Makefile =================================================================== --- head/security/iaikpkcs11wrapper/Makefile (revision 417165) +++ head/security/iaikpkcs11wrapper/Makefile (revision 417166) @@ -1,57 +1,58 @@ # Created by: Alex Dupre # $FreeBSD$ PORTNAME= iaikPkcs11Wrapper PORTVERSION= 1.2.18 CATEGORIES= security java devel MASTER_SITES= LOCAL/ale DISTNAME= ${PORTNAME}_${PORTVERSION:S/./_/g} MAINTAINER= ale@FreeBSD.org COMMENT= PKCS\#11 Java wrapper OPTIONS_DEFINE= DOCS EXAMPLES USES= dos2unix gmake zip USE_JAVA= yes -DOS2UNIX_FILES= Makefile +DOS2UNIX_GLOB= Makefile *.c +DOS2UNIX_WRKSRC= ${WRKDIR}/src/native JAVA_VERSION= 1.6+ JAVA_OS= native ALL_TARGET= release -PLIST_FILES= lib/libpkcs11wrapper.so %%JAVAJARDIR%%/iaikPkcs11Wrapper.jar +PLIST_FILES= lib/libpkcs11wrapper.so ${JAVAJARDIR}/iaikPkcs11Wrapper.jar PORTDOCS= * PORTEXAMPLES= * .include .if ${ARCH} == "amd64" || ${ARCH} == "ia64" WRKSRC= ${WRKDIR}/src/native/unix/linux-x86_64 .else WRKSRC= ${WRKDIR}/src/native/unix/linux-x86 .endif do-install: @${ECHO_MSG} -n ">> Installing JNI library in ${PREFIX}/lib..." @${INSTALL_PROGRAM} ${WRKSRC}/release/libpkcs11wrapper.so ${STAGEDIR}${PREFIX}/lib/ @${ECHO_MSG} " [ DONE ]" @${ECHO_MSG} -n ">> Installing JAR file as ${JAVAJARDIR}/iaikPkcs11Wrapper.jar..." @${INSTALL_DATA} ${WRKDIR}/bin/iaikPkcs11Wrapper.jar ${STAGEDIR}${JAVAJARDIR}/ @${ECHO_MSG} " [ DONE ]" @${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..." .if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${STAGEDIR}${DOCSDIR} @cd ${WRKDIR}/docs && ${FIND} * | \ ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${DOCSDIR} > /dev/null 2>&1 @${ECHO_MSG} " [ DONE ]" @${ECHO_MSG} -n ">> Installing examples in ${EXAMPLESDIR}..." .endif .if ${PORT_OPTIONS:MEXAMPLES} @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} @cd ${WRKDIR}/examples && ${FIND} * | \ ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${EXAMPLESDIR} > /dev/null 2>&1 @${ECHO_MSG} " [ DONE ]" .endif .include Index: head/security/iaikpkcs11wrapper/files/patch-Makefile =================================================================== --- head/security/iaikpkcs11wrapper/files/patch-Makefile (revision 417165) +++ head/security/iaikpkcs11wrapper/files/patch-Makefile (revision 417166) @@ -1,7 +1,7 @@ ---- Makefile.orig 2013-10-30 08:34:48.105849638 +0000 -+++ Makefile 2013-10-30 08:35:06.293848426 +0000 +--- Makefile.orig 2016-06-20 15:16:34 UTC ++++ Makefile @@ -1,4 +1,3 @@ -CC = gcc SOURCE_DIR = ../../common/ PLATFORM_SRC_INCLUDE = ../src/ DEBUG_OUTPUT_DIR = debug/ Index: head/security/iaikpkcs11wrapper/files/patch-native_src_pkcs11wrapper.c =================================================================== --- head/security/iaikpkcs11wrapper/files/patch-native_src_pkcs11wrapper.c (revision 417165) +++ head/security/iaikpkcs11wrapper/files/patch-native_src_pkcs11wrapper.c (revision 417166) @@ -1,44 +1,44 @@ ---- ../../common/pkcs11wrapper.c.orig 2011-11-03 12:15:18.000000000 +0100 -+++ ../../common/pkcs11wrapper.c 2011-11-13 21:55:57.000000000 +0100 -@@ -1258,6 +1258,7 @@ - jobject jAttribute; - CK_RV rv; - CK_ULONG error = 0; -+ CK_BBOOL array = FALSE; - ModuleData *moduleData; - CK_FUNCTION_LIST_PTR ckpFunctions; - -@@ -1328,9 +1329,11 @@ - for (j=0; jC_GetAttributeValue)(ckSessionHandle, ckObjectHandle, ckpAttributes, ckAttributesLength); - if(ckAssertReturnValueOK(env, rv, __FUNCTION__) != CK_ASSERT_OK) { -@@ -1343,6 +1346,7 @@ - TRACE0(tag_call, __FUNCTION__, "exiting "); - return ; - } -+ } - - /* now, the ulValueLength field of each attribute should hold the exact buffer length needed - * to allocate the needed buffers accordingly -@@ -4474,11 +4478,12 @@ - jpTemp = (jchar*) malloc((*ckpLength) * sizeof(jchar)); - if (jpTemp == NULL && (*ckpLength)!=0) { *ckpArray = NULL_PTR; throwOutOfMemoryError(env); return 1; } - (*env)->GetCharArrayRegion(env, jArray, 0, *ckpLength, jpTemp); -- *ckpArray = (CK_UTF8CHAR_PTR) malloc (*ckpLength * sizeof(CK_UTF8CHAR)); -+ *ckpArray = (CK_UTF8CHAR_PTR) malloc ((*ckpLength + 1) * sizeof(CK_UTF8CHAR)); - if (*ckpArray == NULL && (*ckpLength)!=0) { free(jpTemp); throwOutOfMemoryError(env); return 2; } - for (i=0; i<(*ckpLength); i++) { - (*ckpArray)[i] = jCharToCKUTF8Char(jpTemp[i]); - } -+ (*ckpArray)[*ckpLength] = NULL_PTR; - free(jpTemp); - return 0; - } +--- ../../common/pkcs11wrapper.c.orig 2016-06-20 15:16:34 UTC ++++ ../../common/pkcs11wrapper.c +@@ -1258,6 +1258,7 @@ JNIEXPORT void JNICALL Java_iaik_pkcs_pk + jobject jAttribute; + CK_RV rv; + CK_ULONG error = 0; ++ CK_BBOOL array = FALSE; + ModuleData *moduleData; + CK_FUNCTION_LIST_PTR ckpFunctions; + +@@ -1328,9 +1329,11 @@ JNIEXPORT void JNICALL Java_iaik_pkcs_pk + for (j=0; jC_GetAttributeValue)(ckSessionHandle, ckObjectHandle, ckpAttributes, ckAttributesLength); + if(ckAssertReturnValueOK(env, rv, __FUNCTION__) != CK_ASSERT_OK) { +@@ -1343,6 +1346,7 @@ JNIEXPORT void JNICALL Java_iaik_pkcs_pk + TRACE0(tag_call, __FUNCTION__, "exiting "); + return ; + } ++ } + + /* now, the ulValueLength field of each attribute should hold the exact buffer length needed + * to allocate the needed buffers accordingly +@@ -4474,11 +4478,12 @@ int jCharArrayToCKUTF8CharArray(JNIEnv * + jpTemp = (jchar*) malloc((*ckpLength) * sizeof(jchar)); + if (jpTemp == NULL && (*ckpLength)!=0) { *ckpArray = NULL_PTR; throwOutOfMemoryError(env); return 1; } + (*env)->GetCharArrayRegion(env, jArray, 0, *ckpLength, jpTemp); +- *ckpArray = (CK_UTF8CHAR_PTR) malloc (*ckpLength * sizeof(CK_UTF8CHAR)); ++ *ckpArray = (CK_UTF8CHAR_PTR) malloc ((*ckpLength + 1) * sizeof(CK_UTF8CHAR)); + if (*ckpArray == NULL && (*ckpLength)!=0) { free(jpTemp); throwOutOfMemoryError(env); return 2; } + for (i=0; i<(*ckpLength); i++) { + (*ckpArray)[i] = jCharToCKUTF8Char(jpTemp[i]); + } ++ (*ckpArray)[*ckpLength] = NULL_PTR; + free(jpTemp); + return 0; + } Index: head/security/trousers/Makefile =================================================================== --- head/security/trousers/Makefile (revision 417165) +++ head/security/trousers/Makefile (revision 417166) @@ -1,50 +1,49 @@ # Created by: Sebastian Schuetz # $FreeBSD$ PORTNAME= trousers PORTVERSION= 0.3.13 CATEGORIES= security MASTER_SITES= SF MAINTAINER= hrs@FreeBSD.org COMMENT= Open-source TCG Software Stack LICENSE= CPL LICENSE_NAME= Common Public License LICENSE_FILE= ${WRKSRC}/LICENSE LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept BUILD_DEPENDS= tpm-emulator>=0.7.4_1:emulators/tpm-emulator RUN_DEPENDS:= ${BUILD_DEPENDS} -USES= alias autoreconf gmake iconv libtool pkgconfig +USES= dos2unix alias autoreconf gmake iconv libtool pkgconfig +DOS2UNIX_GLOB= *.h *.c USE_OPENSSL= YES USE_LDCONFIG= YES USE_RC_SUBR= tcsd INSTALL_TARGET= install-strip GNU_CONFIGURE= YES CONFIGURE_ARGS= --with-gui=none --enable-static \ --localstatedir=${PREFIX}/var \ --with-tssuser=${USERS} \ --with-tssgroup=${GROUPS} \ --with-openssl=${OPENSSLBASE} \ RANLIB=: MAKE_ENV= ICONV_LIB=${ICONV_LIB} \ ICONV_PREFIX=${ICONV_PREFIX} SUB_FILES= pkg-message SUB_LIST= USERS="${USERS}" GROUPS="${GROUPS}" PLIST_SUB= USERS="${USERS}" GROUPS="${GROUPS}" USERS= _tss GROUPS= _tss OPTIONS_DEFINE= DEBUG DEBUG_CONFIGURE_ENABLE= debug - -.include post-install: ${INSTALL_DATA} \ ${WRKSRC}/dist/tcsd.conf ${STAGEDIR}${PREFIX}/etc/tcsd.conf.sample ${MKDIR} ${STAGEDIR}${PREFIX}/var/lib/tpm .include Index: head/security/trousers/files/patch-dist-tcsd.conf.in =================================================================== --- head/security/trousers/files/patch-dist-tcsd.conf.in (revision 417165) +++ head/security/trousers/files/patch-dist-tcsd.conf.in (nonexistent) @@ -1,20 +0,0 @@ ---- dist/tcsd.conf.in.orig 2014-04-24 18:05:43 UTC -+++ dist/tcsd.conf.in -@@ -35,7 +35,7 @@ - # log data. The interface to this log is usually provided by the TPM - # device driver. - # --# firmware_log_file = /sys/kernel/security/tpm0/binary_bios_measurements -+# firmware_log_file = /var/run/tpm/binary_bios_measurements - # - - # Option: kernel_log_file -@@ -46,7 +46,7 @@ - # http://sf.net/projects/linux-ima for more info on getting IMA. - # - # --# kernel_log_file = /sys/kernel/security/ima/binary_runtime_measurements -+# kernel_log_file = /var/run/ima/binary_runtime_measurements - # - - # Option: firmware_pcrs Property changes on: head/security/trousers/files/patch-dist-tcsd.conf.in ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src-tcs-rpc-tcstp-rpc.c =================================================================== --- head/security/trousers/files/patch-src-tcs-rpc-tcstp-rpc.c (revision 417165) +++ head/security/trousers/files/patch-src-tcs-rpc-tcstp-rpc.c (nonexistent) @@ -1,10 +0,0 @@ ---- src/tcs/rpc/tcstp/rpc.c.orig 2014-04-24 18:05:44 UTC -+++ src/tcs/rpc/tcstp/rpc.c -@@ -16,6 +16,7 @@ - #if (defined (__OpenBSD__) || defined (__FreeBSD__)) - #include - #include -+#include - #endif - #include - Property changes on: head/security/trousers/files/patch-src-tcs-rpc-tcstp-rpc.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src-tspi-rpc-hosttable.c =================================================================== --- head/security/trousers/files/patch-src-tspi-rpc-hosttable.c (revision 417165) +++ head/security/trousers/files/patch-src-tspi-rpc-hosttable.c (nonexistent) @@ -1,38 +0,0 @@ ---- src/tspi/rpc/hosttable.c.orig 2014-04-24 18:05:44 UTC -+++ src/tspi/rpc/hosttable.c -@@ -51,6 +51,8 @@ host_table_final() - { - struct host_table_entry *hte, *next = NULL; - -+ if( ht == NULL ) return; -+ - MUTEX_LOCK(ht->lock); - - for (hte = ht->entries; hte; hte = next) { -@@ -84,6 +86,8 @@ __tspi_add_table_entry(TSS_HCONTEXT tspC - { - struct host_table_entry *entry, *tmp; - -+ if( ht == NULL ) return TSPERR(TSS_E_OUTOFMEMORY); -+ - entry = calloc(1, sizeof(struct host_table_entry)); - if (entry == NULL) { - LogError("malloc of %zd bytes failed.", sizeof(struct host_table_entry)); -@@ -134,6 +138,8 @@ remove_table_entry(TSS_HCONTEXT tspConte - { - struct host_table_entry *hte, *prev = NULL; - -+ if( ht == NULL ) return; -+ - MUTEX_LOCK(ht->lock); - - for (hte = ht->entries; hte; prev = hte, hte = hte->next) { -@@ -158,6 +164,8 @@ get_table_entry(TSS_HCONTEXT tspContext) - { - struct host_table_entry *index = NULL; - -+ if( ht == NULL ) return NULL; -+ - MUTEX_LOCK(ht->lock); - - for (index = ht->entries; index; index = index->next) { Property changes on: head/security/trousers/files/patch-src-tspi-rpc-hosttable.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src-tcs-ps-ps_utils.c =================================================================== --- head/security/trousers/files/patch-src-tcs-ps-ps_utils.c (revision 417165) +++ head/security/trousers/files/patch-src-tcs-ps-ps_utils.c (nonexistent) @@ -1,45 +0,0 @@ ---- src/tcs/ps/ps_utils.c.orig 2014-04-24 18:05:44 UTC -+++ src/tcs/ps/ps_utils.c -@@ -16,10 +16,18 @@ - #if defined(HAVE_BYTEORDER_H) - #include - #elif defined(HTOLE_DEFINED) -+#if defined(HAVE_ENDIAN_H) - #include - #define LE_16 htole16 - #define LE_32 htole32 - #define LE_64 htole64 -+#endif -+#if defined(HAVE_SYS_ENDIAN_H) -+#include -+#define LE_16 htole16 -+#define LE_32 htole32 -+#define LE_64 htole64 -+#endif - #else - #define LE_16(x) (x) - #define LE_32(x) (x) -@@ -42,11 +50,7 @@ - struct key_disk_cache *key_disk_cache_head = NULL; - - --#ifdef SOLARIS - TSS_RESULT --#else --inline TSS_RESULT --#endif - read_data(int fd, void *data, UINT32 size) - { - int rc; -@@ -64,11 +68,7 @@ read_data(int fd, void *data, UINT32 siz - } - - --#ifdef SOLARIS - TSS_RESULT --#else --inline TSS_RESULT --#endif - write_data(int fd, void *data, UINT32 size) - { - int rc; Property changes on: head/security/trousers/files/patch-src-tcs-ps-ps_utils.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src-include-tss-platform.h =================================================================== --- head/security/trousers/files/patch-src-include-tss-platform.h (revision 417165) +++ head/security/trousers/files/patch-src-include-tss-platform.h (nonexistent) @@ -1,11 +0,0 @@ ---- src/include/tss/platform.h.orig 2014-04-24 18:05:44 UTC -+++ src/include/tss/platform.h -@@ -15,7 +15,7 @@ There are platform dependent and general - #if !defined(WIN32) - #include - typedef uint8_t BYTE; -- typedef int8_t TSS_BOOL; -+ typedef uint8_t TSS_BOOL; - typedef uint16_t UINT16; - typedef uint32_t UINT32; - typedef uint64_t UINT64; Property changes on: head/security/trousers/files/patch-src-include-tss-platform.h ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src-include-tcsd_ops.h =================================================================== --- head/security/trousers/files/patch-src-include-tcsd_ops.h (revision 417165) +++ head/security/trousers/files/patch-src-include-tcsd_ops.h (nonexistent) @@ -1,11 +0,0 @@ ---- src/include/tcsd_ops.h.orig 2014-04-24 18:05:44 UTC -+++ src/include/tcsd_ops.h -@@ -123,7 +123,7 @@ - - struct tcsd_op { - char *name; -- int op[]; -+ int op[20]; - }; - - struct tcsd_op tcsd_op_seal = {"seal", {TCSD_OP_SEAL}}; Property changes on: head/security/trousers/files/patch-src-include-tcsd_ops.h ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src-tspi-ps-tspps.c =================================================================== --- head/security/trousers/files/patch-src-tspi-ps-tspps.c (revision 417165) +++ head/security/trousers/files/patch-src-tspi-ps-tspps.c (nonexistent) @@ -1,89 +0,0 @@ ---- src/tspi/ps/tspps.c.orig 2014-04-24 18:05:44 UTC -+++ src/tspi/ps/tspps.c -@@ -29,6 +29,11 @@ - #define LE_16 htole16 - #define LE_32 htole32 - #define LE_64 htole64 -+#elif defined(HAVE_SYS_ENDIAN_H) -+#include -+#define LE_16 htole16 -+#define LE_32 htole32 -+#define LE_64 htole64 - #else - #define LE_16(x) (x) - #define LE_32(x) (x) -@@ -43,9 +48,13 @@ - #include "tspps.h" - #include "tsplog.h" - -+ - static int user_ps_fd = -1; - static MUTEX_DECLARE_INIT(user_ps_lock); - #if (defined (__FreeBSD__) || defined (__OpenBSD__)) -+#include -+#define LE_16 htole16 -+#define LE_32 htole32 - static MUTEX_DECLARE_INIT(user_ps_path); - #endif - static struct flock fl; -@@ -60,9 +69,7 @@ get_user_ps_path(char **file) - TSS_RESULT result; - char *file_name = NULL, *home_dir = NULL; - struct passwd *pwp; --#if (defined (__linux) || defined (linux) || defined(__GLIBC__)) - struct passwd pw; --#endif - struct stat stat_buf; - char buf[PASSWD_BUFSIZE]; - uid_t euid; -@@ -72,10 +79,6 @@ get_user_ps_path(char **file) - *file = strdup(file_name); - return (*file) ? TSS_SUCCESS : TSPERR(TSS_E_OUTOFMEMORY); - } --#if (defined (__FreeBSD__) || defined (__OpenBSD__)) -- MUTEX_LOCK(user_ps_path); --#endif -- - euid = geteuid(); - - #if defined (SOLARIS) -@@ -88,32 +91,14 @@ get_user_ps_path(char **file) - */ - rc = snprintf(buf, sizeof (buf), "%s/%d", TSS_USER_PS_DIR, euid); - #else -- setpwent(); -- while (1) { --#if (defined (__linux) || defined (linux) || defined(__GLIBC__)) -- rc = getpwent_r(&pw, buf, PASSWD_BUFSIZE, &pwp); -- if (rc) { -- LogDebugFn("USER PS: Error getting path to home directory: getpwent_r: %s", -- strerror(rc)); -- endpwent(); -- return TSPERR(TSS_E_INTERNAL_ERROR); -- } -+ rc = getpwuid_r(euid, &pw, buf, PASSWD_BUFSIZE, &pwp); -+ if (rc) { -+ LogDebugFn("USER PS: Error getting path to home directory: " -+ "getpwent_r: %s", strerror(rc)); -+ return TSPERR(TSS_E_INTERNAL_ERROR); -+ } - --#elif (defined (__FreeBSD__) || defined (__OpenBSD__)) -- if ((pwp = getpwent()) == NULL) { -- LogDebugFn("USER PS: Error getting path to home directory: getpwent: %s", -- strerror(rc)); -- endpwent(); -- MUTEX_UNLOCK(user_ps_path); -- return TSPERR(TSS_E_INTERNAL_ERROR); -- } --#endif -- if (euid == pwp->pw_uid) { -- home_dir = strdup(pwp->pw_dir); -- break; -- } -- } -- endpwent(); -+ home_dir = strdup(pwp->pw_dir); - - if (!home_dir) - return TSPERR(TSS_E_OUTOFMEMORY); Property changes on: head/security/trousers/files/patch-src-tspi-ps-tspps.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src-tspi-rpc-tcstp-rpc.c =================================================================== --- head/security/trousers/files/patch-src-tspi-rpc-tcstp-rpc.c (revision 417165) +++ head/security/trousers/files/patch-src-tspi-rpc-tcstp-rpc.c (nonexistent) @@ -1,11 +0,0 @@ ---- src/tspi/rpc/tcstp/rpc.c.orig 2014-04-24 18:05:44 UTC -+++ src/tspi/rpc/tcstp/rpc.c -@@ -304,7 +304,7 @@ recv_from_socket(int sock, void *buffer, - errno = 0; - if ((recv_size = recv(sock, buffer+recv_total, size-recv_total, 0)) <= 0) { - if (recv_size < 0) { -- if (errno == EINTR) -+ if (errno == EINTR || errno == EAGAIN) - continue; - LogError("Socket receive connection error: %s.", strerror(errno)); - } else { Property changes on: head/security/trousers/files/patch-src-tspi-rpc-tcstp-rpc.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src-include-trousers_types.h =================================================================== --- head/security/trousers/files/patch-src-include-trousers_types.h (revision 417165) +++ head/security/trousers/files/patch-src-include-trousers_types.h (nonexistent) @@ -1,42 +0,0 @@ ---- src/include/trousers_types.h.orig 2014-04-24 18:05:44 UTC -+++ src/include/trousers_types.h -@@ -11,6 +11,14 @@ - #ifndef _TROUSERS_TYPES_H_ - #define _TROUSERS_TYPES_H_ - -+#ifndef STRUCTURE_PACKING_ATTRIBUTE -+#ifdef __GCC -+#define STRUCTURE_PACKING_ATTRIBUTE __attribute__((packed)) -+#else -+#define STRUCTURE_PACKING_ATTRIBUTE /* */ -+#endif -+#endif -+ - #define TCPA_NONCE_SIZE sizeof(TCPA_NONCE) - #define TCPA_DIGEST_SIZE sizeof(TCPA_DIGEST) - #define TCPA_ENCAUTH_SIZE sizeof(TCPA_ENCAUTH) -@@ -100,7 +108,7 @@ typedef struct tdTSS_KEY11_HDR { - typedef struct tdTSS_KEY12_HDR { - TPM_STRUCTURE_TAG tag; - UINT16 fill; --} __attribute__((packed)) TSS_KEY12_HDR; -+} STRUCTURE_PACKING_ATTRIBUTE TSS_KEY12_HDR; - - typedef struct tdTSS_KEY { - union { -@@ -118,11 +126,10 @@ typedef struct tdTSS_KEY { - BYTE *encData; - } TSS_KEY; - --#if (defined (__linux) || defined (linux) || defined (SOLARIS) || defined (__GLIBC__)) --#define BSD_CONST --#elif (defined (__OpenBSD__) || defined (__FreeBSD__)) -+#if defined (__FreeBSD__) - #define BSD_CONST const --#endif -- -+#else -+#define BSD_CONST /* */ -+#endif - - #endif Property changes on: head/security/trousers/files/patch-src-include-trousers_types.h ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src-include-tcsd.h =================================================================== --- head/security/trousers/files/patch-src-include-tcsd.h (revision 417165) +++ head/security/trousers/files/patch-src-include-tcsd.h (nonexistent) @@ -1,29 +0,0 @@ ---- src/include/tcsd.h.orig 2014-04-24 18:05:44 UTC -+++ src/include/tcsd.h -@@ -53,14 +53,22 @@ struct tcsd_config - #define TCSD_DEFAULT_CONFIG_FILE ETC_PREFIX "/tcsd.conf" - extern char *tcsd_config_file; - -+#ifndef TSS_USER_NAME - #define TSS_USER_NAME "tss" -+#endif -+#ifndef TSS_GROUP_NAME - #define TSS_GROUP_NAME "tss" -+#endif -+ -+#ifndef TPM_PREFIX -+#define TPM_PREFIX "/lib/tpm" -+#endif - - #define TCSD_DEFAULT_MAX_THREADS 10 --#define TCSD_DEFAULT_SYSTEM_PS_FILE VAR_PREFIX "/lib/tpm/system.data" --#define TCSD_DEFAULT_SYSTEM_PS_DIR VAR_PREFIX "/lib/tpm" --#define TCSD_DEFAULT_FIRMWARE_LOG_FILE "/sys/kernel/security/tpm0/binary_bios_measurements" --#define TCSD_DEFAULT_KERNEL_LOG_FILE "/sys/kernel/security/ima/binary_runtime_measurements" -+#define TCSD_DEFAULT_SYSTEM_PS_FILE VAR_PREFIX TPM_PREFIX "/system.data" -+#define TCSD_DEFAULT_SYSTEM_PS_DIR VAR_PREFIX TPM_PREFIX -+#define TCSD_DEFAULT_FIRMWARE_LOG_FILE "/var/run/tpm/binary_bios_measurements" -+#define TCSD_DEFAULT_KERNEL_LOG_FILE "/var/run/ima/binary_runtime_measurements" - #define TCSD_DEFAULT_FIRMWARE_PCRS 0x00000000 - #define TCSD_DEFAULT_KERNEL_PCRS 0x00000000 - #define TCSD_DEFAULT_DISABLE_IPV4 0 Property changes on: head/security/trousers/files/patch-src-include-tcsd.h ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src-include-threads.h =================================================================== --- head/security/trousers/files/patch-src-include-threads.h (revision 417165) +++ head/security/trousers/files/patch-src-include-threads.h (nonexistent) @@ -1,11 +0,0 @@ ---- src/include/threads.h.orig 2014-04-24 18:05:44 UTC -+++ src/include/threads.h -@@ -31,7 +31,7 @@ - #define COND_SIGNAL(c) pthread_cond_signal(c) - - /* thread abstractions */ --#define THREAD_ID ((THREAD_TYPE)pthread_self()) -+#define THREAD_ID (long int)((THREAD_TYPE)pthread_self()) - #define THREAD_TYPE pthread_t - #define THREAD_JOIN pthread_join - #define THREAD_DETACH pthread_detach Property changes on: head/security/trousers/files/patch-src-include-threads.h ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/security/trousers/files/patch-dist-Makefile.am =================================================================== --- head/security/trousers/files/patch-dist-Makefile.am (revision 417165) +++ head/security/trousers/files/patch-dist-Makefile.am (nonexistent) @@ -1,19 +0,0 @@ ---- dist/Makefile.am.orig 2014-04-24 18:05:43 UTC -+++ dist/Makefile.am -@@ -1,14 +1,14 @@ - EXTRA_DIST = system.data.auth system.data.noauth \ - fedora/fedora.initrd.tcsd - --install: install-exec-hook -+Xinstall: install-exec-hook - if test ! -e ${DESTDIR}/@sysconfdir@/tcsd.conf; then mkdir -p ${DESTDIR}/@sysconfdir@ && cp tcsd.conf ${DESTDIR}/@sysconfdir@; fi - if !NOUSERCHECK - /bin/chown tss:tss ${DESTDIR}/@sysconfdir@/tcsd.conf || true - /bin/chmod 0600 ${DESTDIR}/@sysconfdir@/tcsd.conf - endif - --install-exec-hook: -+Xinstall-exec-hook: - /bin/sh -c 'if [ ! -e ${DESTDIR}/@localstatedir@/lib/tpm ];then mkdir -p ${DESTDIR}/@localstatedir@/lib/tpm; fi' - if !NOUSERCHECK - /usr/sbin/groupadd tss || true Property changes on: head/security/trousers/files/patch-dist-Makefile.am ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src-trspi-Makefile.am =================================================================== --- head/security/trousers/files/patch-src-trspi-Makefile.am (revision 417165) +++ head/security/trousers/files/patch-src-trspi-Makefile.am (nonexistent) @@ -1,12 +0,0 @@ ---- src/trspi/Makefile.am.orig 2014-04-25 03:05:44.000000000 +0900 -+++ src/trspi/Makefile.am 2016-05-19 03:16:29.786606000 +0900 -@@ -1,7 +1,8 @@ - noinst_LTLIBRARIES=libtrousers.la - - libtrousers_la_SOURCES=trousers.c crypto/@CRYPTO_PACKAGE@/hash.c --libtrousers_la_CFLAGS=-DAPPID=\"TSPI\" -I${top_srcdir}/src/include -+libtrousers_la_CFLAGS=-DAPPID=\"TSPI\" -I${top_srcdir}/src/include \ -+ -I${ICONV_PREFIX}/include -I@OPENSSL_INCLUDE_DIR@ - - if TSS_BUILD_ASYM_CRYPTO - libtrousers_la_SOURCES+=crypto/@CRYPTO_PACKAGE@/rsa.c Property changes on: head/security/trousers/files/patch-src-trspi-Makefile.am ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src-tspi-Makefile.am =================================================================== --- head/security/trousers/files/patch-src-tspi-Makefile.am (revision 417165) +++ head/security/trousers/files/patch-src-tspi-Makefile.am (nonexistent) @@ -1,14 +0,0 @@ ---- src/tspi/Makefile.am.orig 2014-04-25 03:05:44.000000000 +0900 -+++ src/tspi/Makefile.am 2016-05-19 03:04:18.883005000 +0900 -@@ -17,9 +17,9 @@ - # 5. If any interfaces have been added since the last public release, then increment age. - # 6. If any interfaces have been removed since the last public release, then set age to 0. - --libtspi_la_LDFLAGS=-version-info 3:0:2 -lpthread @CRYPTOLIB@ -+libtspi_la_LDFLAGS=-version-info 3:0:2 -lpthread -L@OPENSSL_LIB_DIR@ @CRYPTOLIB@ -L${ICONV_PREFIX}/lib ${ICONV_LIB} - --libtspi_la_CFLAGS=-I$(top_srcdir)/src/include -DAPPID=\"TSPI\" -DVAR_PREFIX=\"@localstatedir@\" -DETC_PREFIX=\"@sysconfdir@\" -+libtspi_la_CFLAGS=-I$(top_srcdir)/src/include -DAPPID=\"TSPI\" -DVAR_PREFIX=\"@localstatedir@\" -DETC_PREFIX=\"@sysconfdir@\" -I@OPENSSL_INCLUDE_DIR@ - - libtspi_la_SOURCES=log.c \ - spi_utils.c \ Property changes on: head/security/trousers/files/patch-src-tspi-Makefile.am ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src-include-biosem.h =================================================================== --- head/security/trousers/files/patch-src-include-biosem.h (revision 417165) +++ head/security/trousers/files/patch-src-include-biosem.h (nonexistent) @@ -1,11 +0,0 @@ ---- src/include/biosem.h.orig 2014-04-24 18:05:44 UTC -+++ src/include/biosem.h -@@ -26,7 +26,7 @@ typedef struct { - UINT32 eventType; - BYTE digest[20]; - UINT32 eventDataSize; -- BYTE event[0];/* (eventSize) bytes of event data follows */ -+ BYTE event[1];/* (eventSize) bytes of event data follows */ - } TCG_PCClientPCREventStruc; - - #define EVLOG_SOURCE_BIOS 1 Property changes on: head/security/trousers/files/patch-src-include-biosem.h ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src-tcsd-Makefile.am =================================================================== --- head/security/trousers/files/patch-src-tcsd-Makefile.am (revision 417165) +++ head/security/trousers/files/patch-src-tcsd-Makefile.am (nonexistent) @@ -1,23 +0,0 @@ ---- src/tcsd/Makefile.am.orig 2014-04-25 03:05:44.000000000 +0900 -+++ src/tcsd/Makefile.am 2016-05-19 03:00:08.951991000 +0900 -@@ -1,11 +1,17 @@ --sbin_PROGRAMS=tcsd -+sbin_PROGRAMS=tcsd tcsd_emu - --tcsd_CFLAGS=-DAPPID=\"TCSD\" -DVAR_PREFIX=\"@localstatedir@\" -DETC_PREFIX=\"@sysconfdir@\" -I${top_srcdir}/src/include -fPIE -DPIE --tcsd_LDADD=${top_builddir}/src/tcs/libtcs.a ${top_builddir}/src/tddl/libtddl.a -lpthread @CRYPTOLIB@ -+tcsd_CFLAGS=-DAPPID=\"TCSD\" -DVAR_PREFIX=\"@localstatedir@\" -DETC_PREFIX=\"@sysconfdir@\" -I${top_srcdir}/src/include -fPIE -DPIE -I@OPENSSL_INCLUDE_DIR@ -+tcsd_LDADD=${top_builddir}/src/tcs/libtcs.a ${top_builddir}/src/tddl/libtddl.a -lpthread -L@OPENSSL_LIB_DIR@ @CRYPTOLIB@ - tcsd_LDFLAGS=-pie -Wl,-z,relro -Wl,-z,now - - tcsd_SOURCES=svrside.c tcsd_conf.c tcsd_threads.c platform.c - -+tcsd_emu_CFLAGS=-DAPPID=\"TCSD\" -DVAR_PREFIX=\"@localstatedir@\" -DETC_PREFIX=\"@sysconfdir@\" -I${top_srcdir}/src/include -fPIE -DPIE -I@OPENSSL_INCLUDE_DIR@ -+tcsd_emu_LDADD=${top_builddir}/src/tcs/libtcs_emu.a -ltddl -L${LOCALBASE}/lib/tddl_emu -lpthread -L@OPENSSL_LIB_DIR@ @CRYPTOLIB@ -+tcsd_emu_LDFLAGS=-pie -Wl,-z,relro -Wl,-z,now -Wl,-rpath=${LOCALBASE}/lib/tddl_emu:${LOCALBASE}/lib -+ -+tcsd_emu_SOURCES=svrside.c tcsd_conf.c tcsd_threads.c platform.c -+ - if TSS_BUILD_PS - tcsd_CFLAGS+=-DTSS_BUILD_PS - endif Property changes on: head/security/trousers/files/patch-src-tcsd-Makefile.am ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src-tspi-tsp_tcsi_param.c =================================================================== --- head/security/trousers/files/patch-src-tspi-tsp_tcsi_param.c (revision 417165) +++ head/security/trousers/files/patch-src-tspi-tsp_tcsi_param.c (nonexistent) @@ -1,15 +0,0 @@ ---- src/tspi/tsp_tcsi_param.c.orig 2014-04-24 18:05:44 UTC -+++ src/tspi/tsp_tcsi_param.c -@@ -11,7 +11,12 @@ - #include - #include - #include -+#if !defined(__FreeBSD__) - #include -+#else -+#include -+#define HOST_NAME_MAX MAXHOSTNAMELEN -+#endif - #include "trousers/tss.h" - #include "trousers/trousers.h" - #include "trousers_types.h" Property changes on: head/security/trousers/files/patch-src-tspi-tsp_tcsi_param.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src-tcs-Makefile.am =================================================================== --- head/security/trousers/files/patch-src-tcs-Makefile.am (revision 417165) +++ head/security/trousers/files/patch-src-tcs-Makefile.am (nonexistent) @@ -1,166 +0,0 @@ ---- src/tcs/Makefile.am.orig 2014-04-25 03:05:44.000000000 +0900 -+++ src/tcs/Makefile.am 2016-05-19 15:26:50.732611000 +0900 -@@ -1,8 +1,7 @@ --noinst_LIBRARIES=libtcs.a -+noinst_LIBRARIES=libtcs.a libtcs_emu.a - --CFLAGS+=-I${top_srcdir}/src/include - libtcs_a_LIBADD=${top_builddir}/src/tddl/libtddl.a --libtcs_a_CFLAGS=-DAPPID=\"TCSD\ TCS\" -DVAR_PREFIX=\"@localstatedir@\" -DETC_PREFIX=\"@sysconfdir@\" -fPIE -DPIE -+libtcs_a_CFLAGS=-I${top_srcdir}/src/include -DAPPID=\"TCSD\ TCS\" -DVAR_PREFIX=\"@localstatedir@\" -DETC_PREFIX=\"@sysconfdir@\" -fPIE -DPIE - - libtcs_a_SOURCES=log.c \ - tcs_caps.c \ -@@ -91,7 +90,7 @@ - if TSS_BUILD_KEY - libtcs_a_SOURCES+=tcsi_key.c tcs_key.c tcs_key_mem_cache.c tcs_context_key.c rpc/@RPC@/rpc_key.c \ - crypto/@CRYPTO_PACKAGE@/crypto.c --libtcs_a_CFLAGS+=-DTSS_BUILD_KEY -+libtcs_a_CFLAGS+=-DTSS_BUILD_KEY -I@OPENSSL_INCLUDE_DIR@ - endif - if TSS_BUILD_MAINT - libtcs_a_SOURCES+=tcsi_maint.c rpc/@RPC@/rpc_maint.c -@@ -140,3 +139,143 @@ - libtcs_a_SOURCES+=tcsi_cmk.c rpc/@RPC@/rpc_cmk.c - libtcs_a_CFLAGS+=-DTSS_BUILD_CMK - endif -+ -+libtcs_emu_a_LIBADD=${LOCALBASE}/lib/tddl_emu/libtddl.a -+libtcs_emu_a_CFLAGS=-I${top_srcdir}/src/include -DAPPID=\"TCSD\ TCS\" -DVAR_PREFIX=\"@localstatedir@\" -DETC_PREFIX=\"@sysconfdir@\" -fPIE -DPIE -+ -+libtcs_emu_a_SOURCES=log.c \ -+ tcs_caps.c \ -+ tcs_req_mgr.c \ -+ tcs_context.c \ -+ tcsi_context.c \ -+ tcs_utils.c \ -+ rpc/@RPC@/rpc.c rpc/@RPC@/rpc_context.c \ -+ tcsi_caps_tpm.c rpc/@RPC@/rpc_caps_tpm.c \ -+ tcs_auth_mgr.c tcsi_auth.c rpc/@RPC@/rpc_auth.c \ -+ tcs_pbg.c -+ -+if TSS_BUILD_TRANSPORT -+libtcs_emu_a_SOURCES+=tcsi_transport.c rpc/@RPC@/rpc_transport.c -+libtcs_emu_a_CFLAGS+=-DTSS_BUILD_TRANSPORT -+endif -+if TSS_BUILD_TICK -+libtcs_emu_a_SOURCES+=tcsi_tick.c rpc/@RPC@/rpc_tick.c -+libtcs_emu_a_CFLAGS+=-DTSS_BUILD_TICK -+endif -+if TSS_BUILD_COUNTER -+libtcs_emu_a_SOURCES+=tcsi_counter.c tcs_counter.c rpc/@RPC@/rpc_counter.c -+libtcs_emu_a_CFLAGS+=-DTSS_BUILD_COUNTER -+endif -+if TSS_BUILD_RANDOM -+libtcs_emu_a_SOURCES+=tcsi_random.c rpc/@RPC@/rpc_random.c -+libtcs_emu_a_CFLAGS+=-DTSS_BUILD_RANDOM -+endif -+if TSS_BUILD_CAPS -+libtcs_emu_a_SOURCES+=tcsi_caps.c rpc/@RPC@/rpc_caps.c -+libtcs_emu_a_CFLAGS+=-DTSS_BUILD_CAPS -+endif -+if TSS_BUILD_DIR -+libtcs_emu_a_SOURCES+=tcsi_dir.c rpc/@RPC@/rpc_dir.c -+libtcs_emu_a_CFLAGS+=-DTSS_BUILD_DIR -+endif -+if TSS_BUILD_PCR_EVENTS -+libtcs_emu_a_SOURCES+=tcsi_evlog.c tcs_evlog_biosem.c tcs_evlog_imaem.c tcs_evlog.c \ -+ rpc/@RPC@/rpc_evlog.c -+libtcs_emu_a_CFLAGS+=-DTSS_BUILD_PCR_EVENTS -+endif -+if TSS_BUILD_SIGN -+libtcs_emu_a_SOURCES+=tcsi_sign.c rpc/@RPC@/rpc_sign.c -+libtcs_emu_a_CFLAGS+=-DTSS_BUILD_SIGN -+endif -+if TSS_BUILD_QUOTE -+libtcs_emu_a_SOURCES+=tcsi_quote.c tcs_quote.c rpc/@RPC@/rpc_quote.c -+libtcs_emu_a_CFLAGS+=-DTSS_BUILD_QUOTE -+endif -+if TSS_BUILD_SEAL -+libtcs_emu_a_SOURCES+=tcsi_seal.c tcs_seal.c rpc/@RPC@/rpc_seal.c -+libtcs_emu_a_CFLAGS+=-DTSS_BUILD_SEAL -+endif -+if TSS_BUILD_CHANGEAUTH -+libtcs_emu_a_SOURCES+=tcsi_changeauth.c rpc/@RPC@/rpc_changeauth.c -+libtcs_emu_a_CFLAGS+=-DTSS_BUILD_CHANGEAUTH -+endif -+if TSS_BUILD_BIND -+libtcs_emu_a_SOURCES+=tcsi_bind.c rpc/@RPC@/rpc_bind.c -+libtcs_emu_a_CFLAGS+=-DTSS_BUILD_BIND -+endif -+if TSS_BUILD_OWN -+libtcs_emu_a_SOURCES+=tcsi_own.c rpc/@RPC@/rpc_own.c -+libtcs_emu_a_CFLAGS+=-DTSS_BUILD_OWN -+endif -+if TSS_BUILD_PS -+libtcs_emu_a_SOURCES+=ps/ps_utils.c ps/tcsps.c tcsi_ps.c tcs_ps.c tcs_key_ps.c rpc/@RPC@/rpc_ps.c -+libtcs_emu_a_CFLAGS+=-DTSS_BUILD_PS -+endif -+if TSS_BUILD_ADMIN -+libtcs_emu_a_SOURCES+=tcsi_admin.c rpc/@RPC@/rpc_admin.c -+libtcs_emu_a_CFLAGS+=-DTSS_BUILD_ADMIN -+endif -+if TSS_BUILD_AIK -+libtcs_emu_a_SOURCES+=tcsi_aik.c tcs_aik.c rpc/@RPC@/rpc_aik.c -+libtcs_emu_a_CFLAGS+=-DTSS_BUILD_AIK -+endif -+if TSS_BUILD_EK -+libtcs_emu_a_SOURCES+=tcsi_ek.c rpc/@RPC@/rpc_ek.c -+libtcs_emu_a_CFLAGS+=-DTSS_BUILD_EK -+endif -+if TSS_BUILD_CERTIFY -+libtcs_emu_a_SOURCES+=tcsi_certify.c rpc/@RPC@/rpc_certify.c -+libtcs_emu_a_CFLAGS+=-DTSS_BUILD_CERTIFY -+endif -+if TSS_BUILD_KEY -+libtcs_emu_a_SOURCES+=tcsi_key.c tcs_key.c tcs_key_mem_cache.c tcs_context_key.c rpc/@RPC@/rpc_key.c \ -+ crypto/@CRYPTO_PACKAGE@/crypto.c -+libtcs_emu_a_CFLAGS+=-DTSS_BUILD_KEY -I@OPENSSL_INCLUDE_DIR@ -+endif -+if TSS_BUILD_MAINT -+libtcs_emu_a_SOURCES+=tcsi_maint.c rpc/@RPC@/rpc_maint.c -+libtcs_emu_a_CFLAGS+=-DTSS_BUILD_MAINT -+endif -+if TSS_BUILD_MIGRATION -+libtcs_emu_a_SOURCES+=tcsi_migration.c tcs_migration.c rpc/@RPC@/rpc_migration.c -+libtcs_emu_a_CFLAGS+=-DTSS_BUILD_MIGRATION -+endif -+if TSS_BUILD_PCR_EXTEND -+libtcs_emu_a_SOURCES+=tcsi_pcr.c rpc/@RPC@/rpc_pcr_extend.c -+libtcs_emu_a_CFLAGS+=-DTSS_BUILD_PCR_EXTEND -+endif -+if TSS_BUILD_SELFTEST -+libtcs_emu_a_SOURCES+=tcsi_selftest.c rpc/@RPC@/rpc_selftest.c -+libtcs_emu_a_CFLAGS+=-DTSS_BUILD_SELFTEST -+endif -+if TSS_BUILD_DAA -+libtcs_emu_a_SOURCES+=tcsi_daa.c rpc/@RPC@/rpc_daa.c -+libtcs_emu_a_CFLAGS+=-DTSS_BUILD_DAA -+endif -+if TSS_BUILD_NV -+libtcs_emu_a_SOURCES+=tcsi_nv.c rpc/@RPC@/rpc_nv.c -+libtcs_emu_a_CFLAGS+=-DTSS_BUILD_NV -+endif -+if TSS_BUILD_AUDIT -+libtcs_emu_a_SOURCES+=tcsi_audit.c rpc/@RPC@/rpc_audit.c -+libtcs_emu_a_CFLAGS+=-DTSS_BUILD_AUDIT -+endif -+if TSS_BUILD_SEALX -+libtcs_emu_a_CFLAGS+=-DTSS_BUILD_SEALX -+endif -+if TSS_BUILD_TSS12 -+libtcs_emu_a_SOURCES+=tcsi_oper.c rpc/@RPC@/rpc_oper.c -+libtcs_emu_a_CFLAGS+=-DTSS_BUILD_TSS12 -+endif -+if TSS_BUILD_DELEGATION -+libtcs_emu_a_SOURCES+=tcsi_delegate.c rpc/@RPC@/rpc_delegate.c -+libtcs_emu_a_CFLAGS+=-DTSS_BUILD_DELEGATION -+endif -+if TSS_BUILD_QUOTE2 -+libtcs_emu_a_SOURCES+=tcsi_quote2.c tcs_quote2.c rpc/@RPC@/rpc_quote2.c -+libtcs_emu_a_CFLAGS+=-DTSS_BUILD_QUOTE2 -+endif -+if TSS_BUILD_CMK -+libtcs_emu_a_SOURCES+=tcsi_cmk.c rpc/@RPC@/rpc_cmk.c -+libtcs_emu_a_CFLAGS+=-DTSS_BUILD_CMK -+endif Property changes on: head/security/trousers/files/patch-src-tcs-Makefile.am ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src-include-tcs_tsp.h =================================================================== --- head/security/trousers/files/patch-src-include-tcs_tsp.h (revision 417165) +++ head/security/trousers/files/patch-src-include-tcs_tsp.h (nonexistent) @@ -1,16 +0,0 @@ ---- src/include/tcs_tsp.h.orig 2014-04-24 18:05:44 UTC -+++ src/include/tcs_tsp.h -@@ -79,7 +79,13 @@ struct key_disk_cache - /* XXX Get rid of this, there's no reason to set an arbitrary limit */ - #define MAX_KEY_CHILDREN 10 - -+#ifndef STRUCTURE_PACKING_ATTRIBUTE -+#ifdef __GCC - #define STRUCTURE_PACKING_ATTRIBUTE __attribute__((packed)) -+#else -+#define STRUCTURE_PACKING_ATTRIBUTE /* */ -+#endif -+#endif - - #ifdef TSS_DEBUG - #define DBG_ASSERT(x) assert(x) Property changes on: head/security/trousers/files/patch-src-include-tcs_tsp.h ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src-tcs-tcs_aik.c =================================================================== --- head/security/trousers/files/patch-src-tcs-tcs_aik.c (revision 417165) +++ head/security/trousers/files/patch-src-tcs-tcs_aik.c (nonexistent) @@ -1,11 +0,0 @@ ---- src/tcs/tcs_aik.c.orig 2014-04-24 18:05:44 UTC -+++ src/tcs/tcs_aik.c -@@ -66,7 +66,7 @@ UnloadBlob_SYMMETRIC_KEY(UINT64 *offset, - UnloadBlob_UINT16(offset, &key->size, blob); - - if (key->size > 0) { -- key->data = (BYTE *)malloc(key->size); -+ key->data = malloc(key->size); - if (key->data == NULL) { - LogError("malloc of %hu bytes failed.", key->size); - key->size = 0; Property changes on: head/security/trousers/files/patch-src-tcs-tcs_aik.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src-include-tcs_utils.h =================================================================== --- head/security/trousers/files/patch-src-include-tcs_utils.h (revision 417165) +++ head/security/trousers/files/patch-src-include-tcs_utils.h (nonexistent) @@ -1,23 +0,0 @@ ---- src/include/tcs_utils.h.orig 2014-04-24 18:05:44 UTC -+++ src/include/tcs_utils.h -@@ -18,6 +18,20 @@ - #include "tcs_tsp.h" - #include "trousers_types.h" - -+ -+ -+/* -+ * XXX malloc wrapper -+ * -+ * Linux: malloc(0) => '\0' -+ * *BSD: malloc(0) => invalid to dereference -+ * -+ * => so wrap malloc(0) => calloc(1, 16) to create -+ * a 16Byte array containing '\0' -+ * -+ */ -+#define malloc(x) ((x) == 0 ? calloc(1, 16) : calloc(1, (x))) -+ - struct key_mem_cache - { - TCPA_KEY_HANDLE tpm_handle; Property changes on: head/security/trousers/files/patch-src-include-tcs_utils.h ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src-tspi-ps-ps_utils.c =================================================================== --- head/security/trousers/files/patch-src-tspi-ps-ps_utils.c (revision 417165) +++ head/security/trousers/files/patch-src-tspi-ps-ps_utils.c (nonexistent) @@ -1,20 +0,0 @@ ---- src/tspi/ps/ps_utils.c.orig 2014-04-24 18:05:44 UTC -+++ src/tspi/ps/ps_utils.c -@@ -22,7 +22,7 @@ - #include "tspps.h" - #include "tsplog.h" - --inline TSS_RESULT -+TSS_RESULT - read_data(int fd, void *data, UINT32 size) - { - int rc; -@@ -39,7 +39,7 @@ read_data(int fd, void *data, UINT32 siz - return TSS_SUCCESS; - } - --inline TSS_RESULT -+TSS_RESULT - write_data(int fd, void *data, UINT32 size) - { - int rc; Property changes on: head/security/trousers/files/patch-src-tspi-ps-ps_utils.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src-include-linux-tpm.h =================================================================== --- head/security/trousers/files/patch-src-include-linux-tpm.h (revision 417165) +++ head/security/trousers/files/patch-src-include-linux-tpm.h (nonexistent) @@ -1,11 +0,0 @@ ---- src/include/linux/tpm.h.orig 2014-04-24 18:05:44 UTC -+++ src/include/linux/tpm.h -@@ -20,6 +20,8 @@ - #include - #elif (defined (__OpenBSD__) || defined (__FreeBSD__)) - #include -+#elif (defined (SOLARIS)) -+#include - #endif - - /* ioctl commands */ Property changes on: head/security/trousers/files/patch-src-include-linux-tpm.h ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src-tcs-ps-tcsps.c =================================================================== --- head/security/trousers/files/patch-src-tcs-ps-tcsps.c (revision 417165) +++ head/security/trousers/files/patch-src-tcs-ps-tcsps.c (nonexistent) @@ -1,67 +0,0 @@ ---- src/tcs/ps/tcsps.c.orig 2014-04-24 18:05:44 UTC -+++ src/tcs/ps/tcsps.c -@@ -24,6 +24,11 @@ - #define LE_16 htole16 - #define LE_32 htole32 - #define LE_64 htole64 -+#elif defined (HAVE_SYS_ENDIAN_H) -+#include -+#define LE_16 htole16 -+#define LE_32 htole32 -+#define LE_64 htole64 - #else - #define LE_16(x) (x) - #define LE_32(x) (x) -@@ -33,6 +38,26 @@ - #include - #include - -+#ifdef __sun -+#define LOCK_EX F_LOCK -+#define LOCK_UN F_ULOCK -+#define flock(fd, func) lockf(fd, func, 0) -+#endif -+ -+#ifndef LOCK_SH -+#define LOCK_SH 1 /* shared lock */ -+#endif -+#ifndef LOCK_EX -+#define LOCK_EX 2 /* exclusive lock */ -+#endif -+#ifndef LOCK_NB -+#define LOCK_NB 4 /* don't block when locking */ -+#endif -+#ifndef LOCK_UN -+#define LOCK_UN 8 /* unlock */ -+#endif -+ -+ - #include "trousers/tss.h" - #include "trousers_types.h" - #include "tcsps.h" -@@ -43,6 +68,25 @@ - #include "tcsd_wrap.h" - #include "tcsd.h" - -+#ifndef LE_16 -+static UINT16 htole16(UINT16 x) -+{ -+ BYTE *b = &x; -+ return (UINT16) (b[0] + (b[1] << 8)); -+} -+#define LE_16 htole16 -+#endif -+ -+#ifndef LE_32 -+static UINT32 htole32(UINT32 x) -+{ -+ BYTE *b = &x; -+ return (UINT32) (b[0] + (b[1] << 8) + (b[2] << 16) + (b[3] << 24)); -+} -+#define LE_32 htole32 -+#endif -+ -+ - int system_ps_fd = -1; - MUTEX_DECLARE(disk_cache_lock); - Property changes on: head/security/trousers/files/patch-src-tcs-ps-tcsps.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src-tcs-tcs_auth_mgr.c =================================================================== --- head/security/trousers/files/patch-src-tcs-tcs_auth_mgr.c (revision 417165) +++ head/security/trousers/files/patch-src-tcs-tcs_auth_mgr.c (nonexistent) @@ -1,29 +0,0 @@ ---- src/tcs/tcs_auth_mgr.c.orig 2014-04-24 18:05:44 UTC -+++ src/tcs/tcs_auth_mgr.c -@@ -108,7 +108,7 @@ void - auth_mgr_swap_in() - { - if (auth_mgr.overflow[auth_mgr.of_tail] != NULL) { -- LogDebug("waking up thread %lddd, auth slot has opened", THREAD_ID); -+ LogDebug("waking up thread %ld, auth slot has opened", THREAD_ID); - /* wake up the next sleeping thread in order and increment tail */ - COND_SIGNAL(auth_mgr.overflow[auth_mgr.of_tail]); - auth_mgr.overflow[auth_mgr.of_tail] = NULL; -@@ -149,7 +149,7 @@ auth_mgr_swap_out(TCS_CONTEXT_HANDLE hCo - auth_mgr.overflow[auth_mgr.of_head] = cond; - auth_mgr.of_head = (auth_mgr.of_head + 1) % auth_mgr.overflow_size; - /* go to sleep */ -- LogDebug("thread %lddd going to sleep until auth slot opens", THREAD_ID); -+ LogDebug("thread %ld going to sleep until auth slot opens", THREAD_ID); - auth_mgr.sleeping_threads++; - COND_WAIT(cond, &tcsp_lock); - auth_mgr.sleeping_threads--; -@@ -180,7 +180,7 @@ auth_mgr_swap_out(TCS_CONTEXT_HANDLE hCo - auth_mgr.of_tail = 0; - auth_mgr.overflow[auth_mgr.of_head] = cond; - auth_mgr.of_head = (auth_mgr.of_head + 1) % auth_mgr.overflow_size; -- LogDebug("thread %lddd going to sleep until auth slot opens", THREAD_ID); -+ LogDebug("thread %ld going to sleep until auth slot opens", THREAD_ID); - auth_mgr.sleeping_threads++; - COND_WAIT(cond, &tcsp_lock); - auth_mgr.sleeping_threads--; Property changes on: head/security/trousers/files/patch-src-tcs-tcs_auth_mgr.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src-tcsd-svrside.c =================================================================== --- head/security/trousers/files/patch-src-tcsd-svrside.c (revision 417165) +++ head/security/trousers/files/patch-src-tcsd-svrside.c (nonexistent) @@ -1,63 +0,0 @@ ---- src/tcsd/svrside.c.orig 2014-04-24 18:05:44 UTC -+++ src/tcsd/svrside.c -@@ -92,12 +92,19 @@ tcsd_signal_term(int signal) - term = 1; - } - --void -+static void - tcsd_signal_hup(int signal) - { - hup = 1; - } - -+static void -+tcsd_signal_chld(int signal) -+{ -+ -+ wait3(NULL, WNOHANG, NULL); -+} -+ - static TSS_RESULT - signals_init(void) - { -@@ -106,6 +113,14 @@ signals_init(void) - struct sigaction sa; - - sigemptyset(&sigmask); -+ if ((rc = sigaddset(&sigmask, SIGCHLD))) { -+ LogError("sigaddset: %s", strerror(errno)); -+ return TCSERR(TSS_E_INTERNAL_ERROR); -+ } -+ if ((rc = sigaddset(&sigmask, SIGINT))) { -+ LogError("sigaddset: %s", strerror(errno)); -+ return TCSERR(TSS_E_INTERNAL_ERROR); -+ } - if ((rc = sigaddset(&sigmask, SIGTERM))) { - LogError("sigaddset: %s", strerror(errno)); - return TCSERR(TSS_E_INTERNAL_ERROR); -@@ -128,12 +143,24 @@ signals_init(void) - return TCSERR(TSS_E_INTERNAL_ERROR); - } - -+ if ((rc = sigaction(SIGINT, &sa, NULL))) { -+ LogError("signal SIGINT not registered: %s", strerror(errno)); -+ return TCSERR(TSS_E_INTERNAL_ERROR); -+ } -+ - sa.sa_handler = tcsd_signal_hup; - if ((rc = sigaction(SIGHUP, &sa, NULL))) { - LogError("signal SIGHUP not registered: %s", strerror(errno)); - return TCSERR(TSS_E_INTERNAL_ERROR); - } - -+ sa.sa_flags = SA_RESTART; -+ sa.sa_handler = tcsd_signal_chld; -+ if ((rc = sigaction(SIGCHLD, &tcsd_sa_chld, NULL))) { -+ LogError("signal SIGCHLD not registered: %s", strerror(errno)); -+ return TCSERR(TSS_E_INTERNAL_ERROR); -+ } -+ - return TSS_SUCCESS; - } - Property changes on: head/security/trousers/files/patch-src-tcsd-svrside.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src-tddl-Makefile.am =================================================================== --- head/security/trousers/files/patch-src-tddl-Makefile.am (revision 417165) +++ head/security/trousers/files/patch-src-tddl-Makefile.am (nonexistent) @@ -1,14 +0,0 @@ ---- src/tddl/Makefile.am.orig 2014-04-24 18:05:44 UTC -+++ src/tddl/Makefile.am -@@ -1,4 +1,11 @@ -+libdir=@libdir@/tddl -+ - lib_LIBRARIES=libtddl.a - - libtddl_a_SOURCES=tddl.c - libtddl_a_CFLAGS=-DAPPID=\"TCSD\ TDDL\" -I${top_srcdir}/src/include -fPIE -DPIE -+ -+lib_LTLIBRARIES=libtddl.la -+ -+libtddl_la_SOURCES=tddl.c -+libtddl_la_CFLAGS=-DAPPID=\"TCSD\ TDDL\" -I${top_srcdir}/src/include -fPIE -DPIE Property changes on: head/security/trousers/files/patch-src-tddl-Makefile.am ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/security/trousers/files/patch-configure.in =================================================================== --- head/security/trousers/files/patch-configure.in (revision 417165) +++ head/security/trousers/files/patch-configure.in (revision 417166) @@ -1,50 +1,50 @@ ---- configure.in.orig 2014-04-25 03:05:43.000000000 +0900 -+++ configure.in 2016-05-19 02:57:32.524179000 +0900 -@@ -52,7 +52,7 @@ +--- configure.in.orig 2014-04-24 18:05:43 UTC ++++ configure.in +@@ -52,7 +52,7 @@ AC_ARG_WITH(openssl, AC_MSG_ERROR([$OPENSSL_INCLUDE_DIR or $OPENSSL_LIB_DIR doen't exist!]) else AC_MSG_RESULT([yes]) - CFLAGS="$CFLAGS -L$OPENSSL_LIB_DIR -I$OPENSSL_INCLUDE_DIR" + AC_SUBST([OPENSSL_INCLUDE_DIR]) AC_SUBST([OPENSSL_LIB_DIR]) fi], [AC_MSG_RESULT([no]) -@@ -72,6 +72,21 @@ +@@ -72,6 +72,21 @@ AC_ARG_ENABLE(gcov, [CFLAGS="$CFLAGS -ftest-coverage -fprofile-arcs" AC_MSG_RESULT([*** Enabling gcov at user request ***])],) +# Check for tss user +AC_ARG_WITH(tssuser, + [ --with-tssuser[[=USER]] set tss user [[tss]]], + [tss_user=$withval], + [tss_user=tss] +) +# Check for tss group +AC_ARG_WITH(tssgroup, + [ --with-tssgroup[[=GROUP]] set tss group [[tss]]], + [tss_group=$withval], + [tss_group=tss] +) +AC_SUBST(TSS_USER_NAME, $tss_user) +AC_SUBST(TSS_GROUP_NAME, $tss_group) + # profiling support AC_ARG_ENABLE(gprof, [AC_HELP_STRING([--enable-gprof], [enable profiling with gprof [default=off]])], -@@ -356,6 +371,8 @@ +@@ -356,6 +371,8 @@ AC_PROG_LIBTOOL AC_C_BIGENDIAN([AC_DEFINE(_BIG_ENDIAN, 1, [big-endian host])]) AC_CHECK_DECL(htole32, [AC_DEFINE(HTOLE_DEFINED, 1, [htole32 function is available])]) AC_CHECK_HEADER(sys/byteorder.h, [AC_DEFINE(HAVE_BYTEORDER_H, 1, [sys/byteorder.h header])]) +AC_CHECK_HEADER(endian.h, [AC_DEFINE(HAVE_ENDIAN_H, 1, [endian.h header])]) +AC_CHECK_HEADER(sys/endian.h, [AC_DEFINE(HAVE_SYS_ENDIAN_H, 1, [sys/endian.h header])]) AC_CHECK_FUNC(daemon, [ AC_DEFINE(HAVE_DAEMON, 1, [daemon function is available]) ]) if test "x${GCC}" = "xyes"; then -@@ -363,6 +380,7 @@ +@@ -363,6 +380,7 @@ if test "x${GCC}" = "xyes"; then fi CFLAGS="$CFLAGS -I../include \ + -DTSS_USER_NAME=\\\"$tss_user\\\" -DTSS_GROUP_NAME=\\\"$tss_group\\\" \ -DTCSD_DEFAULT_PORT=${TCSD_DEFAULT_PORT} -DTSS_VER_MAJOR=${TSS_VER_MAJOR} \ -DTSS_VER_MINOR=${TSS_VER_MINOR} -DTSS_SPEC_MAJOR=${TSS_SPEC_MAJOR} \ -DTSS_SPEC_MINOR=${TSS_SPEC_MINOR}" Index: head/security/trousers/files/patch-dist_Makefile.am =================================================================== --- head/security/trousers/files/patch-dist_Makefile.am (nonexistent) +++ head/security/trousers/files/patch-dist_Makefile.am (revision 417166) @@ -0,0 +1,19 @@ +--- dist/Makefile.am.orig 2014-04-24 18:05:43 UTC ++++ dist/Makefile.am +@@ -1,14 +1,14 @@ + EXTRA_DIST = system.data.auth system.data.noauth \ + fedora/fedora.initrd.tcsd + +-install: install-exec-hook ++Xinstall: install-exec-hook + if test ! -e ${DESTDIR}/@sysconfdir@/tcsd.conf; then mkdir -p ${DESTDIR}/@sysconfdir@ && cp tcsd.conf ${DESTDIR}/@sysconfdir@; fi + if !NOUSERCHECK + /bin/chown tss:tss ${DESTDIR}/@sysconfdir@/tcsd.conf || true + /bin/chmod 0600 ${DESTDIR}/@sysconfdir@/tcsd.conf + endif + +-install-exec-hook: ++Xinstall-exec-hook: + /bin/sh -c 'if [ ! -e ${DESTDIR}/@localstatedir@/lib/tpm ];then mkdir -p ${DESTDIR}/@localstatedir@/lib/tpm; fi' + if !NOUSERCHECK + /usr/sbin/groupadd tss || true Property changes on: head/security/trousers/files/patch-dist_Makefile.am ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/trousers/files/patch-dist_tcsd.conf.in =================================================================== --- head/security/trousers/files/patch-dist_tcsd.conf.in (nonexistent) +++ head/security/trousers/files/patch-dist_tcsd.conf.in (revision 417166) @@ -0,0 +1,20 @@ +--- dist/tcsd.conf.in.orig 2014-04-24 18:05:43 UTC ++++ dist/tcsd.conf.in +@@ -35,7 +35,7 @@ + # log data. The interface to this log is usually provided by the TPM + # device driver. + # +-# firmware_log_file = /sys/kernel/security/tpm0/binary_bios_measurements ++# firmware_log_file = /var/run/tpm/binary_bios_measurements + # + + # Option: kernel_log_file +@@ -46,7 +46,7 @@ + # http://sf.net/projects/linux-ima for more info on getting IMA. + # + # +-# kernel_log_file = /sys/kernel/security/ima/binary_runtime_measurements ++# kernel_log_file = /var/run/ima/binary_runtime_measurements + # + + # Option: firmware_pcrs Property changes on: head/security/trousers/files/patch-dist_tcsd.conf.in ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src_include_biosem.h =================================================================== --- head/security/trousers/files/patch-src_include_biosem.h (nonexistent) +++ head/security/trousers/files/patch-src_include_biosem.h (revision 417166) @@ -0,0 +1,11 @@ +--- src/include/biosem.h.orig 2016-06-20 15:21:26 UTC ++++ src/include/biosem.h +@@ -26,7 +26,7 @@ typedef struct { + UINT32 eventType; + BYTE digest[20]; + UINT32 eventDataSize; +- BYTE event[0];/* (eventSize) bytes of event data follows */ ++ BYTE event[1];/* (eventSize) bytes of event data follows */ + } TCG_PCClientPCREventStruc; + + #define EVLOG_SOURCE_BIOS 1 Property changes on: head/security/trousers/files/patch-src_include_biosem.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src_include_linux_tpm.h =================================================================== --- head/security/trousers/files/patch-src_include_linux_tpm.h (nonexistent) +++ head/security/trousers/files/patch-src_include_linux_tpm.h (revision 417166) @@ -0,0 +1,11 @@ +--- src/include/linux/tpm.h.orig 2016-06-20 15:21:26 UTC ++++ src/include/linux/tpm.h +@@ -20,6 +20,8 @@ + #include + #elif (defined (__OpenBSD__) || defined (__FreeBSD__)) + #include ++#elif (defined (SOLARIS)) ++#include + #endif + + /* ioctl commands */ Property changes on: head/security/trousers/files/patch-src_include_linux_tpm.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src_include_tcs__tsp.h =================================================================== --- head/security/trousers/files/patch-src_include_tcs__tsp.h (nonexistent) +++ head/security/trousers/files/patch-src_include_tcs__tsp.h (revision 417166) @@ -0,0 +1,16 @@ +--- src/include/tcs_tsp.h.orig 2016-06-20 15:21:26 UTC ++++ src/include/tcs_tsp.h +@@ -79,7 +79,13 @@ struct key_disk_cache + /* XXX Get rid of this, there's no reason to set an arbitrary limit */ + #define MAX_KEY_CHILDREN 10 + ++#ifndef STRUCTURE_PACKING_ATTRIBUTE ++#ifdef __GCC + #define STRUCTURE_PACKING_ATTRIBUTE __attribute__((packed)) ++#else ++#define STRUCTURE_PACKING_ATTRIBUTE /* */ ++#endif ++#endif + + #ifdef TSS_DEBUG + #define DBG_ASSERT(x) assert(x) Property changes on: head/security/trousers/files/patch-src_include_tcs__tsp.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src_include_tcs__utils.h =================================================================== --- head/security/trousers/files/patch-src_include_tcs__utils.h (nonexistent) +++ head/security/trousers/files/patch-src_include_tcs__utils.h (revision 417166) @@ -0,0 +1,23 @@ +--- src/include/tcs_utils.h.orig 2016-06-20 15:21:26 UTC ++++ src/include/tcs_utils.h +@@ -18,6 +18,20 @@ + #include "tcs_tsp.h" + #include "trousers_types.h" + ++ ++ ++/* ++ * XXX malloc wrapper ++ * ++ * Linux: malloc(0) => '\0' ++ * *BSD: malloc(0) => invalid to dereference ++ * ++ * => so wrap malloc(0) => calloc(1, 16) to create ++ * a 16Byte array containing '\0' ++ * ++ */ ++#define malloc(x) ((x) == 0 ? calloc(1, 16) : calloc(1, (x))) ++ + struct key_mem_cache + { + TCPA_KEY_HANDLE tpm_handle; Property changes on: head/security/trousers/files/patch-src_include_tcs__utils.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src_include_tcsd.h =================================================================== --- head/security/trousers/files/patch-src_include_tcsd.h (nonexistent) +++ head/security/trousers/files/patch-src_include_tcsd.h (revision 417166) @@ -0,0 +1,29 @@ +--- src/include/tcsd.h.orig 2016-06-20 15:21:26 UTC ++++ src/include/tcsd.h +@@ -53,14 +53,22 @@ struct tcsd_config + #define TCSD_DEFAULT_CONFIG_FILE ETC_PREFIX "/tcsd.conf" + extern char *tcsd_config_file; + ++#ifndef TSS_USER_NAME + #define TSS_USER_NAME "tss" ++#endif ++#ifndef TSS_GROUP_NAME + #define TSS_GROUP_NAME "tss" ++#endif ++ ++#ifndef TPM_PREFIX ++#define TPM_PREFIX "/lib/tpm" ++#endif + + #define TCSD_DEFAULT_MAX_THREADS 10 +-#define TCSD_DEFAULT_SYSTEM_PS_FILE VAR_PREFIX "/lib/tpm/system.data" +-#define TCSD_DEFAULT_SYSTEM_PS_DIR VAR_PREFIX "/lib/tpm" +-#define TCSD_DEFAULT_FIRMWARE_LOG_FILE "/sys/kernel/security/tpm0/binary_bios_measurements" +-#define TCSD_DEFAULT_KERNEL_LOG_FILE "/sys/kernel/security/ima/binary_runtime_measurements" ++#define TCSD_DEFAULT_SYSTEM_PS_FILE VAR_PREFIX TPM_PREFIX "/system.data" ++#define TCSD_DEFAULT_SYSTEM_PS_DIR VAR_PREFIX TPM_PREFIX ++#define TCSD_DEFAULT_FIRMWARE_LOG_FILE "/var/run/tpm/binary_bios_measurements" ++#define TCSD_DEFAULT_KERNEL_LOG_FILE "/var/run/ima/binary_runtime_measurements" + #define TCSD_DEFAULT_FIRMWARE_PCRS 0x00000000 + #define TCSD_DEFAULT_KERNEL_PCRS 0x00000000 + #define TCSD_DEFAULT_DISABLE_IPV4 0 Property changes on: head/security/trousers/files/patch-src_include_tcsd.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src_include_tcsd__ops.h =================================================================== --- head/security/trousers/files/patch-src_include_tcsd__ops.h (nonexistent) +++ head/security/trousers/files/patch-src_include_tcsd__ops.h (revision 417166) @@ -0,0 +1,11 @@ +--- src/include/tcsd_ops.h.orig 2016-06-20 15:21:26 UTC ++++ src/include/tcsd_ops.h +@@ -123,7 +123,7 @@ + + struct tcsd_op { + char *name; +- int op[]; ++ int op[20]; + }; + + struct tcsd_op tcsd_op_seal = {"seal", {TCSD_OP_SEAL}}; Property changes on: head/security/trousers/files/patch-src_include_tcsd__ops.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src_include_threads.h =================================================================== --- head/security/trousers/files/patch-src_include_threads.h (nonexistent) +++ head/security/trousers/files/patch-src_include_threads.h (revision 417166) @@ -0,0 +1,11 @@ +--- src/include/threads.h.orig 2016-06-20 15:21:26 UTC ++++ src/include/threads.h +@@ -31,7 +31,7 @@ + #define COND_SIGNAL(c) pthread_cond_signal(c) + + /* thread abstractions */ +-#define THREAD_ID ((THREAD_TYPE)pthread_self()) ++#define THREAD_ID (long int)((THREAD_TYPE)pthread_self()) + #define THREAD_TYPE pthread_t + #define THREAD_JOIN pthread_join + #define THREAD_DETACH pthread_detach Property changes on: head/security/trousers/files/patch-src_include_threads.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src_include_trousers__types.h =================================================================== --- head/security/trousers/files/patch-src_include_trousers__types.h (nonexistent) +++ head/security/trousers/files/patch-src_include_trousers__types.h (revision 417166) @@ -0,0 +1,42 @@ +--- src/include/trousers_types.h.orig 2016-06-20 15:21:26 UTC ++++ src/include/trousers_types.h +@@ -11,6 +11,14 @@ + #ifndef _TROUSERS_TYPES_H_ + #define _TROUSERS_TYPES_H_ + ++#ifndef STRUCTURE_PACKING_ATTRIBUTE ++#ifdef __GCC ++#define STRUCTURE_PACKING_ATTRIBUTE __attribute__((packed)) ++#else ++#define STRUCTURE_PACKING_ATTRIBUTE /* */ ++#endif ++#endif ++ + #define TCPA_NONCE_SIZE sizeof(TCPA_NONCE) + #define TCPA_DIGEST_SIZE sizeof(TCPA_DIGEST) + #define TCPA_ENCAUTH_SIZE sizeof(TCPA_ENCAUTH) +@@ -100,7 +108,7 @@ typedef struct tdTSS_KEY11_HDR { + typedef struct tdTSS_KEY12_HDR { + TPM_STRUCTURE_TAG tag; + UINT16 fill; +-} __attribute__((packed)) TSS_KEY12_HDR; ++} STRUCTURE_PACKING_ATTRIBUTE TSS_KEY12_HDR; + + typedef struct tdTSS_KEY { + union { +@@ -118,11 +126,10 @@ typedef struct tdTSS_KEY { + BYTE *encData; + } TSS_KEY; + +-#if (defined (__linux) || defined (linux) || defined (SOLARIS) || defined (__GLIBC__)) +-#define BSD_CONST +-#elif (defined (__OpenBSD__) || defined (__FreeBSD__)) ++#if defined (__FreeBSD__) + #define BSD_CONST const +-#endif +- ++#else ++#define BSD_CONST /* */ ++#endif + + #endif Property changes on: head/security/trousers/files/patch-src_include_trousers__types.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src_include_tss_platform.h =================================================================== --- head/security/trousers/files/patch-src_include_tss_platform.h (nonexistent) +++ head/security/trousers/files/patch-src_include_tss_platform.h (revision 417166) @@ -0,0 +1,11 @@ +--- src/include/tss/platform.h.orig 2016-06-20 15:21:26 UTC ++++ src/include/tss/platform.h +@@ -15,7 +15,7 @@ There are platform dependent and general + #if !defined(WIN32) + #include + typedef uint8_t BYTE; +- typedef int8_t TSS_BOOL; ++ typedef uint8_t TSS_BOOL; + typedef uint16_t UINT16; + typedef uint32_t UINT32; + typedef uint64_t UINT64; Property changes on: head/security/trousers/files/patch-src_include_tss_platform.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src_tcs_Makefile.am =================================================================== --- head/security/trousers/files/patch-src_tcs_Makefile.am (nonexistent) +++ head/security/trousers/files/patch-src_tcs_Makefile.am (revision 417166) @@ -0,0 +1,166 @@ +--- src/tcs/Makefile.am.orig 2014-04-24 18:05:44 UTC ++++ src/tcs/Makefile.am +@@ -1,8 +1,7 @@ +-noinst_LIBRARIES=libtcs.a ++noinst_LIBRARIES=libtcs.a libtcs_emu.a + +-CFLAGS+=-I${top_srcdir}/src/include + libtcs_a_LIBADD=${top_builddir}/src/tddl/libtddl.a +-libtcs_a_CFLAGS=-DAPPID=\"TCSD\ TCS\" -DVAR_PREFIX=\"@localstatedir@\" -DETC_PREFIX=\"@sysconfdir@\" -fPIE -DPIE ++libtcs_a_CFLAGS=-I${top_srcdir}/src/include -DAPPID=\"TCSD\ TCS\" -DVAR_PREFIX=\"@localstatedir@\" -DETC_PREFIX=\"@sysconfdir@\" -fPIE -DPIE + + libtcs_a_SOURCES=log.c \ + tcs_caps.c \ +@@ -91,7 +90,7 @@ endif + if TSS_BUILD_KEY + libtcs_a_SOURCES+=tcsi_key.c tcs_key.c tcs_key_mem_cache.c tcs_context_key.c rpc/@RPC@/rpc_key.c \ + crypto/@CRYPTO_PACKAGE@/crypto.c +-libtcs_a_CFLAGS+=-DTSS_BUILD_KEY ++libtcs_a_CFLAGS+=-DTSS_BUILD_KEY -I@OPENSSL_INCLUDE_DIR@ + endif + if TSS_BUILD_MAINT + libtcs_a_SOURCES+=tcsi_maint.c rpc/@RPC@/rpc_maint.c +@@ -140,3 +139,143 @@ if TSS_BUILD_CMK + libtcs_a_SOURCES+=tcsi_cmk.c rpc/@RPC@/rpc_cmk.c + libtcs_a_CFLAGS+=-DTSS_BUILD_CMK + endif ++ ++libtcs_emu_a_LIBADD=${LOCALBASE}/lib/tddl_emu/libtddl.a ++libtcs_emu_a_CFLAGS=-I${top_srcdir}/src/include -DAPPID=\"TCSD\ TCS\" -DVAR_PREFIX=\"@localstatedir@\" -DETC_PREFIX=\"@sysconfdir@\" -fPIE -DPIE ++ ++libtcs_emu_a_SOURCES=log.c \ ++ tcs_caps.c \ ++ tcs_req_mgr.c \ ++ tcs_context.c \ ++ tcsi_context.c \ ++ tcs_utils.c \ ++ rpc/@RPC@/rpc.c rpc/@RPC@/rpc_context.c \ ++ tcsi_caps_tpm.c rpc/@RPC@/rpc_caps_tpm.c \ ++ tcs_auth_mgr.c tcsi_auth.c rpc/@RPC@/rpc_auth.c \ ++ tcs_pbg.c ++ ++if TSS_BUILD_TRANSPORT ++libtcs_emu_a_SOURCES+=tcsi_transport.c rpc/@RPC@/rpc_transport.c ++libtcs_emu_a_CFLAGS+=-DTSS_BUILD_TRANSPORT ++endif ++if TSS_BUILD_TICK ++libtcs_emu_a_SOURCES+=tcsi_tick.c rpc/@RPC@/rpc_tick.c ++libtcs_emu_a_CFLAGS+=-DTSS_BUILD_TICK ++endif ++if TSS_BUILD_COUNTER ++libtcs_emu_a_SOURCES+=tcsi_counter.c tcs_counter.c rpc/@RPC@/rpc_counter.c ++libtcs_emu_a_CFLAGS+=-DTSS_BUILD_COUNTER ++endif ++if TSS_BUILD_RANDOM ++libtcs_emu_a_SOURCES+=tcsi_random.c rpc/@RPC@/rpc_random.c ++libtcs_emu_a_CFLAGS+=-DTSS_BUILD_RANDOM ++endif ++if TSS_BUILD_CAPS ++libtcs_emu_a_SOURCES+=tcsi_caps.c rpc/@RPC@/rpc_caps.c ++libtcs_emu_a_CFLAGS+=-DTSS_BUILD_CAPS ++endif ++if TSS_BUILD_DIR ++libtcs_emu_a_SOURCES+=tcsi_dir.c rpc/@RPC@/rpc_dir.c ++libtcs_emu_a_CFLAGS+=-DTSS_BUILD_DIR ++endif ++if TSS_BUILD_PCR_EVENTS ++libtcs_emu_a_SOURCES+=tcsi_evlog.c tcs_evlog_biosem.c tcs_evlog_imaem.c tcs_evlog.c \ ++ rpc/@RPC@/rpc_evlog.c ++libtcs_emu_a_CFLAGS+=-DTSS_BUILD_PCR_EVENTS ++endif ++if TSS_BUILD_SIGN ++libtcs_emu_a_SOURCES+=tcsi_sign.c rpc/@RPC@/rpc_sign.c ++libtcs_emu_a_CFLAGS+=-DTSS_BUILD_SIGN ++endif ++if TSS_BUILD_QUOTE ++libtcs_emu_a_SOURCES+=tcsi_quote.c tcs_quote.c rpc/@RPC@/rpc_quote.c ++libtcs_emu_a_CFLAGS+=-DTSS_BUILD_QUOTE ++endif ++if TSS_BUILD_SEAL ++libtcs_emu_a_SOURCES+=tcsi_seal.c tcs_seal.c rpc/@RPC@/rpc_seal.c ++libtcs_emu_a_CFLAGS+=-DTSS_BUILD_SEAL ++endif ++if TSS_BUILD_CHANGEAUTH ++libtcs_emu_a_SOURCES+=tcsi_changeauth.c rpc/@RPC@/rpc_changeauth.c ++libtcs_emu_a_CFLAGS+=-DTSS_BUILD_CHANGEAUTH ++endif ++if TSS_BUILD_BIND ++libtcs_emu_a_SOURCES+=tcsi_bind.c rpc/@RPC@/rpc_bind.c ++libtcs_emu_a_CFLAGS+=-DTSS_BUILD_BIND ++endif ++if TSS_BUILD_OWN ++libtcs_emu_a_SOURCES+=tcsi_own.c rpc/@RPC@/rpc_own.c ++libtcs_emu_a_CFLAGS+=-DTSS_BUILD_OWN ++endif ++if TSS_BUILD_PS ++libtcs_emu_a_SOURCES+=ps/ps_utils.c ps/tcsps.c tcsi_ps.c tcs_ps.c tcs_key_ps.c rpc/@RPC@/rpc_ps.c ++libtcs_emu_a_CFLAGS+=-DTSS_BUILD_PS ++endif ++if TSS_BUILD_ADMIN ++libtcs_emu_a_SOURCES+=tcsi_admin.c rpc/@RPC@/rpc_admin.c ++libtcs_emu_a_CFLAGS+=-DTSS_BUILD_ADMIN ++endif ++if TSS_BUILD_AIK ++libtcs_emu_a_SOURCES+=tcsi_aik.c tcs_aik.c rpc/@RPC@/rpc_aik.c ++libtcs_emu_a_CFLAGS+=-DTSS_BUILD_AIK ++endif ++if TSS_BUILD_EK ++libtcs_emu_a_SOURCES+=tcsi_ek.c rpc/@RPC@/rpc_ek.c ++libtcs_emu_a_CFLAGS+=-DTSS_BUILD_EK ++endif ++if TSS_BUILD_CERTIFY ++libtcs_emu_a_SOURCES+=tcsi_certify.c rpc/@RPC@/rpc_certify.c ++libtcs_emu_a_CFLAGS+=-DTSS_BUILD_CERTIFY ++endif ++if TSS_BUILD_KEY ++libtcs_emu_a_SOURCES+=tcsi_key.c tcs_key.c tcs_key_mem_cache.c tcs_context_key.c rpc/@RPC@/rpc_key.c \ ++ crypto/@CRYPTO_PACKAGE@/crypto.c ++libtcs_emu_a_CFLAGS+=-DTSS_BUILD_KEY -I@OPENSSL_INCLUDE_DIR@ ++endif ++if TSS_BUILD_MAINT ++libtcs_emu_a_SOURCES+=tcsi_maint.c rpc/@RPC@/rpc_maint.c ++libtcs_emu_a_CFLAGS+=-DTSS_BUILD_MAINT ++endif ++if TSS_BUILD_MIGRATION ++libtcs_emu_a_SOURCES+=tcsi_migration.c tcs_migration.c rpc/@RPC@/rpc_migration.c ++libtcs_emu_a_CFLAGS+=-DTSS_BUILD_MIGRATION ++endif ++if TSS_BUILD_PCR_EXTEND ++libtcs_emu_a_SOURCES+=tcsi_pcr.c rpc/@RPC@/rpc_pcr_extend.c ++libtcs_emu_a_CFLAGS+=-DTSS_BUILD_PCR_EXTEND ++endif ++if TSS_BUILD_SELFTEST ++libtcs_emu_a_SOURCES+=tcsi_selftest.c rpc/@RPC@/rpc_selftest.c ++libtcs_emu_a_CFLAGS+=-DTSS_BUILD_SELFTEST ++endif ++if TSS_BUILD_DAA ++libtcs_emu_a_SOURCES+=tcsi_daa.c rpc/@RPC@/rpc_daa.c ++libtcs_emu_a_CFLAGS+=-DTSS_BUILD_DAA ++endif ++if TSS_BUILD_NV ++libtcs_emu_a_SOURCES+=tcsi_nv.c rpc/@RPC@/rpc_nv.c ++libtcs_emu_a_CFLAGS+=-DTSS_BUILD_NV ++endif ++if TSS_BUILD_AUDIT ++libtcs_emu_a_SOURCES+=tcsi_audit.c rpc/@RPC@/rpc_audit.c ++libtcs_emu_a_CFLAGS+=-DTSS_BUILD_AUDIT ++endif ++if TSS_BUILD_SEALX ++libtcs_emu_a_CFLAGS+=-DTSS_BUILD_SEALX ++endif ++if TSS_BUILD_TSS12 ++libtcs_emu_a_SOURCES+=tcsi_oper.c rpc/@RPC@/rpc_oper.c ++libtcs_emu_a_CFLAGS+=-DTSS_BUILD_TSS12 ++endif ++if TSS_BUILD_DELEGATION ++libtcs_emu_a_SOURCES+=tcsi_delegate.c rpc/@RPC@/rpc_delegate.c ++libtcs_emu_a_CFLAGS+=-DTSS_BUILD_DELEGATION ++endif ++if TSS_BUILD_QUOTE2 ++libtcs_emu_a_SOURCES+=tcsi_quote2.c tcs_quote2.c rpc/@RPC@/rpc_quote2.c ++libtcs_emu_a_CFLAGS+=-DTSS_BUILD_QUOTE2 ++endif ++if TSS_BUILD_CMK ++libtcs_emu_a_SOURCES+=tcsi_cmk.c rpc/@RPC@/rpc_cmk.c ++libtcs_emu_a_CFLAGS+=-DTSS_BUILD_CMK ++endif Property changes on: head/security/trousers/files/patch-src_tcs_Makefile.am ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src_tcs_ps_ps__utils.c =================================================================== --- head/security/trousers/files/patch-src_tcs_ps_ps__utils.c (nonexistent) +++ head/security/trousers/files/patch-src_tcs_ps_ps__utils.c (revision 417166) @@ -0,0 +1,45 @@ +--- src/tcs/ps/ps_utils.c.orig 2016-06-20 15:21:26 UTC ++++ src/tcs/ps/ps_utils.c +@@ -16,10 +16,18 @@ + #if defined(HAVE_BYTEORDER_H) + #include + #elif defined(HTOLE_DEFINED) ++#if defined(HAVE_ENDIAN_H) + #include + #define LE_16 htole16 + #define LE_32 htole32 + #define LE_64 htole64 ++#endif ++#if defined(HAVE_SYS_ENDIAN_H) ++#include ++#define LE_16 htole16 ++#define LE_32 htole32 ++#define LE_64 htole64 ++#endif + #else + #define LE_16(x) (x) + #define LE_32(x) (x) +@@ -42,11 +50,7 @@ + struct key_disk_cache *key_disk_cache_head = NULL; + + +-#ifdef SOLARIS + TSS_RESULT +-#else +-inline TSS_RESULT +-#endif + read_data(int fd, void *data, UINT32 size) + { + int rc; +@@ -64,11 +68,7 @@ read_data(int fd, void *data, UINT32 siz + } + + +-#ifdef SOLARIS + TSS_RESULT +-#else +-inline TSS_RESULT +-#endif + write_data(int fd, void *data, UINT32 size) + { + int rc; Property changes on: head/security/trousers/files/patch-src_tcs_ps_ps__utils.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src_tcs_ps_tcsps.c =================================================================== --- head/security/trousers/files/patch-src_tcs_ps_tcsps.c (nonexistent) +++ head/security/trousers/files/patch-src_tcs_ps_tcsps.c (revision 417166) @@ -0,0 +1,67 @@ +--- src/tcs/ps/tcsps.c.orig 2016-06-20 15:21:26 UTC ++++ src/tcs/ps/tcsps.c +@@ -24,6 +24,11 @@ + #define LE_16 htole16 + #define LE_32 htole32 + #define LE_64 htole64 ++#elif defined (HAVE_SYS_ENDIAN_H) ++#include ++#define LE_16 htole16 ++#define LE_32 htole32 ++#define LE_64 htole64 + #else + #define LE_16(x) (x) + #define LE_32(x) (x) +@@ -33,6 +38,26 @@ + #include + #include + ++#ifdef __sun ++#define LOCK_EX F_LOCK ++#define LOCK_UN F_ULOCK ++#define flock(fd, func) lockf(fd, func, 0) ++#endif ++ ++#ifndef LOCK_SH ++#define LOCK_SH 1 /* shared lock */ ++#endif ++#ifndef LOCK_EX ++#define LOCK_EX 2 /* exclusive lock */ ++#endif ++#ifndef LOCK_NB ++#define LOCK_NB 4 /* don't block when locking */ ++#endif ++#ifndef LOCK_UN ++#define LOCK_UN 8 /* unlock */ ++#endif ++ ++ + #include "trousers/tss.h" + #include "trousers_types.h" + #include "tcsps.h" +@@ -43,6 +68,25 @@ + #include "tcsd_wrap.h" + #include "tcsd.h" + ++#ifndef LE_16 ++static UINT16 htole16(UINT16 x) ++{ ++ BYTE *b = &x; ++ return (UINT16) (b[0] + (b[1] << 8)); ++} ++#define LE_16 htole16 ++#endif ++ ++#ifndef LE_32 ++static UINT32 htole32(UINT32 x) ++{ ++ BYTE *b = &x; ++ return (UINT32) (b[0] + (b[1] << 8) + (b[2] << 16) + (b[3] << 24)); ++} ++#define LE_32 htole32 ++#endif ++ ++ + int system_ps_fd = -1; + MUTEX_DECLARE(disk_cache_lock); + Property changes on: head/security/trousers/files/patch-src_tcs_ps_tcsps.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src_tcs_rpc_tcstp_rpc.c =================================================================== --- head/security/trousers/files/patch-src_tcs_rpc_tcstp_rpc.c (nonexistent) +++ head/security/trousers/files/patch-src_tcs_rpc_tcstp_rpc.c (revision 417166) @@ -0,0 +1,10 @@ +--- src/tcs/rpc/tcstp/rpc.c.orig 2016-06-20 15:21:26 UTC ++++ src/tcs/rpc/tcstp/rpc.c +@@ -16,6 +16,7 @@ + #if (defined (__OpenBSD__) || defined (__FreeBSD__)) + #include + #include ++#include + #endif + #include + Property changes on: head/security/trousers/files/patch-src_tcs_rpc_tcstp_rpc.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src_tcs_tcs__aik.c =================================================================== --- head/security/trousers/files/patch-src_tcs_tcs__aik.c (nonexistent) +++ head/security/trousers/files/patch-src_tcs_tcs__aik.c (revision 417166) @@ -0,0 +1,11 @@ +--- src/tcs/tcs_aik.c.orig 2016-06-20 15:21:26 UTC ++++ src/tcs/tcs_aik.c +@@ -66,7 +66,7 @@ UnloadBlob_SYMMETRIC_KEY(UINT64 *offset, + UnloadBlob_UINT16(offset, &key->size, blob); + + if (key->size > 0) { +- key->data = (BYTE *)malloc(key->size); ++ key->data = malloc(key->size); + if (key->data == NULL) { + LogError("malloc of %hu bytes failed.", key->size); + key->size = 0; Property changes on: head/security/trousers/files/patch-src_tcs_tcs__aik.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src_tcs_tcs__auth__mgr.c =================================================================== --- head/security/trousers/files/patch-src_tcs_tcs__auth__mgr.c (nonexistent) +++ head/security/trousers/files/patch-src_tcs_tcs__auth__mgr.c (revision 417166) @@ -0,0 +1,29 @@ +--- src/tcs/tcs_auth_mgr.c.orig 2016-06-20 15:21:26 UTC ++++ src/tcs/tcs_auth_mgr.c +@@ -108,7 +108,7 @@ void + auth_mgr_swap_in() + { + if (auth_mgr.overflow[auth_mgr.of_tail] != NULL) { +- LogDebug("waking up thread %lddd, auth slot has opened", THREAD_ID); ++ LogDebug("waking up thread %ld, auth slot has opened", THREAD_ID); + /* wake up the next sleeping thread in order and increment tail */ + COND_SIGNAL(auth_mgr.overflow[auth_mgr.of_tail]); + auth_mgr.overflow[auth_mgr.of_tail] = NULL; +@@ -149,7 +149,7 @@ auth_mgr_swap_out(TCS_CONTEXT_HANDLE hCo + auth_mgr.overflow[auth_mgr.of_head] = cond; + auth_mgr.of_head = (auth_mgr.of_head + 1) % auth_mgr.overflow_size; + /* go to sleep */ +- LogDebug("thread %lddd going to sleep until auth slot opens", THREAD_ID); ++ LogDebug("thread %ld going to sleep until auth slot opens", THREAD_ID); + auth_mgr.sleeping_threads++; + COND_WAIT(cond, &tcsp_lock); + auth_mgr.sleeping_threads--; +@@ -180,7 +180,7 @@ auth_mgr_swap_out(TCS_CONTEXT_HANDLE hCo + auth_mgr.of_tail = 0; + auth_mgr.overflow[auth_mgr.of_head] = cond; + auth_mgr.of_head = (auth_mgr.of_head + 1) % auth_mgr.overflow_size; +- LogDebug("thread %lddd going to sleep until auth slot opens", THREAD_ID); ++ LogDebug("thread %ld going to sleep until auth slot opens", THREAD_ID); + auth_mgr.sleeping_threads++; + COND_WAIT(cond, &tcsp_lock); + auth_mgr.sleeping_threads--; Property changes on: head/security/trousers/files/patch-src_tcs_tcs__auth__mgr.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src_tcsd_Makefile.am =================================================================== --- head/security/trousers/files/patch-src_tcsd_Makefile.am (nonexistent) +++ head/security/trousers/files/patch-src_tcsd_Makefile.am (revision 417166) @@ -0,0 +1,23 @@ +--- src/tcsd/Makefile.am.orig 2014-04-24 18:05:44 UTC ++++ src/tcsd/Makefile.am +@@ -1,11 +1,17 @@ +-sbin_PROGRAMS=tcsd ++sbin_PROGRAMS=tcsd tcsd_emu + +-tcsd_CFLAGS=-DAPPID=\"TCSD\" -DVAR_PREFIX=\"@localstatedir@\" -DETC_PREFIX=\"@sysconfdir@\" -I${top_srcdir}/src/include -fPIE -DPIE +-tcsd_LDADD=${top_builddir}/src/tcs/libtcs.a ${top_builddir}/src/tddl/libtddl.a -lpthread @CRYPTOLIB@ ++tcsd_CFLAGS=-DAPPID=\"TCSD\" -DVAR_PREFIX=\"@localstatedir@\" -DETC_PREFIX=\"@sysconfdir@\" -I${top_srcdir}/src/include -fPIE -DPIE -I@OPENSSL_INCLUDE_DIR@ ++tcsd_LDADD=${top_builddir}/src/tcs/libtcs.a ${top_builddir}/src/tddl/libtddl.a -lpthread -L@OPENSSL_LIB_DIR@ @CRYPTOLIB@ + tcsd_LDFLAGS=-pie -Wl,-z,relro -Wl,-z,now + + tcsd_SOURCES=svrside.c tcsd_conf.c tcsd_threads.c platform.c + ++tcsd_emu_CFLAGS=-DAPPID=\"TCSD\" -DVAR_PREFIX=\"@localstatedir@\" -DETC_PREFIX=\"@sysconfdir@\" -I${top_srcdir}/src/include -fPIE -DPIE -I@OPENSSL_INCLUDE_DIR@ ++tcsd_emu_LDADD=${top_builddir}/src/tcs/libtcs_emu.a -ltddl -L${LOCALBASE}/lib/tddl_emu -lpthread -L@OPENSSL_LIB_DIR@ @CRYPTOLIB@ ++tcsd_emu_LDFLAGS=-pie -Wl,-z,relro -Wl,-z,now -Wl,-rpath=${LOCALBASE}/lib/tddl_emu:${LOCALBASE}/lib ++ ++tcsd_emu_SOURCES=svrside.c tcsd_conf.c tcsd_threads.c platform.c ++ + if TSS_BUILD_PS + tcsd_CFLAGS+=-DTSS_BUILD_PS + endif Property changes on: head/security/trousers/files/patch-src_tcsd_Makefile.am ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src_tcsd_svrside.c =================================================================== --- head/security/trousers/files/patch-src_tcsd_svrside.c (nonexistent) +++ head/security/trousers/files/patch-src_tcsd_svrside.c (revision 417166) @@ -0,0 +1,63 @@ +--- src/tcsd/svrside.c.orig 2016-06-20 15:21:26 UTC ++++ src/tcsd/svrside.c +@@ -92,12 +92,19 @@ tcsd_signal_term(int signal) + term = 1; + } + +-void ++static void + tcsd_signal_hup(int signal) + { + hup = 1; + } + ++static void ++tcsd_signal_chld(int signal) ++{ ++ ++ wait3(NULL, WNOHANG, NULL); ++} ++ + static TSS_RESULT + signals_init(void) + { +@@ -106,6 +113,14 @@ signals_init(void) + struct sigaction sa; + + sigemptyset(&sigmask); ++ if ((rc = sigaddset(&sigmask, SIGCHLD))) { ++ LogError("sigaddset: %s", strerror(errno)); ++ return TCSERR(TSS_E_INTERNAL_ERROR); ++ } ++ if ((rc = sigaddset(&sigmask, SIGINT))) { ++ LogError("sigaddset: %s", strerror(errno)); ++ return TCSERR(TSS_E_INTERNAL_ERROR); ++ } + if ((rc = sigaddset(&sigmask, SIGTERM))) { + LogError("sigaddset: %s", strerror(errno)); + return TCSERR(TSS_E_INTERNAL_ERROR); +@@ -128,12 +143,24 @@ signals_init(void) + return TCSERR(TSS_E_INTERNAL_ERROR); + } + ++ if ((rc = sigaction(SIGINT, &sa, NULL))) { ++ LogError("signal SIGINT not registered: %s", strerror(errno)); ++ return TCSERR(TSS_E_INTERNAL_ERROR); ++ } ++ + sa.sa_handler = tcsd_signal_hup; + if ((rc = sigaction(SIGHUP, &sa, NULL))) { + LogError("signal SIGHUP not registered: %s", strerror(errno)); + return TCSERR(TSS_E_INTERNAL_ERROR); + } + ++ sa.sa_flags = SA_RESTART; ++ sa.sa_handler = tcsd_signal_chld; ++ if ((rc = sigaction(SIGCHLD, &tcsd_sa_chld, NULL))) { ++ LogError("signal SIGCHLD not registered: %s", strerror(errno)); ++ return TCSERR(TSS_E_INTERNAL_ERROR); ++ } ++ + return TSS_SUCCESS; + } + Property changes on: head/security/trousers/files/patch-src_tcsd_svrside.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src_tddl_Makefile.am =================================================================== --- head/security/trousers/files/patch-src_tddl_Makefile.am (nonexistent) +++ head/security/trousers/files/patch-src_tddl_Makefile.am (revision 417166) @@ -0,0 +1,14 @@ +--- src/tddl/Makefile.am.orig 2014-04-24 18:05:44 UTC ++++ src/tddl/Makefile.am +@@ -1,4 +1,11 @@ ++libdir=@libdir@/tddl ++ + lib_LIBRARIES=libtddl.a + + libtddl_a_SOURCES=tddl.c + libtddl_a_CFLAGS=-DAPPID=\"TCSD\ TDDL\" -I${top_srcdir}/src/include -fPIE -DPIE ++ ++lib_LTLIBRARIES=libtddl.la ++ ++libtddl_la_SOURCES=tddl.c ++libtddl_la_CFLAGS=-DAPPID=\"TCSD\ TDDL\" -I${top_srcdir}/src/include -fPIE -DPIE Property changes on: head/security/trousers/files/patch-src_tddl_Makefile.am ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src_trspi_Makefile.am =================================================================== --- head/security/trousers/files/patch-src_trspi_Makefile.am (nonexistent) +++ head/security/trousers/files/patch-src_trspi_Makefile.am (revision 417166) @@ -0,0 +1,12 @@ +--- src/trspi/Makefile.am.orig 2014-04-24 18:05:44 UTC ++++ src/trspi/Makefile.am +@@ -1,7 +1,8 @@ + noinst_LTLIBRARIES=libtrousers.la + + libtrousers_la_SOURCES=trousers.c crypto/@CRYPTO_PACKAGE@/hash.c +-libtrousers_la_CFLAGS=-DAPPID=\"TSPI\" -I${top_srcdir}/src/include ++libtrousers_la_CFLAGS=-DAPPID=\"TSPI\" -I${top_srcdir}/src/include \ ++ -I${ICONV_PREFIX}/include -I@OPENSSL_INCLUDE_DIR@ + + if TSS_BUILD_ASYM_CRYPTO + libtrousers_la_SOURCES+=crypto/@CRYPTO_PACKAGE@/rsa.c Property changes on: head/security/trousers/files/patch-src_trspi_Makefile.am ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src_tspi_Makefile.am =================================================================== --- head/security/trousers/files/patch-src_tspi_Makefile.am (nonexistent) +++ head/security/trousers/files/patch-src_tspi_Makefile.am (revision 417166) @@ -0,0 +1,14 @@ +--- src/tspi/Makefile.am.orig 2014-04-24 18:05:44 UTC ++++ src/tspi/Makefile.am +@@ -17,9 +17,9 @@ libtspi_la_LIBADD=${top_builddir}/src/tr + # 5. If any interfaces have been added since the last public release, then increment age. + # 6. If any interfaces have been removed since the last public release, then set age to 0. + +-libtspi_la_LDFLAGS=-version-info 3:0:2 -lpthread @CRYPTOLIB@ ++libtspi_la_LDFLAGS=-version-info 3:0:2 -lpthread -L@OPENSSL_LIB_DIR@ @CRYPTOLIB@ -L${ICONV_PREFIX}/lib ${ICONV_LIB} + +-libtspi_la_CFLAGS=-I$(top_srcdir)/src/include -DAPPID=\"TSPI\" -DVAR_PREFIX=\"@localstatedir@\" -DETC_PREFIX=\"@sysconfdir@\" ++libtspi_la_CFLAGS=-I$(top_srcdir)/src/include -DAPPID=\"TSPI\" -DVAR_PREFIX=\"@localstatedir@\" -DETC_PREFIX=\"@sysconfdir@\" -I@OPENSSL_INCLUDE_DIR@ + + libtspi_la_SOURCES=log.c \ + spi_utils.c \ Property changes on: head/security/trousers/files/patch-src_tspi_Makefile.am ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src_tspi_ps_ps__utils.c =================================================================== --- head/security/trousers/files/patch-src_tspi_ps_ps__utils.c (nonexistent) +++ head/security/trousers/files/patch-src_tspi_ps_ps__utils.c (revision 417166) @@ -0,0 +1,20 @@ +--- src/tspi/ps/ps_utils.c.orig 2016-06-20 15:21:26 UTC ++++ src/tspi/ps/ps_utils.c +@@ -22,7 +22,7 @@ + #include "tspps.h" + #include "tsplog.h" + +-inline TSS_RESULT ++TSS_RESULT + read_data(int fd, void *data, UINT32 size) + { + int rc; +@@ -39,7 +39,7 @@ read_data(int fd, void *data, UINT32 siz + return TSS_SUCCESS; + } + +-inline TSS_RESULT ++TSS_RESULT + write_data(int fd, void *data, UINT32 size) + { + int rc; Property changes on: head/security/trousers/files/patch-src_tspi_ps_ps__utils.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src_tspi_ps_tspps.c =================================================================== --- head/security/trousers/files/patch-src_tspi_ps_tspps.c (nonexistent) +++ head/security/trousers/files/patch-src_tspi_ps_tspps.c (revision 417166) @@ -0,0 +1,89 @@ +--- src/tspi/ps/tspps.c.orig 2016-06-20 15:21:26 UTC ++++ src/tspi/ps/tspps.c +@@ -29,6 +29,11 @@ + #define LE_16 htole16 + #define LE_32 htole32 + #define LE_64 htole64 ++#elif defined(HAVE_SYS_ENDIAN_H) ++#include ++#define LE_16 htole16 ++#define LE_32 htole32 ++#define LE_64 htole64 + #else + #define LE_16(x) (x) + #define LE_32(x) (x) +@@ -43,9 +48,13 @@ + #include "tspps.h" + #include "tsplog.h" + ++ + static int user_ps_fd = -1; + static MUTEX_DECLARE_INIT(user_ps_lock); + #if (defined (__FreeBSD__) || defined (__OpenBSD__)) ++#include ++#define LE_16 htole16 ++#define LE_32 htole32 + static MUTEX_DECLARE_INIT(user_ps_path); + #endif + static struct flock fl; +@@ -60,9 +69,7 @@ get_user_ps_path(char **file) + TSS_RESULT result; + char *file_name = NULL, *home_dir = NULL; + struct passwd *pwp; +-#if (defined (__linux) || defined (linux) || defined(__GLIBC__)) + struct passwd pw; +-#endif + struct stat stat_buf; + char buf[PASSWD_BUFSIZE]; + uid_t euid; +@@ -72,10 +79,6 @@ get_user_ps_path(char **file) + *file = strdup(file_name); + return (*file) ? TSS_SUCCESS : TSPERR(TSS_E_OUTOFMEMORY); + } +-#if (defined (__FreeBSD__) || defined (__OpenBSD__)) +- MUTEX_LOCK(user_ps_path); +-#endif +- + euid = geteuid(); + + #if defined (SOLARIS) +@@ -88,32 +91,14 @@ get_user_ps_path(char **file) + */ + rc = snprintf(buf, sizeof (buf), "%s/%d", TSS_USER_PS_DIR, euid); + #else +- setpwent(); +- while (1) { +-#if (defined (__linux) || defined (linux) || defined(__GLIBC__)) +- rc = getpwent_r(&pw, buf, PASSWD_BUFSIZE, &pwp); +- if (rc) { +- LogDebugFn("USER PS: Error getting path to home directory: getpwent_r: %s", +- strerror(rc)); +- endpwent(); +- return TSPERR(TSS_E_INTERNAL_ERROR); +- } ++ rc = getpwuid_r(euid, &pw, buf, PASSWD_BUFSIZE, &pwp); ++ if (rc) { ++ LogDebugFn("USER PS: Error getting path to home directory: " ++ "getpwent_r: %s", strerror(rc)); ++ return TSPERR(TSS_E_INTERNAL_ERROR); ++ } + +-#elif (defined (__FreeBSD__) || defined (__OpenBSD__)) +- if ((pwp = getpwent()) == NULL) { +- LogDebugFn("USER PS: Error getting path to home directory: getpwent: %s", +- strerror(rc)); +- endpwent(); +- MUTEX_UNLOCK(user_ps_path); +- return TSPERR(TSS_E_INTERNAL_ERROR); +- } +-#endif +- if (euid == pwp->pw_uid) { +- home_dir = strdup(pwp->pw_dir); +- break; +- } +- } +- endpwent(); ++ home_dir = strdup(pwp->pw_dir); + + if (!home_dir) + return TSPERR(TSS_E_OUTOFMEMORY); Property changes on: head/security/trousers/files/patch-src_tspi_ps_tspps.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src_tspi_rpc_hosttable.c =================================================================== --- head/security/trousers/files/patch-src_tspi_rpc_hosttable.c (nonexistent) +++ head/security/trousers/files/patch-src_tspi_rpc_hosttable.c (revision 417166) @@ -0,0 +1,38 @@ +--- src/tspi/rpc/hosttable.c.orig 2016-06-20 15:21:26 UTC ++++ src/tspi/rpc/hosttable.c +@@ -51,6 +51,8 @@ host_table_final() + { + struct host_table_entry *hte, *next = NULL; + ++ if( ht == NULL ) return; ++ + MUTEX_LOCK(ht->lock); + + for (hte = ht->entries; hte; hte = next) { +@@ -84,6 +86,8 @@ __tspi_add_table_entry(TSS_HCONTEXT tspC + { + struct host_table_entry *entry, *tmp; + ++ if( ht == NULL ) return TSPERR(TSS_E_OUTOFMEMORY); ++ + entry = calloc(1, sizeof(struct host_table_entry)); + if (entry == NULL) { + LogError("malloc of %zd bytes failed.", sizeof(struct host_table_entry)); +@@ -134,6 +138,8 @@ remove_table_entry(TSS_HCONTEXT tspConte + { + struct host_table_entry *hte, *prev = NULL; + ++ if( ht == NULL ) return; ++ + MUTEX_LOCK(ht->lock); + + for (hte = ht->entries; hte; prev = hte, hte = hte->next) { +@@ -158,6 +164,8 @@ get_table_entry(TSS_HCONTEXT tspContext) + { + struct host_table_entry *index = NULL; + ++ if( ht == NULL ) return NULL; ++ + MUTEX_LOCK(ht->lock); + + for (index = ht->entries; index; index = index->next) { Property changes on: head/security/trousers/files/patch-src_tspi_rpc_hosttable.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src_tspi_rpc_tcstp_rpc.c =================================================================== --- head/security/trousers/files/patch-src_tspi_rpc_tcstp_rpc.c (nonexistent) +++ head/security/trousers/files/patch-src_tspi_rpc_tcstp_rpc.c (revision 417166) @@ -0,0 +1,11 @@ +--- src/tspi/rpc/tcstp/rpc.c.orig 2016-06-20 15:21:26 UTC ++++ src/tspi/rpc/tcstp/rpc.c +@@ -304,7 +304,7 @@ recv_from_socket(int sock, void *buffer, + errno = 0; + if ((recv_size = recv(sock, buffer+recv_total, size-recv_total, 0)) <= 0) { + if (recv_size < 0) { +- if (errno == EINTR) ++ if (errno == EINTR || errno == EAGAIN) + continue; + LogError("Socket receive connection error: %s.", strerror(errno)); + } else { Property changes on: head/security/trousers/files/patch-src_tspi_rpc_tcstp_rpc.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/trousers/files/patch-src_tspi_tsp__tcsi__param.c =================================================================== --- head/security/trousers/files/patch-src_tspi_tsp__tcsi__param.c (nonexistent) +++ head/security/trousers/files/patch-src_tspi_tsp__tcsi__param.c (revision 417166) @@ -0,0 +1,15 @@ +--- src/tspi/tsp_tcsi_param.c.orig 2016-06-20 15:21:26 UTC ++++ src/tspi/tsp_tcsi_param.c +@@ -11,7 +11,12 @@ + #include + #include + #include ++#if !defined(__FreeBSD__) + #include ++#else ++#include ++#define HOST_NAME_MAX MAXHOSTNAMELEN ++#endif + #include "trousers/tss.h" + #include "trousers/trousers.h" + #include "trousers_types.h" Property changes on: head/security/trousers/files/patch-src_tspi_tsp__tcsi__param.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/xorsearch/Makefile =================================================================== --- head/security/xorsearch/Makefile (revision 417165) +++ head/security/xorsearch/Makefile (revision 417166) @@ -1,25 +1,26 @@ # Created by: Edwin Groothuis # $FreeBSD$ PORTNAME= xorsearch PORTVERSION= 1.2.0 CATEGORIES= security textproc MASTER_SITES= http://www.didierstevens.com/files/software/ DISTNAME= XORSearch_V1_2_0 MAINTAINER= edwin@mavetju.org COMMENT= Search for a given string in an XOR or ROL encoded binary file -USES= zip -WRKSRC= ${WRKDIR} +USES= dos2unix zip +DOS2UNIX_GLOB= *.c +NO_WRKSUBDIR= yes PLIST_FILES= bin/xorsearch do-build: - ${CC} -o ${WRKDIR}/XORSearch ${WRKDIR}/XORSearch.c + ${CC} -o ${WRKSRC}/XORSearch ${WRKSRC}/XORSearch.c do-install: - ${INSTALL_PROGRAM} ${WRKDIR}/XORSearch \ + ${INSTALL_PROGRAM} ${WRKSRC}/XORSearch \ ${STAGEDIR}${PREFIX}/bin/xorsearch .include Index: head/security/xorsearch/files/patch-XORSearch.c =================================================================== --- head/security/xorsearch/files/patch-XORSearch.c (revision 417165) +++ head/security/xorsearch/files/patch-XORSearch.c (revision 417166) @@ -1,10 +1,10 @@ ---- XORSearch.c.orig Tue Dec 18 07:27:32 2007 -+++ XORSearch.c Tue Dec 18 07:27:38 2007 +--- XORSearch.c.orig 2016-06-20 15:09:40 UTC ++++ XORSearch.c @@ -20,7 +20,6 @@ - #include - #include - #include --#include - #include - #include - #include + #include + #include + #include +-#include + #include + #include + #include Index: head/shells/ibsh/Makefile =================================================================== --- head/shells/ibsh/Makefile (revision 417165) +++ head/shells/ibsh/Makefile (revision 417166) @@ -1,37 +1,37 @@ # Created by: Vaida Bogdan # $FreeBSD$ PORTNAME= ibsh PORTVERSION= 0.3e CATEGORIES= shells MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Restricted unix shell LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING -USES= gmake +USES= dos2unix gmake ALL_TARGET= ibsh INSTALL_TARGET= ibsh_install MAKE_ARGS= CC="${CC}" PREFIX="${STAGEDIR}${PREFIX}" SUB_FILES= pkg-message PORTDOCS= AUTHORS BUGS CONTRIBUTORS COPYING COPYRIGHT ChangeLog \ INSTALL README TODO VERSION OPTIONS_DEFINE= DOCS post-patch: @${REINPLACE_CMD} -e 's|PATH_MAX|PATH_MAXb|g' ${WRKSRC}/delbadfiles.c ${WRKSRC}/ibsh.h @${REINPLACE_CMD} -e 's|/etc/ibsh|${PREFIX}/etc/ibsh|g' ${WRKSRC}/ibsh.h post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/ibsh post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} .include Index: head/shells/ibsh/files/patch-Makefile =================================================================== --- head/shells/ibsh/files/patch-Makefile (revision 417165) +++ head/shells/ibsh/files/patch-Makefile (revision 417166) @@ -1,21 +1,21 @@ ---- Makefile.orig 2005-06-03 13:47:32 UTC +--- Makefile.orig 2016-06-20 15:08:34 UTC +++ Makefile -@@ -30,12 +30,12 @@ delbadfiles.o: delbadfiles.c ibsh.h - ${CC} -c delbadfiles.c - - ibsh_install: -- cp ./ibsh /bin/ -- mkdir /etc/ibsh -- mkdir /etc/ibsh/cmds -- mkdir /etc/ibsh/xtns -- cp ./globals.cmds /etc/ibsh/ -- cp ./globals.xtns /etc/ibsh/ -+ cp ./ibsh ${PREFIX}/bin/ -+ mkdir ${PREFIX}/etc/ibsh -+ mkdir ${PREFIX}/etc/ibsh/cmds -+ mkdir ${PREFIX}/etc/ibsh/xtns -+ cp ./globals.cmds ${PREFIX}/etc/ibsh/ -+ cp ./globals.xtns ${PREFIX}/etc/ibsh/ - - ibsh_uninstall: - rm -rf /etc/ibsh/globals.cmds +@@ -30,12 +30,12 @@ delbadfiles.o: delbadfiles.c ibsh.h + ${CC} -c delbadfiles.c + + ibsh_install: +- cp ./ibsh /bin/ +- mkdir /etc/ibsh +- mkdir /etc/ibsh/cmds +- mkdir /etc/ibsh/xtns +- cp ./globals.cmds /etc/ibsh/ +- cp ./globals.xtns /etc/ibsh/ ++ cp ./ibsh ${PREFIX}/bin/ ++ mkdir ${PREFIX}/etc/ibsh ++ mkdir ${PREFIX}/etc/ibsh/cmds ++ mkdir ${PREFIX}/etc/ibsh/xtns ++ cp ./globals.cmds ${PREFIX}/etc/ibsh/ ++ cp ./globals.xtns ${PREFIX}/etc/ibsh/ + + ibsh_uninstall: + rm -rf /etc/ibsh/globals.cmds Index: head/sysutils/rfstool/Makefile =================================================================== --- head/sysutils/rfstool/Makefile (revision 417165) +++ head/sysutils/rfstool/Makefile (revision 417166) @@ -1,24 +1,25 @@ # Created by: trevor # $FreeBSD$ PORTNAME= rfstool PORTVERSION= 0.14 CATEGORIES= sysutils MASTER_SITES= NETBSD DISTNAME= rfstool-0.14-source MAINTAINER= ports@FreeBSD.org COMMENT= Read from a Reiser file system PLIST_FILES= bin/rfstool -USES= zip +USES= dos2unix zip +DOS2UNIX_FILES= reiserfs.h WRKSRC= ${WRKDIR}/rfstool-0.14/RFSTOOL MAKEFILE= makefile.gcc3x post-extract: @${REINPLACE_CMD} -e "s,g++,\$${CXX},g" ${WRKSRC}/${MAKEFILE} do-install: ${INSTALL_PROGRAM} ${WRKSRC}/rfstool ${STAGEDIR}${PREFIX}/bin .include Index: head/sysutils/rfstool/files/patch-reiserfs.h =================================================================== --- head/sysutils/rfstool/files/patch-reiserfs.h (revision 417165) +++ head/sysutils/rfstool/files/patch-reiserfs.h (revision 417166) @@ -1,11 +1,11 @@ ---- reiserfs.h.orig Mon Oct 2 13:58:35 2006 -+++ reiserfs.h Mon Oct 2 13:58:39 2006 -@@ -268,7 +268,7 @@ - { - } - -- ReiserFsBlock::~ReiserFsBlock() -+ ~ReiserFsBlock() - { - delete m_lpbMemory; - } +--- reiserfs.h.orig 2016-06-20 13:19:25 UTC ++++ reiserfs.h +@@ -268,7 +268,7 @@ class ReiserFsBlock : public PNode + { + } + +- ReiserFsBlock::~ReiserFsBlock() ++ ~ReiserFsBlock() + { + delete m_lpbMemory; + } Index: head/textproc/expat2/Makefile =================================================================== --- head/textproc/expat2/Makefile (revision 417165) +++ head/textproc/expat2/Makefile (revision 417166) @@ -1,21 +1,22 @@ # Created by: Dirk Froemberg # $FreeBSD$ PORTNAME= expat PORTVERSION= 2.1.1 PORTREVISION= 1 CATEGORIES= textproc MASTER_SITES= SF MAINTAINER= kuriyama@FreeBSD.org COMMENT= XML 1.0 parser written in C GNU_CONFIGURE= yes ALL_TARGET= default -USES= libtool pathfix tar:bz2 +USES= dos2unix libtool pathfix tar:bz2 +DOS2UNIX_GLOB= *.txt USE_LDCONFIG= yes post-stage: ${LN} -s libexpat.so.1 ${STAGEDIR}${PREFIX}/lib/libexpat.so.6 .include Index: head/textproc/expat2/files/patch-cve-2012-6702-plus-cve-2016-5300-v1 =================================================================== --- head/textproc/expat2/files/patch-cve-2012-6702-plus-cve-2016-5300-v1 (revision 417165) +++ head/textproc/expat2/files/patch-cve-2012-6702-plus-cve-2016-5300-v1 (revision 417166) @@ -1,134 +1,134 @@ From cb31522769d11a375078a073cba94e7176cb48a4 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Wed, 16 Mar 2016 15:30:12 +0100 Subject: [PATCH] Resolve call to srand, use more entropy (patch version 1.0) Squashed backport against vanilla Expat 2.1.1, addressing: * CVE-2012-6702 -- unanticipated internal calls to srand * CVE-2016-5300 -- use of too little entropy Since commit e3e81a6d9f0885ea02d3979151c358f314bf3d6d (released with Expat 2.1.0) Expat called srand by itself from inside generate_hash_secret_salt for an instance of XML_Parser if XML_SetHashSalt was either (a) not called for that instance or if (b) salt 0 was passed to XML_SetHashSalt prior to parsing. That call to srand passed (rather litle) entropy extracted from the current time as a seed for srand. That call to srand (1) broke repeatability for code calling srand with a non-random seed prior to parsing with Expat, and (2) resulted in a rather small set of hashing salts in Expat in total. For a short- to mid-term fix, the new approach avoids calling srand altogether, extracts more entropy out of the clock and other sources, too. For a long term fix, we may want to read sizeof(long) bytes from a source like getrandom(..) on Linux, and from similar sources on other supported architectures. https://bugzilla.redhat.com/show_bug.cgi?id=1197087 --- expat/CMakeLists.txt | 3 +++ expat/lib/xmlparse.c | 48 +++++++++++++++++++++++++++++++++++++++++------- 2 files changed, 44 insertions(+), 7 deletions(-) diff --git a/expat/CMakeLists.txt b/expat/CMakeLists.txt index 353627e..524d514 100755 --- CMakeLists.txt +++ CMakeLists.txt @@ -41,6 +41,9 @@ include_directories(${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/lib) - if(MSVC) - add_definitions(-D_CRT_SECURE_NO_WARNINGS -wd4996) - endif(MSVC) -+if(WIN32) -+ add_definitions(-DCOMPILED_FROM_DSP) -+endif(WIN32) - - set(expat_SRCS - lib/xmlparse.c + if(MSVC) + add_definitions(-D_CRT_SECURE_NO_WARNINGS -wd4996) + endif(MSVC) ++if(WIN32) ++ add_definitions(-DCOMPILED_FROM_DSP) ++endif(WIN32) + + set(expat_SRCS + lib/xmlparse.c diff --git a/expat/lib/xmlparse.c b/expat/lib/xmlparse.c index e308c79..c5f942f 100644 --- lib/xmlparse.c +++ lib/xmlparse.c @@ -6,7 +6,14 @@ #include /* memset(), memcpy() */ #include #include /* UINT_MAX */ -#include /* time() */ + +#ifdef COMPILED_FROM_DSP +#define getpid GetCurrentProcessId +#else +#include /* gettimeofday() */ +#include /* getpid() */ +#include /* getpid() */ +#endif #define XML_BUILDING_EXPAT 1 @@ -432,7 +439,7 @@ static ELEMENT_TYPE * getElementType(XML_Parser parser, const ENCODING *enc, const char *ptr, const char *end); -static unsigned long generate_hash_secret_salt(void); +static unsigned long generate_hash_secret_salt(XML_Parser parser); static XML_Bool startParsing(XML_Parser parser); static XML_Parser @@ -691,11 +698,38 @@ static const XML_Char implicitContext[] = { }; static unsigned long -generate_hash_secret_salt(void) +gather_time_entropy(void) { - unsigned int seed = time(NULL) % UINT_MAX; - srand(seed); - return rand(); +#ifdef COMPILED_FROM_DSP + FILETIME ft; + GetSystemTimeAsFileTime(&ft); /* never fails */ + return ft.dwHighDateTime ^ ft.dwLowDateTime; +#else + struct timeval tv; + int gettimeofday_res; + + gettimeofday_res = gettimeofday(&tv, NULL); + assert (gettimeofday_res == 0); + + /* Microseconds time is <20 bits entropy */ + return tv.tv_usec; +#endif +} + +static unsigned long +generate_hash_secret_salt(XML_Parser parser) +{ + /* Process ID is 0 bits entropy if attacker has local access + * XML_Parser address is few bits of entropy if attacker has local access */ + const unsigned long entropy = + gather_time_entropy() ^ getpid() ^ (unsigned long)parser; + + /* Factors are 2^31-1 and 2^61-1 (Mersenne primes M31 and M61) */ + if (sizeof(unsigned long) == 4) { + return entropy * 2147483647; + } else { + return entropy * 2305843009213693951; + } } static XML_Bool /* only valid for root parser */ @@ -703,7 +737,7 @@ startParsing(XML_Parser parser) { /* hash functions must be initialized before setContext() is called */ if (hash_secret_salt == 0) - hash_secret_salt = generate_hash_secret_salt(); + hash_secret_salt = generate_hash_secret_salt(parser); if (ns) { /* implicit context only set for root parser, since child parsers (i.e. external entity parsers) will inherit it -- 2.8.2 Index: head/textproc/p5-XML-AutoWriter/Makefile =================================================================== --- head/textproc/p5-XML-AutoWriter/Makefile (revision 417165) +++ head/textproc/p5-XML-AutoWriter/Makefile (revision 417166) @@ -1,25 +1,26 @@ # $FreeBSD$ PORTNAME= XML-AutoWriter PORTVERSION= 0.40 PORTREVISION= 1 CATEGORIES= textproc perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- DISTNAME= ${PORTNAME}-0.4 MAINTAINER= kuriyama@FreeBSD.org COMMENT= Perl module for DOCTYPE based XML output LICENSE= ART10 GPLv1 BSD4CLAUSE LICENSE_COMB= dual TEST_DEPENDS= p5-XML-Parser>=0:textproc/p5-XML-Parser -USES= perl5 +USES= dos2unix perl5 +DOS2UNIX_GLOB= *.pm USE_PERL5= configure post-patch: ${RM} ${WRKSRC}/lib/XML/*.orig .include Index: head/textproc/p5-XML-AutoWriter/files/patch-Doctype.pm =================================================================== --- head/textproc/p5-XML-AutoWriter/files/patch-Doctype.pm (revision 417165) +++ head/textproc/p5-XML-AutoWriter/files/patch-Doctype.pm (nonexistent) @@ -1,12 +0,0 @@ ---- lib/XML/Doctype.pm.orig Tue Dec 27 23:27:13 2005 -+++ lib/XML/Doctype.pm Mon Jan 30 23:43:38 2006 -@@ -62,7 +62,9 @@ - =cut - - use strict ; -+use Config; - use vars qw( $VERSION %_default_dtds ) ; -+use lib $Config{sitelib}; - use fields ( - 'ELTS', # A hash of declared & undeclared elements, keyed by name - 'NAME', # The root node (the name from the DOCTYPE decl). Property changes on: head/textproc/p5-XML-AutoWriter/files/patch-Doctype.pm ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/textproc/p5-XML-AutoWriter/files/patch-Makefile.PL =================================================================== --- head/textproc/p5-XML-AutoWriter/files/patch-Makefile.PL (revision 417165) +++ head/textproc/p5-XML-AutoWriter/files/patch-Makefile.PL (revision 417166) @@ -1,10 +1,10 @@ ---- Makefile.PL.orig 2012-12-23 11:07:17.511361339 +0900 -+++ Makefile.PL 2012-12-23 11:09:35.165438990 +0900 -@@ -9,7 +9,6 @@ +--- Makefile.PL.orig 2009-06-11 18:26:48 UTC ++++ Makefile.PL +@@ -9,7 +9,6 @@ requires => 'XML::Parser'; build_requires => 'Test'; build_requires => 'IO::File'; -auto_set_repository; auto_manifest; auto_install; WriteAll; Index: head/textproc/p5-XML-AutoWriter/files/patch-lib_XML_Doctype.pm =================================================================== --- head/textproc/p5-XML-AutoWriter/files/patch-lib_XML_Doctype.pm (nonexistent) +++ head/textproc/p5-XML-AutoWriter/files/patch-lib_XML_Doctype.pm (revision 417166) @@ -0,0 +1,12 @@ +--- lib/XML/Doctype.pm.orig 2016-06-20 16:08:38 UTC ++++ lib/XML/Doctype.pm +@@ -62,7 +62,9 @@ XML::Doctype::ENITITY + =cut + + use strict ; ++use Config; + use vars qw( $VERSION %_default_dtds ) ; ++use lib $Config{sitelib}; + use fields ( + 'ELTS', # A hash of declared & undeclared elements, keyed by name + 'NAME', # The root node (the name from the DOCTYPE decl). Property changes on: head/textproc/p5-XML-AutoWriter/files/patch-lib_XML_Doctype.pm ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/repos-style/Makefile =================================================================== --- head/www/repos-style/Makefile (revision 417165) +++ head/www/repos-style/Makefile (revision 417166) @@ -1,38 +1,39 @@ # Created by: Alexander Kriventsov # $FreeBSD$ PORTNAME= repos-style PORTVERSION= 2.0 PORTREVISION= 2 CATEGORIES= www MASTER_SITES= ftp://ftp.renatasystems.org/pub/FreeBSD/ports/distfiles/ \ http://mirror.amdmi3.ru/distfiles/ MAINTAINER= avk@vl.ru COMMENT= Stylesheet for the Subversion index web page BROKEN_powerpc64= Does not build RUN_DEPENDS= subversion>=0:devel/subversion -USES= zip +USES= dos2unix zip +DOS2UNIX_GLOB= *.xsl *.php NO_BUILD= YES USE_PHP= xml WANT_PHP_WEB= yes WRKSRC= ${WRKDIR}/repos-web SUB_LIST+= PORTNAME=${PORTNAME} SUB_FILES+= pkg-message pre-install: # Prevent installation of .orig files by deleting them. @${FIND} ${WRKSRC} -name '*.orig' -delete ${MV} ${WRKSRC}/open/log/index.php ${WRKSRC}/open/log/index.dist.php do-install: @${MKDIR} ${STAGEDIR}${WWWDIR} @(cd ${WRKSRC} && ${PAX} -r -w . ${STAGEDIR}${WWWDIR}) .include Index: head/www/repos-style/files/patch-open-log-index.php =================================================================== --- head/www/repos-style/files/patch-open-log-index.php (revision 417165) +++ head/www/repos-style/files/patch-open-log-index.php (nonexistent) @@ -1,11 +0,0 @@ ---- open/log/index.php.orig 2009-03-13 11:39:06.000000000 +0100 -+++ open/log/index.php 2009-08-21 22:36:25.000000000 +0200 -@@ -18,7 +18,7 @@ - // === Print svn log --xml to response === - - // Set the URL to the stylesheet, must be same host or absolute path from root --$xslt = '/repos-web/view/log.xsl'; -+$xslt = '/repos-style/view/log.xsl'; - - // URL or path to repository, no trailing slash - // (note that the log viewer may bypass access control) Property changes on: head/www/repos-style/files/patch-open-log-index.php ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/www/repos-style/files/patch-view-repos.xsl =================================================================== --- head/www/repos-style/files/patch-view-repos.xsl (revision 417165) +++ head/www/repos-style/files/patch-view-repos.xsl (nonexistent) @@ -1,11 +0,0 @@ ---- view/repos.xsl.orig 2009-03-13 09:34:04.000000000 +0100 -+++ view/repos.xsl 2009-08-21 22:42:04.000000000 +0200 -@@ -31,7 +31,7 @@ - - - -- /repos-web/ -+ /repos-style/ - - style/ - Property changes on: head/www/repos-style/files/patch-view-repos.xsl ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/www/repos-style/files/patch-view-log.xsl =================================================================== --- head/www/repos-style/files/patch-view-log.xsl (revision 417165) +++ head/www/repos-style/files/patch-view-log.xsl (nonexistent) @@ -1,11 +0,0 @@ ---- view/log.xsl.orig 2009-03-12 22:15:36.000000000 +0100 -+++ view/log.xsl 2009-08-21 22:39:20.000000000 +0200 -@@ -25,7 +25,7 @@ - - - -- /repos-web/ -+ /repos-style/ - - style/ - Property changes on: head/www/repos-style/files/patch-view-log.xsl ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/www/repos-style/files/patch-open_log_index.php =================================================================== --- head/www/repos-style/files/patch-open_log_index.php (nonexistent) +++ head/www/repos-style/files/patch-open_log_index.php (revision 417166) @@ -0,0 +1,11 @@ +--- open/log/index.php.orig 2016-06-20 16:09:43 UTC ++++ open/log/index.php +@@ -18,7 +18,7 @@ + // === Print svn log --xml to response === + + // Set the URL to the stylesheet, must be same host or absolute path from root +-$xslt = '/repos-web/view/log.xsl'; ++$xslt = '/repos-style/view/log.xsl'; + + // URL or path to repository, no trailing slash + // (note that the log viewer may bypass access control) Property changes on: head/www/repos-style/files/patch-open_log_index.php ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/repos-style/files/patch-view_log.xsl =================================================================== --- head/www/repos-style/files/patch-view_log.xsl (nonexistent) +++ head/www/repos-style/files/patch-view_log.xsl (revision 417166) @@ -0,0 +1,11 @@ +--- view/log.xsl.orig 2016-06-20 16:09:43 UTC ++++ view/log.xsl +@@ -25,7 +25,7 @@ limitations under the License. + + + +- /repos-web/ ++ /repos-style/ + + style/ + Property changes on: head/www/repos-style/files/patch-view_log.xsl ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/repos-style/files/patch-view_repos.xsl =================================================================== --- head/www/repos-style/files/patch-view_repos.xsl (nonexistent) +++ head/www/repos-style/files/patch-view_repos.xsl (revision 417166) @@ -0,0 +1,11 @@ +--- view/repos.xsl.orig 2016-06-20 16:09:43 UTC ++++ view/repos.xsl +@@ -31,7 +31,7 @@ limitations under the License. + + + +- /repos-web/ ++ /repos-style/ + + style/ + Property changes on: head/www/repos-style/files/patch-view_repos.xsl ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/x11/aterm/Makefile =================================================================== --- head/x11/aterm/Makefile (revision 417165) +++ head/x11/aterm/Makefile (revision 417166) @@ -1,53 +1,56 @@ # Created by: Jim Mock # $FreeBSD$ PORTNAME= aterm PORTVERSION= 1.0.1 PORTREVISION= 7 CATEGORIES= x11 MASTER_SITES= SF MAINTAINER= ports@FreeBSD.org COMMENT= Color vt102 terminal emulator with transparency support MAKE_JOBS_UNSAFE= yes +USES= dos2unix +DOS2UNIX_FILES= src/rxvt.h + USE_XORG= xpm GNU_CONFIGURE= yes CONFIGURE_ARGS= --enable-wtmp \ --enable-xgetdefault \ --disable-memset \ --disable-swapscreen \ --disable-thai \ --without-afterstep-config \ --disable-utmp CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib OPTIONS_DEFINE= TRANS BSDEL MOUSE BGIMG KANJI BIG5S GREEK OPTIONS_DEFAULT= TRANS BSDEL MOUSE TRANS_DESC= Transparency support BSDEL_DESC= BSD-style backspace and delete BGIMG_DESC= XPM, JPEG, PNG backgrounds KANJI_DESC= Kanji (EUC-JP or SJIS) support BIG5S_DESC= Chinese character (BIG5) support GREEK_DESC= Greek keyboard support PLIST_FILES= bin/aterm \ man/man1/aterm.1.gz TRANS_CONFIGURE_ENABLE= transparency BSDEL_CONFIGURE_OFF= --disable-backspace-key --disable-delete-key BSDEL_CONFIGURE_ON= --enable-backspace-key --enable-delete-key MOUSE_CONFIGURE_ENABLE= mousewheel BGIMG_LIB_DEPENDS= libAfterImage.so:graphics/libafterimage \ libpng.so:graphics/png BGIMG_USES= jpeg BGIMG_CONFIGURE_ON= --with-afterimage-config --with-png --with-jpeg BGIMG_CONFIGURE_OFF= --without-afterimage-config --with-png=no --with-jpeg=no KANJI_CONFIGURE_ENABLE= kanji BIG5S_CONFIGURE_ENABLE= big5 GREEK_CONFIGURE_ENABLE= greek .include Index: head/x11/aterm/files/patch-cutToBeginningOfLine =================================================================== --- head/x11/aterm/files/patch-cutToBeginningOfLine (revision 417165) +++ head/x11/aterm/files/patch-cutToBeginningOfLine (revision 417166) @@ -1,56 +1,56 @@ diff -urNad aterm-1.0.1~/src/rxvt.h src/rxvt.h --- src/rxvt.h 2007-08-03 23:55:28.000000000 +0200 +++ src/rxvt.h 2007-08-03 23:56:36.000000000 +0200 @@ -784,6 +784,7 @@ - #define Opt_scrollKeypress (1LU<<12) - #define Opt_transparent (1LU<<13) - #define Opt_transparent_sb (1LU<<14) -+#define Opt_cutToBeginningOfLine (1LU<<15) - #define Opt_borderLess (1LU<<16) - - /* place holder used for parsing command-line options */ + #define Opt_scrollKeypress (1LU<<12) + #define Opt_transparent (1LU<<13) + #define Opt_transparent_sb (1LU<<14) ++#define Opt_cutToBeginningOfLine (1LU<<15) + #define Opt_borderLess (1LU<<16) + + /* place holder used for parsing command-line options */ diff -urNad aterm-1.0.1~/src/screen.c src/screen.c --- aterm-1.0.1~/src/screen.c 2007-08-03 23:55:28.000000000 +0200 +++ src/screen.c 2007-08-04 00:02:35.000000000 +0200 @@ -3155,7 +3155,7 @@ text_t *stp; rend_t *srp; - if (selection.clicks != 2) + if (selection.clicks < 2) return; /* Go away: we only handle double clicks */ if (dirn == UP) { @@ -3454,7 +3454,11 @@ } else if (selection.clicks == 3) { if (ROWCOL_IS_AFTER(selection.mark, selection.beg)) selection.mark.col++; - selection.beg.col = 0; + if (Options & Opt_cutToBeginningOfLine) { + selection_delimit_word(UP, &(selection.beg), &(selection.beg)); + } else { + selection.beg.col = 0; + } selection.end.col = TermWin.bcol; } if (button3 && buttonpress) { /* mark may need to be changed */ diff -urNad aterm-1.0.1~/src/xdefaults.c src/xdefaults.c --- aterm-1.0.1~/src/xdefaults.c 2007-08-03 23:55:28.000000000 +0200 +++ src/xdefaults.c 2007-08-04 00:03:23.000000000 +0200 @@ -70,6 +70,7 @@ #endif static const char *rs_visualBell = NULL; static const char *rs_reverseVideo = NULL; +static const char *rs_cutToBeginningOfLine = NULL; #ifdef META8_OPTION static const char *rs_meta8 = NULL; @@ -327,6 +328,8 @@ BOOL(rs_utmpInhibit, "utmpInhibit", "ut", Opt_utmpInhibit, "utmp inhibit"), BOOL(rs_visualBell, "visualBell", "vb", Opt_visualBell, "visual bell"), + BOOL(rs_cutToBeginningOfLine, "cutToBeginningOfLine", "cb", Opt_cutToBeginningOfLine, + "cut to beginning of line"), #ifndef NO_MAPALERT # ifdef MAPALERT_OPTION Index: head/x11/aterm/files/patch-eterm_transparency =================================================================== --- head/x11/aterm/files/patch-eterm_transparency (revision 417165) +++ head/x11/aterm/files/patch-eterm_transparency (revision 417166) @@ -1,96 +1,96 @@ diff -urNad aterm-1.0.1~/src/main.c src/main.c --- aterm-1.0.1~/src/main.c 2007-08-04 00:05:30.000000000 +0200 +++ src/main.c 2007-08-04 00:09:53.000000000 +0200 @@ -1334,6 +1334,12 @@ break; #endif + case XTerm_EtermSeq: + op = atoi(str); + if (!(str = strchr(str, ';'))) + break; + eterm_seq(op, str + 1); + break; case XTerm_Menu: /* * menubar_dispatch() violates the constness of the string, @@ -1360,6 +1366,43 @@ break; } } + +/* + * Eterm escape sequences: ESC ] 6;Ps;Pt BEL + * 2 = set shade/tint mask + * (There are more codes--check Eterm's reference doc.) + */ +/* PROTO */ + void +eterm_seq(int op, const char *str) +{ + assert(str != NULL); + switch (op) { +#if defined(BACKGROUND_IMAGE) || defined(TRANSPARENT) + case 2: + /* { shade | tint } [ class ; ] value */ + if (strncmp(str, "tint", 4) == 0) { + char *class; + char *value; + + if (!(class = strchr((char *) str, ';'))) + break; + *class++ = '\0'; + if (!(value = strchr(class, ';'))) { + /* Default class is bg. */ + value = class; + class = "bg"; + } else + *value++ = '\0'; + + if (strcmp(class, "bg") == 0) { + set_window_color(Color_tint, value); + } + } + break; +#endif + } +} /*}}} */ diff -urNad aterm-1.0.1~/src/rxvt.h src/rxvt.h --- aterm-1.0.1~/src/rxvt.h 2007-08-04 00:05:30.000000000 +0200 +++ src/rxvt.h 2007-08-04 00:10:31.000000000 +0200 @@ -807,6 +807,7 @@ - /* - * rxvt extensions of XTerm escape sequences: ESC ] Ps;Pt BEL - */ -+#define XTerm_EtermSeq 6 /* Eterm proprietary escape sequences */ - #define XTerm_Menu 10 /* set menu item */ - #define XTerm_Pixmap 20 /* new bg pixmap */ - #define XTerm_restoreFG 39 /* change default fg color */ + /* + * rxvt extensions of XTerm escape sequences: ESC ] Ps;Pt BEL + */ ++#define XTerm_EtermSeq 6 /* Eterm proprietary escape sequences */ + #define XTerm_Menu 10 /* set menu item */ + #define XTerm_Pixmap 20 /* new bg pixmap */ + #define XTerm_restoreFG 39 /* change default fg color */ diff -urNad aterm-1.0.1~/src/screen.c src/screen.c --- aterm-1.0.1~/src/screen.c 2007-08-04 00:05:30.000000000 +0200 +++ src/screen.c 2007-08-04 00:15:22.000000000 +0200 @@ -2665,7 +2665,20 @@ !(Options & Opt_transparent)) { XSetWindowBackground(Xdisplay, TermWin.vt, PixColors[Color_bg]); - } + } else if (idx == Color_tint) { + XColor tint; + + tint.pixel = PixColors[Color_tint]; + XQueryColor(Xdisplay, Xcmap, &tint); + if (TermWin.background.Shading.tintColor.red == tint.red && + TermWin.background.Shading.tintColor.green == tint.green && + TermWin.background.Shading.tintColor.blue == tint.blue) { + return; + } + TermWin.background.Shading.tintColor = tint; + RenderPixmap(0); + } + /* handle Color_BD, scrollbar background, etc. */ Index: head/x11/imwheel/Makefile =================================================================== --- head/x11/imwheel/Makefile (revision 417165) +++ head/x11/imwheel/Makefile (revision 417166) @@ -1,33 +1,34 @@ # Created by: jhb # $FreeBSD$ PORTNAME= imwheel DISTVERSION= 1.0.0pre12 PORTREVISION= 2 CATEGORIES= x11 MASTER_SITES= ftp://jcatki.no-ip.org/pub/imwheel/ \ SF/${PORTNAME}/${PORTNAME}-source/${DISTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Utility to translate mouse wheel actions into X keyboard events LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING USE_XORG= x11 xpm xtst xext xmu -USES= gmake +USES= dos2unix gmake +DOS2UNIX_FILES= getopt/getopt.c GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-gpm OPTIONS_DEFINE= DOCS post-patch: .for i in imwheel.1 util.c @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/${i} .endfor post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/EMACS ${STAGEDIR}${DOCSDIR} .include Index: head/x11/imwheel/files/patch-getopt__getopt.c =================================================================== --- head/x11/imwheel/files/patch-getopt__getopt.c (revision 417165) +++ head/x11/imwheel/files/patch-getopt__getopt.c (nonexistent) @@ -1,16 +0,0 @@ ---- getopt/getopt.c.orig Tue Apr 6 05:22:57 1999 -+++ getopt/getopt.c Fri Jun 29 01:22:22 2001 -@@ -166,11 +166,12 @@ - /* Value of POSIXLY_CORRECT environment variable. */ - static char *posixly_correct; - --#ifdef __GNU_LIBRARY__ -+#if defined(__GNU_LIBRARY__) || defined(__FreeBSD__) - /* We want to avoid inclusion of string.h with non-GNU libraries - because there are many ways it can cause trouble. - On some systems, it contains special magic macros that don't work - in GCC. */ -+#include - #include - #define my_index strchr - #else Property changes on: head/x11/imwheel/files/patch-getopt__getopt.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/x11/imwheel/files/patch-getopt__Makefile.in =================================================================== --- head/x11/imwheel/files/patch-getopt__Makefile.in (revision 417165) +++ head/x11/imwheel/files/patch-getopt__Makefile.in (nonexistent) @@ -1,12 +0,0 @@ ---- getopt/Makefile.in.orig Sun Aug 29 06:33:21 2004 -+++ getopt/Makefile.in Sun Nov 7 08:57:49 2004 -@@ -161,7 +161,7 @@ - suid = @suid@ - sysconfdir = @sysconfdir@ - target_alias = @target_alias@ --AM_CFLAGS = -O6 -s -Wall -+#AM_CFLAGS = -O6 -s -Wall - noinst_LIBRARIES = libgetopt.a - libgetopt_a_SOURCES = getopt.c getopt1.c getopt.h - EXTRA_DIST = Makefile.unix - Property changes on: head/x11/imwheel/files/patch-getopt__Makefile.in ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/x11/imwheel/files/patch-Makefile.in =================================================================== --- head/x11/imwheel/files/patch-Makefile.in (revision 417165) +++ head/x11/imwheel/files/patch-Makefile.in (revision 417166) @@ -1,24 +1,24 @@ ---- Makefile.in.orig 2004-08-29 18:36:33.000000000 +0800 -+++ Makefile.in 2014-01-09 21:48:23.000000000 +0800 +--- Makefile.in.orig 2004-08-29 10:36:33 UTC ++++ Makefile.in @@ -215,7 +215,7 @@ imwheel_LDADD = @GETOPT_LIBS@ -L$(top_bu imwheel_DEPENDENCIES = imwheel.o util.o cfg.o jax/libjax.a man_MANS = imwheel.1 EXTRA_DIST = BUGS FREEBSD EMACS M-BA47 BUGS see imwheel.1.html imwheel.1 TODO imwheelrc @extras_dist@ @mdump_dist@ lefty.sh imwheel.spec slack.sh -ETCDIR = /etc/X11/imwheel +ETCDIR = ${PREFIX}/etc all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive @@ -782,9 +782,9 @@ install-exec-hook: @SUID_TRUE@ chown @suid@ $$progname ; \ @SUID_TRUE@ chmod u+s $$progname $(mkinstalldirs) $(ETCDIR) - -[ -f /etc/imwheelrc ] && mv /etc/imwheelrc $(ETCDIR)/imwheelrc || true - -[ -f /etc/X11/imwheelrc ] && mv /etc/X11/imwheelrc $(ETCDIR)/imwheelrc || true - -[ -f $(ETCDIR)/imwheelrc ] && install -m 644 imwheelrc $(ETCDIR)/imwheelrc.new || install -m 644 imwheelrc $(ETCDIR)/imwheelrc + -[ -f /etc/imwheelrc ] && mv /etc/imwheelrc $(DESTDIR)$(ETCDIR)/imwheelrc || true + -[ -f /etc/X11/imwheelrc ] && mv /etc/X11/imwheelrc $(DESTDIR)$(ETCDIR)/imwheelrc || true + -[ -f $(ETCDIR)/imwheelrc ] && install -m 644 imwheelrc $(DESTDIR)$(ETCDIR)/imwheelrc.new || install -m 644 imwheelrc $(DESTDIR)$(ETCDIR)/imwheelrc extras: $(EXTRA_PROGRAMS) Index: head/x11/imwheel/files/patch-getopt_Makefile.in =================================================================== --- head/x11/imwheel/files/patch-getopt_Makefile.in (nonexistent) +++ head/x11/imwheel/files/patch-getopt_Makefile.in (revision 417166) @@ -0,0 +1,11 @@ +--- getopt/Makefile.in.orig 2004-08-29 10:33:21 UTC ++++ getopt/Makefile.in +@@ -161,7 +161,7 @@ subdirs = @subdirs@ + suid = @suid@ + sysconfdir = @sysconfdir@ + target_alias = @target_alias@ +-AM_CFLAGS = -O6 -s -Wall ++#AM_CFLAGS = -O6 -s -Wall + noinst_LIBRARIES = libgetopt.a + libgetopt_a_SOURCES = getopt.c getopt1.c getopt.h + EXTRA_DIST = Makefile.unix Property changes on: head/x11/imwheel/files/patch-getopt_Makefile.in ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/x11/imwheel/files/patch-getopt_getopt.c =================================================================== --- head/x11/imwheel/files/patch-getopt_getopt.c (nonexistent) +++ head/x11/imwheel/files/patch-getopt_getopt.c (revision 417166) @@ -0,0 +1,16 @@ +--- getopt/getopt.c.orig 2016-06-20 12:59:05 UTC ++++ getopt/getopt.c +@@ -166,11 +166,12 @@ static enum + /* Value of POSIXLY_CORRECT environment variable. */ + static char *posixly_correct; + +-#ifdef __GNU_LIBRARY__ ++#if defined(__GNU_LIBRARY__) || defined(__FreeBSD__) + /* We want to avoid inclusion of string.h with non-GNU libraries + because there are many ways it can cause trouble. + On some systems, it contains special magic macros that don't work + in GCC. */ ++#include + #include + #define my_index strchr + #else Property changes on: head/x11/imwheel/files/patch-getopt_getopt.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/x11/imwheel/files/patch-imwheel.1 =================================================================== --- head/x11/imwheel/files/patch-imwheel.1 (revision 417165) +++ head/x11/imwheel/files/patch-imwheel.1 (revision 417166) @@ -1,21 +1,20 @@ ---- imwheel.1.orig Sun Nov 7 08:47:14 2004 -+++ imwheel.1 Sun Nov 7 08:49:03 2004 -@@ -329,7 +329,7 @@ +--- imwheel.1.orig 2004-06-10 01:41:49 UTC ++++ imwheel.1 +@@ -329,7 +329,7 @@ sum = 0 .fi .RE .SH "IMWHEELRC" -IMWheel uses, optionally, two configuration files. One called /etc/X11/imwheel/imwheelrc, +IMWheel uses, optionally, two configuration files. One called %%PREFIX%%/etc/imwheelrc, which is used for everybody. The other is $HOME/.imwheelrc, used only for one user. One is supplied and should have been installed automatically in /etc/X11/imwheel/ if not also in the installing users $HOME as well. All whitespace is ignored -@@ -671,7 +671,7 @@ +@@ -671,7 +671,7 @@ Jonathan Atkins $HOME/.imwheelrc - The users configuration file. - + The users configuration file. + -/etc/X11/imwheel/imwheelrc +%%PREFIX%%/etc/imwheelrc - The global location for the configuration - file, it is always loaded. Overided by - the users configuration file. - + The global location for the configuration + file, it is always loaded. Overided by + the users configuration file. Index: head/x11/imwheel/files/patch-imwheelrc =================================================================== --- head/x11/imwheel/files/patch-imwheelrc (revision 417165) +++ head/x11/imwheel/files/patch-imwheelrc (revision 417166) @@ -1,34 +1,34 @@ ---- imwheelrc.orig Wed Feb 23 15:14:20 2000 -+++ imwheelrc Wed Feb 23 15:25:12 2000 -@@ -34,6 +34,10 @@ +--- imwheelrc.orig 2004-06-10 01:41:49 UTC ++++ imwheelrc +@@ -96,6 +96,10 @@ Control_L, Down, C None, Down, KP_Subtract None, Up, KP_Add +"^fxtv" +None, Down, KP_Subtract +None, Up, KP_Add + "^Xman" None, Down, F Shift_L, Down, 3 -@@ -52,14 +56,14 @@ +@@ -138,14 +142,14 @@ None, Up, Shift_L|Page_Up None, Down, Shift_L|Page_Down "^rxvt" -Alt_L, Up, Shift_L|Page_Up -Alt_L, Down, Shift_L|Page_Down +None, Up, Shift_L|Page_Up +None, Down, Shift_L|Page_Down "^XTerm" -Alt_L, Up, Shift_R|Page_Up -Alt_L, Down, Shift_R|Page_Down -Alt_L, Left, Control_L|A -Alt_L, Right, Control_L|E +None, Up, Shift_R|Page_Up +None, Down, Shift_R|Page_Down +None, Left, Control_L|A +None, Right, Control_L|E #Shift_L, Down, Shift_L|1 - "^Netscape" + "^VMware" Index: head/x11/imwheel/files/patch-util.c =================================================================== --- head/x11/imwheel/files/patch-util.c (revision 417165) +++ head/x11/imwheel/files/patch-util.c (revision 417166) @@ -1,12 +1,11 @@ ---- util.c.orig Sun Aug 29 06:21:46 2004 -+++ util.c Sun Nov 7 09:10:33 2004 -@@ -735,7 +735,7 @@ - +--- util.c.orig 2004-08-29 10:21:46 UTC ++++ util.c +@@ -735,7 +735,7 @@ int file_allowed(char *fname) + struct WinAction *getRC() { - char fname[2][1024]={"","/etc/X11/imwheel/imwheelrc"}, line[1024], *p, *q, winid[1024]; + char fname[2][1024]={"","/usr/X11R6/etc/imwheelrc"}, line[1024], *p, *q, winid[1024]; - int fi,i; - struct WinAction *newwa=NULL; - FILE *f=NULL; - + int fi,i; + struct WinAction *newwa=NULL; + FILE *f=NULL; Index: head/x11-drivers/xf86-video-openchrome/files/patch-src_via_id.c =================================================================== --- head/x11-drivers/xf86-video-openchrome/files/patch-src_via_id.c (revision 417165) +++ head/x11-drivers/xf86-video-openchrome/files/patch-src_via_id.c (nonexistent) @@ -1,10 +0,0 @@ ---- src/via_id.c.orig 2008-08-18 18:25:16.000000000 -0400 -+++ src/via_id.c 2008-11-11 21:20:14.000000000 -0500 -@@ -207,6 +207,7 @@ - {"VIA VT3343 (P4M890)", VIA_P4M890, 0x1106, 0x3343, VIA_DEVICE_CRT}, - {"MSI P4M890M-L/IL (MS-7255)", VIA_P4M890, 0x1462, 0x7255, VIA_DEVICE_CRT}, - {"Biostar P4M890-M7 TE", VIA_P4M890, 0x1565, 0x1207, VIA_DEVICE_CRT}, -+ {"Mitac 8624 (Joybook R41E)", VIA_P4M890, 0x1071, 0x8624, VIA_DEVICE_CRT | VIA_DEVICE_LCD}, - {"ASRock P4VM890", VIA_P4M890, 0x1849, 0x3343, VIA_DEVICE_CRT}, - - /* keep this */ Property changes on: head/x11-drivers/xf86-video-openchrome/files/patch-src_via_id.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/x11-drivers/xf86-video-openchrome/files/patch-configure =================================================================== --- head/x11-drivers/xf86-video-openchrome/files/patch-configure (revision 417165) +++ head/x11-drivers/xf86-video-openchrome/files/patch-configure (revision 417166) @@ -1,11 +1,11 @@ ---- configure.orig 2008-01-02 15:05:04.000000000 -0500 -+++ configure 2008-01-10 20:48:21.000000000 -0500 -@@ -21484,7 +21484,7 @@ - _ACEOF +--- configure.orig 2013-05-23 15:11:54 UTC ++++ configure +@@ -12742,7 +12742,7 @@ $as_echo "#define X_HAVE_XAAGETROP 1" >> + $as_echo "#define X_NEED_I2CSTART 1" >>confdefs.h -DRIVER_MAN_SUFFIX="4" +DRIVER_MAN_SUFFIX="4x" Index: head/x11-drivers/xf86-video-openchrome/files/patch-src_via__id.c =================================================================== --- head/x11-drivers/xf86-video-openchrome/files/patch-src_via__id.c (nonexistent) +++ head/x11-drivers/xf86-video-openchrome/files/patch-src_via__id.c (revision 417166) @@ -0,0 +1,10 @@ +--- src/via_id.c.orig 2013-05-23 15:11:28 UTC ++++ src/via_id.c +@@ -231,6 +231,7 @@ static struct ViaCardIdStruct ViaCardId[ + {"VIA VT3343 (P4M890)", VIA_P4M890, 0x1106, 0x3343, VIA_DEVICE_CRT}, + {"MSI P4M890M-L/IL (MS-7255)", VIA_P4M890, 0x1462, 0x7255, VIA_DEVICE_CRT}, + {"Biostar P4M890-M7 TE", VIA_P4M890, 0x1565, 0x1207, VIA_DEVICE_CRT}, ++ {"Mitac 8624 (Joybook R41E)", VIA_P4M890, 0x1071, 0x8624, VIA_DEVICE_CRT | VIA_DEVICE_LCD}, + {"ASRock P4VM890", VIA_P4M890, 0x1849, 0x3343, VIA_DEVICE_CRT}, + + /*** VX800 ***/ Property changes on: head/x11-drivers/xf86-video-openchrome/files/patch-src_via__id.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/x11-themes/kde-icons-noia/Makefile =================================================================== --- head/x11-themes/kde-icons-noia/Makefile (revision 417165) +++ head/x11-themes/kde-icons-noia/Makefile (revision 417166) @@ -1,15 +1,15 @@ # Created by: Mario Sergio Fujikawa Ferreira # $FreeBSD$ PORTNAME= noia PORTVERSION= 1.00 MASTER_SITES= GENTOO DISTNAME= noia-kde-icons-${PORTVERSION} COMMENT= KDE Noia complete iconset USES= tar:tgz -WRKSRC= "${WRKDIR}/noia_kde_${PORTVERSION:C/\.//}" +WRKSRC= ${WRKDIR}/noia_kde_${PORTVERSION:C/\.//} PORT_SHAREDIR= ${PORTNAME} .include "${.CURDIR}/Makefile.icons" Index: head/x11-toolkits/hs-wxcore/Makefile =================================================================== --- head/x11-toolkits/hs-wxcore/Makefile (revision 417165) +++ head/x11-toolkits/hs-wxcore/Makefile (revision 417166) @@ -1,17 +1,19 @@ # $FreeBSD$ PORTNAME= wxcore PORTVERSION= 0.91.0.0 CATEGORIES= x11-toolkits haskell MAINTAINER= haskell@FreeBSD.org COMMENT= wxHaskell core USE_CABAL= parsec stm wxc>=0.91 wxdirect>=0.91 +USES= dos2unix +DOS2UNIX_GLOB= *.hs + USE_WX= 3.0 WX_COMPS= wx -WX_UNICODE= yes .include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk" .include Index: head/x11-toolkits/hs-wxcore/files/patch-Setup.hs =================================================================== --- head/x11-toolkits/hs-wxcore/files/patch-Setup.hs (revision 417165) +++ head/x11-toolkits/hs-wxcore/files/patch-Setup.hs (revision 417166) @@ -1,10 +1,10 @@ ---- ./Setup.hs.orig 2012-04-13 14:40:36.000000000 +0200 -+++ ./Setup.hs 2012-05-13 20:41:08.000000000 +0200 -@@ -66,7 +66,6 @@ - - let libbi' = libbi - { extraLibDirs = extraLibDirs libbi ++ [wxcDirectory] -- , extraLibs = extraLibs libbi ++ ["wxc"] - , ldOptions = ldOptions libbi ++ ["-Wl,-rpath," ++ wxcDirectory] } - - let lib' = lib { libBuildInfo = libbi' } +--- Setup.hs.orig 2016-06-20 16:11:53 UTC ++++ Setup.hs +@@ -78,7 +78,6 @@ myConfHook (pkg0, pbi) flags = do + + let libbi' = libbi + { extraLibDirs = extraLibDirs libbi ++ [wxcDirectory] +- , extraLibs = extraLibs libbi ++ ["wxc"] + , ldOptions = ldOptions libbi ++ ["-Wl,-rpath," ++ wxcDirectory] } + + let lib' = lib { libBuildInfo = libbi' } Index: head/x11-wm/afterstep/files/AFstep.xpm =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: head/x11-wm/afterstep/files/AFstep.xpm ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Modified: svn:mime-type ## -1 +1 ## -application/octet-stream \ No newline at end of property +text/plain \ No newline at end of property Index: head/x11-wm/afterstep/files/monitor_bsd.xpm =================================================================== --- head/x11-wm/afterstep/files/monitor_bsd.xpm (revision 417165) +++ head/x11-wm/afterstep/files/monitor_bsd.xpm (revision 417166) Property changes on: head/x11-wm/afterstep/files/monitor_bsd.xpm ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Modified: svn:mime-type ## -1 +1 ## -application/octet-stream \ No newline at end of property +text/plain \ No newline at end of property Index: head/x11-wm/afterstep/files/penguin.xpm =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: head/x11-wm/afterstep/files/penguin.xpm ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Modified: svn:mime-type ## -1 +1 ## -application/octet-stream \ No newline at end of property +text/plain \ No newline at end of property