View | Details | Raw Unified | Return to bug 128106
Collapse All | Expand All

(-)Makefile (-5 / +4 lines)
Lines 6-12 Link Here
6
#
6
#
7
7
8
PORTNAME=	nzbget
8
PORTNAME=	nzbget
9
PORTVERSION=	0.4.1
9
PORTVERSION=	0.5.1
10
CATEGORIES=	news
10
CATEGORIES=	news
11
MASTER_SITES=	SF
11
MASTER_SITES=	SF
12
12
Lines 17-30 Link Here
17
		uu.3:${PORTSDIR}/converters/uulib
17
		uu.3:${PORTSDIR}/converters/uulib
18
18
19
GNU_CONFIGURE=	yes
19
GNU_CONFIGURE=	yes
20
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
20
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -D__FREEBSD__" \
21
		CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}" LDFLAGS="${PTHREAD_LIBS}" \
21
		CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}" LDFLAGS="${PTHREAD_LIBS}" \
22
		LOCALBASE="${LOCALBASE}"
22
		LOCALBASE="${LOCALBASE}"
23
USE_GMAKE=	yes
23
USE_GMAKE=	yes
24
24
25
OPTIONS=	PARCHECK "Enable autopar/parcheck (Requires libpar2)" On
25
OPTIONS=	PARCHECK "Enable autopar/parcheck (Requires libpar2)" On
26
26
27
PLIST_FILES=	bin/nzbget etc/nzbget.conf.example
27
PLIST_FILES=	bin/nzbget
28
PORTDOCS=	README
28
PORTDOCS=	README
29
PORTEXAMPLES=	nzbget.conf.example
29
PORTEXAMPLES=	nzbget.conf.example
30
30
Lines 38-45 Link Here
38
.endif
38
.endif
39
39
40
do-install:
40
do-install:
41
	@${INSTALL_DATA} ${WRKSRC}/nzbget.conf.example ${PREFIX}/etc
41
	@${INSTALL_PROGRAM} ${WRKSRC}/nzbget ${PREFIX}/bin
42
	@${INSTALL_DATA} ${WRKSRC}/nzbget ${PREFIX}/bin
43
.if !defined(NOPORTDOCS)
42
.if !defined(NOPORTDOCS)
44
	${MKDIR} ${DOCSDIR}
43
	${MKDIR} ${DOCSDIR}
45
	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
44
	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
(-)distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (nzbget-0.4.1.tar.gz) = 08803146d2ffc4792cc0f12cdbf03da0
1
MD5 (nzbget-0.5.1.tar.gz) = 3ff7cb297bbe0fd3aa378343849d85f1
2
SHA256 (nzbget-0.4.1.tar.gz) = aae9e1b9b0eb7f4f6418a1e0e516c583fab43d37e6ecc1ffc4f729bdd7e4c69e
2
SHA256 (nzbget-0.5.1.tar.gz) = 48af705afa1cb429562e1b9e27f854e60de62f3c4ef3775229051f82be9f57ff
3
SIZE (nzbget-0.4.1.tar.gz) = 251338
3
SIZE (nzbget-0.5.1.tar.gz) = 278007
(-)files/patch-ChangeLog (+10 lines)
Added Link Here
1
--- ChangeLog	2008-09-21 09:16:48.000000000 -0700
2
+++ ChangeLog	2008-10-02 16:59:34.000000000 -0700
3
@@ -1,3 +1,7 @@
4
+nzbget-0.5.1 FreeBSD Port:
5
+  - Removed the <DumpCore> option, introduced in 0.5.0.  It uses 
6
+    Linux-specific code.
7
+
8
 nzbget-0.5.1:
9
   - improved the check of server responses to prevent unnecessary retrying
10
     if the article does not exist on server;
(-)files/patch-configure (-5 / +4 lines)
Lines 1-14 Link Here
1
--- configure.old	2008-02-29 12:18:26.000000000 -0300
1
--- configure	2008-09-21 09:18:06.000000000 -0700
2
+++ configure	2008-02-29 12:20:35.000000000 -0300
2
+++ configure	2008-10-02 17:12:54.000000000 -0700
3
@@ -2362,7 +2362,10 @@
3
@@ -2389,7 +2389,9 @@
4
     CPPFLAGS1="${CPPFLAGS} -D_GNU_SOURCE"
4
     LIBPREF1="/usr"
5
     ;;
5
     ;;
6
   *-freebsd*)
6
   *-freebsd*)
7
-    LIBPREF1="/usr/local"
7
-    LIBPREF1="/usr/local"
8
+    LIBPREF1="${LOCALBASE}"
8
+    LIBPREF1="${LOCALBASE}"
9
+    CFLAGS="${CFLAGS}"
9
+    CFLAGS="${CFLAGS}"
10
+    CPPFLAGS="${CPPFLAGS}"
10
+    CPPFLAGS="${CPPFLAGS}"
11
+    PLATFORM="FreeBSD"
12
     ;;
11
     ;;
13
   *-solaris*)
12
   *-solaris*)
14
     LIBPREF1="/usr"
13
     LIBPREF1="/usr"
(-)files/patch-nzbget.conf.example (+16 lines)
Added Link Here
1
--- nzbget.conf.example	2008-08-22 07:50:40.000000000 -0700
2
+++ nzbget.conf.example	2008-10-02 17:00:00.000000000 -0700
3
@@ -307,11 +307,11 @@
4
 # the names of broken files
5
 CreateBrokenLog=yes
6
 
7
-# Create memory dump (core-file) on abnormal termination (POSIX only) (yes, no)
8
+# Create memory dump (core-file) on abnormal termination (Linux only) (yes, no)
9
 # Core-files are very helpful for debugging.
10
 # NOTE: core-files may contain sensible data, like your login/password to
11
 # newsserver etc.
12
-DumpCore=no
13
+# DumpCore=no
14
 
15
 # See also option "logfile" in secion "PATHS"
16
 
(-)files/patch-nzbget.cpp (+53 lines)
Added Link Here
1
--- nzbget.cpp	2008-09-11 13:42:36.000000000 -0700
2
+++ nzbget.cpp	2008-10-02 16:57:26.000000000 -0700
3
@@ -41,7 +41,9 @@
4
 #include <pwd.h>
5
 #include <grp.h>
6
 #include <sys/resource.h>
7
+#ifndef __FREEBSD__
8
 #include <sys/prctl.h>
9
+#endif
10
 #include <signal.h>
11
 #endif
12
 #include <sys/types.h>
13
@@ -82,7 +84,9 @@
14
 void InstallSignalHandlers();
15
 void Daemonize();
16
 void PrintBacktrace();
17
+#ifndef __FREEBSD__
18
 void EnableDumpCore();
19
+#endif
20
 #ifdef DEBUG
21
 void MakeSegFault();
22
 #endif
23
@@ -170,11 +174,13 @@
24
 	}
25
 
26
 #ifndef WIN32
27
+#ifndef __FREEBSD__
28
 	if (g_pOptions->GetDumpCore())
29
 	{
30
 		EnableDumpCore();
31
 	}
32
 #endif
33
+#endif
34
 
35
 	Run();
36
 
37
@@ -518,6 +524,7 @@
38
 }
39
 #endif
40
 
41
+#ifndef __FREEBSD__
42
 /**
43
 * activates the creation of core-files
44
 */
45
@@ -530,6 +537,8 @@
46
 	prctl(PR_SET_DUMPABLE, 1);
47
 }
48
 #endif
49
+#endif
50
+
51
 
52
 void Cleanup()
53
 {

Return to bug 128106