Summary: | app-mobilephone/p2kc - a linux port for P2K Commander, a program used to access P2K phones | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Aaron Slunt <tonglebeak> |
Component: | New packages | Assignee: | Default Assignee for New Packages <maintainer-wanted> |
Status: | CONFIRMED --- | ||
Severity: | enhancement | CC: | dev-random, dREPLACEeLETTEReEjBYeLETTEReA |
Priority: | High | Keywords: | EBUILD, PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://www.el-co.hu/smf/index.php/topic,248.0.html | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
p2kc-0.6.ebuild
p2kc_makefile.patch p2kc-0.6.ebuild p2kc_c.patch to insert echo before wget and $BROWSER |
Description
Aaron Slunt
2008-06-23 00:45:00 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.
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).
Created attachment 158057 [details]
p2kc-0.6.ebuild
I wouldn't mind giving a shot at maintaining it...would be a nice learning experience for me. 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
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() 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. fuse and p2k have been merged already here: http://intgat.tigress.co.uk/rmy/p2kfuse/index.html Still, no ebuild available. |