1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-04 11:23:46 +00:00

- Finish off the year by fixing permissions on the eepg config dir

and adding a missing patch that was forgotten in the initial
  commit.
- Bump PORTREVISION.
This commit is contained in:
Juergen Lock 2011-12-31 20:49:28 +00:00
parent 578775dbac
commit 4efd678f60
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=288353
3 changed files with 20 additions and 1 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= vdr-plugin-eepg
PORTVERSION= 0.0.6p2011071921
PORTREVISION= 1
CATEGORIES= multimedia
MASTER_SITES= LOCAL/nox/
DISTNAME= ${PORTNAME}-${PORTVERSION:C/p.*/pre/}-0-g${GITHASH}
@ -26,7 +27,7 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${GITHASH}
post-patch: post-patch-plugin
post-install:
@${MKDIR} ${PREFIX}/etc/vdr/plugins/${PLUGIN}
@${INSTALL} -o ${VDR_USER} -g ${VDR_GROUP} -d ${PREFIX}/etc/vdr/plugins/${PLUGIN}
@${INSTALL_DATA} ${WRKSRC}/eepg.equiv.IT ${PREFIX}/etc/vdr/plugins/${PLUGIN}
@${INSTALL_DATA} ${WRKSRC}/eepg.equiv.IT ${PREFIX}/etc/vdr/plugins/${PLUGIN}/eepg.equiv.sample
@if [ ! -f ${PREFIX}/etc/vdr/plugins/${PLUGIN}/eepg.equiv ]; then \

View File

@ -0,0 +1,17 @@
--- a/eepg.c
+++ b/eepg.c
@@ -427,7 +427,14 @@ static void load_file (int tableid, char
while (fgets (buf, sizeof (buf), fp) != NULL) {
from = binary = to = NULL;
+#ifdef __FreeBSD__
+ from = MALLOC(char, 256);
+ binary = MALLOC(char, 1024);
+ to = MALLOC(char, 256);
+ int elems = sscanf (buf, "%255[^:]:%1023[^:]:%255[^:]:", from, binary, to);
+#else
int elems = sscanf (buf, "%a[^:]:%a[^:]:%a[^:]:", &from, &binary, &to);
+#endif
if (elems == 3) {
int bin_len = strlen (binary);
int from_char = resolve_char (from);

View File

@ -1,4 +1,5 @@
lib/vdr/libvdr-eepg.so.1.7.19
@exec /usr/bin/install -o %%VDR_USER%% -g %%VDR_GROUP%% -d %D/etc/vdr/plugins/eepg
etc/vdr/plugins/eepg/eepg.equiv.IT
@unexec if cmp -s %D/etc/vdr/plugins/eepg/eepg.equiv.sample %D/etc/vdr/plugins/eepg/eepg.equiv; then rm -f %D/etc/vdr/plugins/eepg/eepg.equiv; fi
etc/vdr/plugins/eepg/eepg.equiv.sample