diff options
author | Norikatsu Shigemura <nork@FreeBSD.org> | 2007-01-21 14:43:06 +0000 |
---|---|---|
committer | Norikatsu Shigemura <nork@FreeBSD.org> | 2007-01-21 14:43:06 +0000 |
commit | 405556f393711bac3fce77dfa5f903e0dc7e1e18 (patch) | |
tree | cd1002a44da16965b00edd260190257bafa6f939 /japanese/suicavalue | |
parent | 88c5aa0bbe43934cdd73a5c5d5a7791e8a0b8ef9 (diff) | |
download | ports-405556f393711bac3fce77dfa5f903e0dc7e1e18.tar.gz ports-405556f393711bac3fce77dfa5f903e0dc7e1e18.zip |
Notes
Diffstat (limited to 'japanese/suicavalue')
-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 |
6 files changed, 99 insertions, 0 deletions
diff --git a/japanese/suicavalue/Makefile b/japanese/suicavalue/Makefile new file mode 100644 index 000000000000..aac51234e6e0 --- /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 000000000000..8041e8fd7510 --- /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 000000000000..57d2df62441e --- /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 000000000000..7d480b3c434a --- /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 000000000000..a93bcc4f2de3 --- /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 000000000000..a01009ee6ca1 --- /dev/null +++ b/japanese/suicavalue/pkg-message @@ -0,0 +1,3 @@ +****************************************************************************** +Place your Suica card on PaSoRi before executing SuicaValue. +****************************************************************************** |