1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-27 10:03:20 +00:00

net/minidlna: update to 1.1.1

- Update to 1.1.1
- Fix build for non-default LOCALBASE
- Use options helpers
This commit is contained in:
William Grzybowski 2013-11-05 16:12:04 +00:00
parent eb71d4ab7f
commit 859e27122a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=332862
5 changed files with 20 additions and 1071 deletions

View File

@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= minidlna
PORTVERSION= 1.1.0
PORTREVISION= 1
PORTVERSION= 1.1.1
PORTEPOCH= 1
CATEGORIES= net multimedia www
MASTER_SITES= SF
@ -23,6 +22,9 @@ LIB_DEPENDS= libsqlite3.so:${PORTSDIR}/databases/sqlite3 \
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--with-db-path=/var/db/minidlna \
--with-os-url="http://www.FreeBSD.org"
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
USES= iconv
PKGMESSAGE= ${WRKSRC}/pkg-message
SUB_FILES+= pkg-message
@ -32,20 +34,14 @@ SUB_LIST+= USER=${USERS}
USERS= dlna
GROUPS= dlna
.include <bsd.port.options.mk>
OPTIONS_DEFINE= NLS
OPTIONS_SUB= yes
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.endif
NLS_USES= gettext
post-install:
${INSTALL_MAN} ${WRKSRC}/*.5 ${STAGEDIR}${MANPREFIX}/man/man5/
${INSTALL_MAN} ${WRKSRC}/*.8 ${STAGEDIR}${MANPREFIX}/man/man8/
${INSTALL_DATA} ${WRKSRC}/minidlna.conf ${STAGEDIR}${PREFIX}/etc/minidlna.conf.sample
@${FMT} ${PKGMESSAGE}
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (minidlna-1.1.0.tar.gz) = c2ef2ebe4311d08a60a87ec0c86fbe5e7f4fd25b947841f1d71b0508c60a90e2
SIZE (minidlna-1.1.0.tar.gz) = 423555
SHA256 (minidlna-1.1.1.tar.gz) = 9b70082fd6a12e16cea1558ffff05c07e12ef0c405ee806721e75ce1ce9ad037
SIZE (minidlna-1.1.1.tar.gz) = 678403

View File

@ -1,12 +0,0 @@
diff --git clients.h clients.h
index d3ffe1d..2a4c579 100644
--- clients.h
+++ clients.h
@@ -1,6 +1,7 @@
#ifndef __CLIENTS_H__
#define __CLIENTS_H__
#include <stdint.h>
+#include <sys/time.h>
#include <netinet/in.h>
#define CLIENT_CACHE_SLOTS 20

View File

@ -1,13 +1,11 @@
diff --git getifaddr.c getifaddr.c
index 9c437b7..5eb6716 100644
--- getifaddr.c
+++ getifaddr.c
@@ -175,7 +175,7 @@ getsysaddrs(void)
if (p->ifa_addr && p->ifa_addr->sa_family == AF_INET)
{
addr_in = (struct sockaddr_in *)p->ifa_addr;
- if (p->ifa_flags & (IFF_LOOPBACK | IFF_SLAVE))
+ if (p->ifa_flags & (IFF_LOOPBACK))
continue;
memcpy(&lan_addr[n_lan_addr].addr, &addr_in->sin_addr, sizeof(lan_addr[n_lan_addr].addr));
if (!inet_ntop(AF_INET, &addr_in->sin_addr, lan_addr[n_lan_addr].str, sizeof(lan_addr[0].str)) )
--- getifaddr.c.orig 2013-11-01 23:06:41.000000000 -0200
+++ getifaddr.c 2013-11-05 13:51:05.978629077 -0200
@@ -82,7 +82,7 @@
if (ifname && strcmp(p->ifa_name, ifname) != 0)
continue;
addr_in = (struct sockaddr_in *)p->ifa_addr;
- if (!ifname && (p->ifa_flags & (IFF_LOOPBACK | IFF_SLAVE)))
+ if (!ifname && (p->ifa_flags & IFF_LOOPBACK))
continue;
memcpy(&lan_addr[n_lan_addr].addr, &addr_in->sin_addr, sizeof(lan_addr[n_lan_addr].addr));
if (!inet_ntop(AF_INET, &addr_in->sin_addr, lan_addr[n_lan_addr].str, sizeof(lan_addr[0].str)) )

File diff suppressed because it is too large Load Diff