diff options
author | nork <nork@FreeBSD.org> | 2007-01-21 14:43:06 +0000 |
---|---|---|
committer | nork <nork@FreeBSD.org> | 2007-01-21 14:43:06 +0000 |
commit | 84ed2187e4a05a67dd65279cc09a2b9c34da9206 (patch) | |
tree | b11c1b13ed9d8987a11338bcdd7a592952495c22 /japanese | |
parent | effeb2c439a84f552a9c205bd4444c25937a05df (diff) | |
download | FreeBSD-ports-84ed2187e4a05a67dd65279cc09a2b9c34da9206.zip FreeBSD-ports-84ed2187e4a05a67dd65279cc09a2b9c34da9206.tar.gz |
Add suicavalue 2007.01.06, utility to print a statement of Suica.
PR: ports/108178
Submitted by: Yoshihiko Sarumaru <mistral at imasy.or.jp>
Diffstat (limited to 'japanese')
-rw-r--r-- | japanese/Makefile | 1 | ||||
-rw-r--r-- | japanese/suicavalue/Makefile | 31 | ||||
-rw-r--r-- | japanese/suicavalue/distinfo | 3 | ||||
-rw-r--r-- | japanese/suicavalue/files/Makefile | 13 | ||||
-rw-r--r-- | japanese/suicavalue/files/patch-SuicaValue.c | 45 | ||||
-rw-r--r-- | japanese/suicavalue/pkg-descr | 4 | ||||
-rw-r--r-- | japanese/suicavalue/pkg-message | 3 |
7 files changed, 100 insertions, 0 deletions
diff --git a/japanese/Makefile b/japanese/Makefile index e730cd9..878eebe 100644 --- a/japanese/Makefile +++ b/japanese/Makefile @@ -367,6 +367,7 @@ SUBDIR += srd-fpw SUBDIR += srd-fpw-package SUBDIR += stardict2-dict-ja + SUBDIR += suicavalue SUBDIR += suikyo SUBDIR += t2ps SUBDIR += tcl76 diff --git a/japanese/suicavalue/Makefile b/japanese/suicavalue/Makefile new file mode 100644 index 0000000..aac5123 --- /dev/null +++ b/japanese/suicavalue/Makefile @@ -0,0 +1,31 @@ +# New ports collection makefile for: suicavalue +# Date created: 18 January 2007 +# Whom: Yoshihiko Sarumaru <mistral@imasy.or.jp> +# +# $FreeBSD$ + +PORTNAME= suicavalue +PORTVERSION= 2007.01.06 +CATEGORIES= japanese +MASTER_SITES= http://www.imfj.net/people/nomura/soft/PaSoRi/ +DISTNAME= SuicaValue +EXTRACT_SUFX= .c +DIST_SUBDIR= ${PORTNAME}/${PORTVERSION} +EXTRACT_ONLY= + +MAINTAINER= mistral@imasy.or.jp +COMMENT= Utility to print a statement of Suica + +BUILD_DEPENDS= ${LOCALBASE}/lib/libpasori.a:${PORTSDIR}/devel/libpasori + +PLIST_FILES= bin/SuicaValue + +post-extract: + @${MKDIR} ${WRKSRC} + @${CP} -f ${DISTDIR}/${DISTFILES} ${WRKSRC} + @${CP} -f ${FILESDIR}/Makefile ${WRKSRC} + +post-install: + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> diff --git a/japanese/suicavalue/distinfo b/japanese/suicavalue/distinfo new file mode 100644 index 0000000..8041e8f --- /dev/null +++ b/japanese/suicavalue/distinfo @@ -0,0 +1,3 @@ +MD5 (suicavalue/2007.01.06/SuicaValue.c) = ea9c5ff527b614165b864678b979143c +SHA256 (suicavalue/2007.01.06/SuicaValue.c) = 66e2d4ac59d10f23899b5005be76c0610b1c4adcbfbb7fb32a3570f6d63b841d +SIZE (suicavalue/2007.01.06/SuicaValue.c) = 913 diff --git a/japanese/suicavalue/files/Makefile b/japanese/suicavalue/files/Makefile new file mode 100644 index 0000000..57d2df6 --- /dev/null +++ b/japanese/suicavalue/files/Makefile @@ -0,0 +1,13 @@ +# $FreeBSD$ + +PROG= SuicaValue +DPADD= ${LOCALBASE}/lib/libpasori.a +LDADD= -L${LOCALBASE}/lib -lpasori + +BINDIR= ${LOCALBASE}/bin +NO_MAN= + +CFLAGS+= -I${LOCALBASE}/include +CFLAGS+= -Wall -W + +.include <bsd.prog.mk> diff --git a/japanese/suicavalue/files/patch-SuicaValue.c b/japanese/suicavalue/files/patch-SuicaValue.c new file mode 100644 index 0000000..7d480b3 --- /dev/null +++ b/japanese/suicavalue/files/patch-SuicaValue.c @@ -0,0 +1,45 @@ +--- SuicaValue.c.orig Sat Jan 6 16:36:31 2007 ++++ SuicaValue.c Sun Jan 21 03:05:30 2007 +@@ -1,23 +1,30 @@ + #include <stdio.h> + #include <stdlib.h> ++#include <unistd.h> + #include "libpasori.h" ++#include "libpasori_command.h" + + int +-main(void){ ++main(int argc, char **argv){ + pasori* p; + felica* f; + int i; +- int m; + int wk, wk2; + uint8 b[16]; + +- p = pasori_open(NULL); ++ char* devpath = NULL; ++ if (argc == 2) { ++ devpath = argv[1]; ++ } ++ p = pasori_open(devpath); + if(!p){ + printf("error\n"); + exit(-1); + } + pasori_init(p); ++ sleep(1); + f = felica_polling(p,0x0003,0,0); ++ if (f) { + printf("*** Suica Value ***\n"); + i=0; + while(!felica_read_without_encryption02(f,0x090f,0,i,b)){ +@@ -42,6 +49,8 @@ + printf(" % 5d Yen ",b[11]*256+b[10]); + printf("%02X%02X%02X%02X\n",b[12],b[13],b[14],b[15]); + i++; ++ } ++ free(f); + } + pasori_close(p); + return 0; diff --git a/japanese/suicavalue/pkg-descr b/japanese/suicavalue/pkg-descr new file mode 100644 index 0000000..a93bcc4 --- /dev/null +++ b/japanese/suicavalue/pkg-descr @@ -0,0 +1,4 @@ +SuicaValue prints statements from a Suica card. +You need a Sony RC-S320 or VAIO with FeliCa port to use this program. + +WWW: http://www.imfj.net/people/nomura/soft/PaSoRi/SuicaValue.html diff --git a/japanese/suicavalue/pkg-message b/japanese/suicavalue/pkg-message new file mode 100644 index 0000000..a01009e --- /dev/null +++ b/japanese/suicavalue/pkg-message @@ -0,0 +1,3 @@ +****************************************************************************** +Place your Suica card on PaSoRi before executing SuicaValue. +****************************************************************************** |