Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

8
sysutils/libirman/DESCR Normal file
View File

@@ -0,0 +1,8 @@
Libirman is a programming library for Irman control of Unix software.
Infrared man (Irman) is a small device that allows you to control
your PC with the remote from your TV, VCR, CD or Stereo. Irman
can be used in many ways, for example to control a software program
while you are in another room. Imagine controlling Winamp with a
normal remote to choose exactly the song you want. Or watching
DVD from your couch while still being able to pause or fast forward.

View File

@@ -0,0 +1,8 @@
===========================================================================
$NetBSD: MESSAGE.Linux,v 1.1 2008/09/21 19:41:42 abs Exp $
If you want to use lbirman with lirc you may need to run:
mkfifo /dev/lirc
===========================================================================

View File

@@ -0,0 +1,34 @@
# $NetBSD: Makefile,v 1.16 2012/10/23 19:51:10 asau Exp $
#
DISTNAME= libirman-0.4.1c
CATEGORIES= sysutils
MASTER_SITES= http://libirman.googlecode.com/files/
EXTRACT_SUFX= .tbz
MAINTAINER= abs@NetBSD.org
HOMEPAGE= http://code.google.com/p/libirman/
COMMENT= Programming library for Irman - infrared control
PKG_INSTALLATION_TYPES= overwrite pkgviews
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
EGDIR= ${PREFIX}/share/examples
CONF_FILES= ${EGDIR}/irman.conf ${PKG_SYSCONFDIR}/irman.conf
INSTALLATION_DIRS= share/doc share/examples
post-build:
${SED} -e "s:/usr/local/etc:${PKG_SYSCONFDIR}:g" \
-e "s:/usr/local:${PREFIX}:g" \
-e 's/test_func/irman_func/g' \
-e 's/test_io/irman_func/g' \
-e 's/test_name/irman_func/g' \
${WRKSRC}/README > ${WRKSRC}/libirman.README
${SED} -e 's:port /dev/ttyS1:port ${DEFAULT_SERIAL_DEVICE}:' \
${WRKSRC}/irman.conf > ${WRKSRC}/irman.conf.patched
${MV} ${WRKSRC}/irman.conf.patched ${WRKSRC}/irman.conf
.include "../../mk/bsd.pkg.mk"

9
sysutils/libirman/PLIST Normal file
View File

@@ -0,0 +1,9 @@
@comment $NetBSD: PLIST,v 1.3 2002/06/14 20:38:40 abs Exp $
bin/irman_func
bin/irman_io
bin/irman_name
bin/workmanir
lib/libirman.a
sbin/lirmand
share/doc/libirman.README
share/examples/irman.conf

View File

@@ -0,0 +1,6 @@
$NetBSD: distinfo,v 1.10 2012/10/26 20:29:15 joerg Exp $
SHA1 (libirman-0.4.1c.tbz) = be8e734842d33da4f7d6949212479f693c925a12
RMD160 (libirman-0.4.1c.tbz) = 4ffeb2fd219df81051a8192ade02a7e39a3e0202
Size (libirman-0.4.1c.tbz) = 48911 bytes
SHA1 (patch-lirmand.c) = 0963825bbe9cca927ca87889ea7a1c0941e562ee

View File

@@ -0,0 +1,65 @@
$NetBSD: patch-lirmand.c,v 1.1 2012/10/26 20:29:15 joerg Exp $
--- lirmand.c.orig 2012-10-26 14:22:50.000000000 +0000
+++ lirmand.c
@@ -63,30 +63,30 @@ char *progname = "lirmand";
int lirc = 0; /* file descriptor */
int is_daemon = 0;
-FILE *log = NULL;
+FILE *my_log = NULL;
FILE *open_log(void)
{
time_t t=time(NULL);
- if (!log) {
- log = fopen(LIRMAND_LOGFILE, "a");
- if (log) {
- fprintf(log, "%s started at %s\n", progname, ctime(&t));
+ if (!my_log) {
+ my_log = fopen(LIRMAND_LOGFILE, "a");
+ if (my_log) {
+ fprintf(my_log, "%s started at %s\n", progname, ctime(&t));
}
}
- return log;
+ return my_log;
}
void close_log(void)
{
time_t t = time(NULL);
- if (log) {
- fprintf(log, "%s stopped at %s\n", progname, ctime(&t));
- fclose(log);
+ if (my_log) {
+ fprintf(my_log, "%s stopped at %s\n", progname, ctime(&t));
+ fclose(my_log);
}
- log = NULL;
+ my_log = NULL;
}
@@ -99,7 +99,7 @@ int debug_printf(char *format, ...)
return 0;
va_start(va, format);
- ret = vfprintf(log, format, va);
+ ret = vfprintf(my_log, format, va);
va_end(va);
return ret;
@@ -114,8 +114,8 @@ int eprintf(char *format, ...)
va_start(va, format);
if (open_log()) {
- ret = fprintf(log, "error: ");
- ret += vfprintf(log, format, va);
+ ret = fprintf(my_log, "error: ");
+ ret += vfprintf(my_log, format, va);
}
if (!is_daemon) {
ret = fprintf(stderr, "%s: ", progname);