Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 228993 - app-mobilephone/p2kc - a linux port for P2K Commander, a program used to access P2K phones
Summary: app-mobilephone/p2kc - a linux port for P2K Commander, a program used to acce...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://www.el-co.hu/smf/index.php/top...
Whiteboard:
Keywords: EBUILD, PATCH
Depends on:
Blocks:
 
Reported: 2008-06-23 00:45 UTC by Aaron Slunt
Modified: 2014-09-15 08:59 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
p2kc-0.6.ebuild (p2kc-0.6.ebuild,721 bytes, text/plain)
2008-06-23 00:46 UTC, Aaron Slunt
Details
p2kc_makefile.patch (p2kc_makefile.patch,776 bytes, text/plain)
2008-06-23 00:47 UTC, Aaron Slunt
Details
p2kc-0.6.ebuild (p2kc-0.6.ebuild,732 bytes, text/plain)
2008-06-23 00:49 UTC, Aaron Slunt
Details
p2kc_c.patch to insert echo before wget and $BROWSER (p2kc_c.patch,2.09 KB, text/plain)
2009-09-22 14:21 UTC, Daa Jaa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Slunt 2008-06-23 00:45:00 UTC
P2KC is a linux port of P2K Commander, a program used to access phones equipped with the P2K protocol.

Reproducible: Always
Comment 1 Aaron Slunt 2008-06-23 00:46:19 UTC
Created attachment 158053 [details]
p2kc-0.6.ebuild

Simple ebuild for p2kc. I have never done this before, so feel free to critique it ;) Makefile patch coming, it's needed to avoid sandbox violations.
Comment 2 Aaron Slunt 2008-06-23 00:47:19 UTC
Created attachment 158055 [details]
p2kc_makefile.patch

Patches the p2kc makefile so that we avoid sandbox violations with portage. ALso allows a normal user to run p2kc (the way it should be).
Comment 3 Aaron Slunt 2008-06-23 00:49:29 UTC
Created attachment 158057 [details]
p2kc-0.6.ebuild
Comment 4 Aaron Slunt 2008-06-24 01:03:54 UTC
I wouldn't mind giving a shot at maintaining it...would be a nice learning experience for me.
Comment 5 Daa Jaa 2009-09-22 14:21:52 UTC
Created attachment 204926 [details]
p2kc_c.patch to insert echo before wget and $BROWSER

p2k-core is nice, thank you. I patched p2kc.
p2kc is in gtk, but it is phoning home (www.el-co.hu), so I patched the source to add echo before some wget and $BROWSER actions.

You should replace 'install -s' by 'install' in your p2kc_makefile.patch, otherwise you get the complaint '* QA Notice: Pre-stripped files found: * /usr/bin/p2k-core * /usr/bin/p2kc' ...

I modified src_unpack and got:

src_unpack() {
        unpack "${A}"
        cd ${S}
        epatch "${FILESDIR}/${PN}_makefile.patch" || die "epatch failed"
        epatch "${FILESDIR}/${PN}_p2kc_c.patch" || die "epatch failed"
        emake clean
}

Here is the content of my /usr/local/portage/app-mobilephone/p2kc/Manifest:
AUX p2kc_makefile.patch 770 RMD160 76f64c411927931f2bdaf658fd9ac94eb5f6c143 SHA1 230274973bc4001eb34c77d2abfafa184a70430e SHA256 f30cfbfe303ae4f0fb61b418a203e1f64cc496f5760729cb7f723cdcbfe43fa2
AUX p2kc_p2kc_c.patch 2142 RMD160 8542c249b1382790b1c061ec6eddd8e13a5348b7 SHA1 febaa0727d27c5556ba35b1f1f064c18a9274657 SHA256 c7b07dc6ca594f9f72dbf8f52f109b6937ee654b2558b0a6fad8552cb49c94f6
DIST p2kc_0.6_source.tar.gz 189932 RMD160 41a75a1c98164c48ae316469c615aaa2f61a3b01 SHA1 74243052a4112246c6b1e43f1486d90e2dc46e59 SHA256 8ee06de5c893d3c9940ef7c5cad81a7a380b812529290ab73d84b4c50d818653
EBUILD p2kc-0.6.ebuild 880 RMD160 adb1570052bd9ca4029ff78b5e51c1dc6c60cf52 SHA1 146174169c60cd21b0731dc84b54bb64a6801602 SHA256 93e043b56f3921c067a0945a28cebf38eebe21b620b5ecd7a2c094913fb4b057
Comment 6 Daa Jaa 2009-09-22 14:34:55 UTC
make[2]: Entering directory `/var/tmp/portage/app-mobilephone/p2kc-0.6/work/p2kc_0.6_source/p2k-core'
gcc -g -c p2k-core.c
p2k-core.c: In function 'Switch_ModemtoP2kmode':
p2k-core.c:396: warning: assignment makes pointer from integer without a cast
p2k-core.c:409: warning: passing argument 1 of 'tcflush' makes integer from pointer without a cast
p2k-core.c:410: warning: passing argument 1 of 'tcsetattr' makes integer from pointer without a cast
p2k-core.c:415: warning: passing argument 1 of 'write' makes integer from pointer without a cast
p2k-core.c:416: warning: passing argument 1 of 'tcdrain' makes integer from pointer without a cast
p2k-core.c:420: warning: passing argument 1 of 'read' makes integer from pointer without a cast
p2k-core.c:432: warning: passing argument 1 of 'write' makes integer from pointer without a cast

Well ... this should be patched also. (and the ebuild also needs sed -e s:/usr/local/:/usr/:g -i p2kc.c ; sed -e s:/usr/local/:/usr/:g -i p2kc.h ; in src_unpack()
Comment 7 Daa Jaa 2009-09-22 14:39:42 UTC
It may be interesting to link p2k-core with http://sourceforge.net/apps/mediawiki/fuse/index.php?title=Main_Page to be able to mount the filesystem of the phone.

p2k-core works (as root) to browse a L6.
Comment 8 Daa Jaa 2009-11-05 12:31:15 UTC
fuse and p2k have been merged already here:
http://intgat.tigress.co.uk/rmy/p2kfuse/index.html
Still, no ebuild available.