mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-02 06:03:50 +00:00
* Don't install Debian-specific gnump3d-config script.
* In the default configuration file, run the server as user "www" instead of "nobody". * Fix default configure file location in gnump3d-top.
This commit is contained in:
parent
e4594fd355
commit
a799213341
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=64519
@ -8,7 +8,7 @@
|
||||
|
||||
PORTNAME= gnump3d
|
||||
PORTVERSION= 0.9.9.9.2
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= audio
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
@ -23,11 +23,12 @@ USE_REINPLACE= yes
|
||||
USE_GMAKE= yes
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
|
||||
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
CONFIGURE_ENV= CONFIG_SHELL="${SH}" \
|
||||
CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
LDFLAGS="-L${LOCALBASE}/lib"
|
||||
CONFIGURE_ARGS= --libdir=${PREFIX}/lib/gnump3d
|
||||
|
||||
MAN1= gnump3d.1 gnump3d.conf.1 gnump3d-config.1 gnump3d-top.1
|
||||
MAN1= gnump3d.1 gnump3d.conf.1 gnump3d-top.1
|
||||
|
||||
.if !defined(WITHOUT_VORBIS)
|
||||
LIB_DEPENDS= vorbis.2:${PORTSDIR}/audio/libvorbis
|
||||
@ -45,8 +46,9 @@ pre-everything::
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|-D_THREAD_SAFE|${PTHREAD_CFLAGS}|g ; \
|
||||
s|-pthread|${PTHREAD_LIBS}|g' ${WRKSRC}/aclocal.m4
|
||||
@${REINPLACE_CMD} -e \
|
||||
's|#undef socklen_t||g' ${WRKSRC}/src/config.h.in
|
||||
# Avoid triggering automake
|
||||
@${TOUCH} -r ${WRKSRC}/aclocal.m4.bak ${WRKSRC}/aclocal.m4
|
||||
@${TOUCH} -r ${WRKSRC}/configure.in.orig ${WRKSRC}/configure.in
|
||||
|
||||
pre-configure:
|
||||
.for dir in . mplib libltdl
|
||||
|
15
audio/gnump3d/files/patch-configure.in
Normal file
15
audio/gnump3d/files/patch-configure.in
Normal file
@ -0,0 +1,15 @@
|
||||
|
||||
$FreeBSD$
|
||||
|
||||
--- configure.in.orig Wed Aug 14 14:45:44 2002
|
||||
+++ configure.in Wed Aug 14 14:46:10 2002
|
||||
@@ -97,7 +97,8 @@
|
||||
|
||||
dnl check for Unix98 socklen_t
|
||||
AC_MSG_CHECKING(for socklen_t)
|
||||
-AC_TRY_COMPILE([#include <sys/socket.h>
|
||||
+AC_TRY_COMPILE([#include <sys/types.h>
|
||||
+#include <sys/socket.h>
|
||||
socklen_t x;
|
||||
],[],[AC_MSG_RESULT(yes)],[
|
||||
AC_TRY_COMPILE([#include <sys/socket.h>
|
14
audio/gnump3d/files/patch-man_Makefile.in
Normal file
14
audio/gnump3d/files/patch-man_Makefile.in
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
$FreeBSD$
|
||||
|
||||
--- man/Makefile.in.orig Wed Aug 14 02:19:33 2002
|
||||
+++ man/Makefile.in Wed Aug 14 02:19:52 2002
|
||||
@@ -85,7 +85,7 @@
|
||||
STRIP = @STRIP@
|
||||
VERSION = @VERSION@
|
||||
|
||||
-man_MANS = gnump3d.1 gnump3d-top.1 gnump3d.conf.1 gnump3d-config.1
|
||||
+man_MANS = gnump3d.1 gnump3d-top.1 gnump3d.conf.1
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
|
||||
CONFIG_HEADER = ../src/config.h
|
||||
CONFIG_CLEAN_FILES =
|
20
audio/gnump3d/files/patch-scripts_Makefile.in
Normal file
20
audio/gnump3d/files/patch-scripts_Makefile.in
Normal file
@ -0,0 +1,20 @@
|
||||
|
||||
$FreeBSD$
|
||||
|
||||
--- scripts/Makefile.in.orig Wed Aug 14 02:16:56 2002
|
||||
+++ scripts/Makefile.in Wed Aug 14 02:18:25 2002
|
||||
@@ -195,11 +195,9 @@
|
||||
|
||||
|
||||
install:
|
||||
- mkdir -p $(bindir)
|
||||
- cp gnump3d-config $(bindir)
|
||||
- cp gnump3d-top $(bindir)
|
||||
- chmod 755 $(bindir)/gnump3d-config
|
||||
- chmod 755 $(bindir)/gnump3d-top
|
||||
+ $(mkinstalldirs) $(DESTDIR)$(bindir)
|
||||
+# $(INSTALL_SCRIPT) gnump3d-config $(DESTDIR)$(bindir)
|
||||
+ $(INSTALL_SCRIPT) gnump3d-top $(DESTDIR)$(bindir)
|
||||
|
||||
uninstall:
|
||||
rm -f $(bindir)/gnump3d-config
|
14
audio/gnump3d/files/patch-scripts_gnump3d-top.in
Normal file
14
audio/gnump3d/files/patch-scripts_gnump3d-top.in
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
$FreeBSD$
|
||||
|
||||
--- scripts/gnump3d-top.in.orig Wed Aug 14 18:45:33 2002
|
||||
+++ scripts/gnump3d-top.in Wed Aug 14 18:46:04 2002
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
# The default logfile which we read if there is no
|
||||
# --config options supplied on the command line.
|
||||
-my $DEFAULT_CONFIG = "/etc/mp3d/mp3d.conf";
|
||||
+my $DEFAULT_CONFIG = "@prefix@/etc/gnump3d/gnump3d.conf";
|
||||
|
||||
#
|
||||
# Options set by the command line arguments.
|
14
audio/gnump3d/files/patch-templates_gnump3d.conf
Normal file
14
audio/gnump3d/files/patch-templates_gnump3d.conf
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
$FreeBSD$
|
||||
|
||||
--- templates/gnump3d.conf.orig Wed Aug 14 02:11:42 2002
|
||||
+++ templates/gnump3d.conf Wed Aug 14 02:13:23 2002
|
||||
@@ -143,7 +143,7 @@
|
||||
# you run the server as a user such as 'nobody', and allow people read-only
|
||||
# access to your audio files.
|
||||
#
|
||||
-user = nobody
|
||||
+user = www
|
||||
|
||||
|
||||
#
|
@ -1,6 +1,5 @@
|
||||
@comment $FreeBSD$
|
||||
bin/gnump3d
|
||||
bin/gnump3d-config
|
||||
bin/gnump3d-top
|
||||
etc/gnump3d/default/error.html
|
||||
etc/gnump3d/default/index.html
|
||||
|
Loading…
Reference in New Issue
Block a user