shirleyian / pentoo

Automatically exported from code.google.com/p/pentoo
1 stars 1 forks source link

sipvicious-0.2.8-r2.ebuild patch for compliance #231

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
ebuild produces sym links in /usr/bin with .py extension.

What is the expected output? What do you see instead?
/usr/bin/foo
/usr/bin/foo.py

What version of the product are you using? On what operating system?
sipvicious-0.2.8-r2.ebuild

Please provide any additional information below.

--- sipvicious-0.2.8-r2.ebuild  2014-02-11 08:50:47.784306706 -0600
+++ /home/hacker/Programming/ebuilds/sip/sipvicious-0.2.8-r2.ebuild 2014-02-11 
08:42:23.941605607 -0600
@@ -31,8 +31,8 @@
    chmod 655 svcrash.py
    cp -pPR * "${ED}"usr/share/${PN}/ || die
    chown -R root:0 "${ED}"
-   for file in svmap.py svwar.py svcrack.py svreport.py svcrash.py; do
-       dosym /usr/share/${PN}/${file} /usr/bin/${file}
+   for f in svmap.py svwar.py svcrack.py svreport.py svcrash.py; do
+       file=$(printf $f | awk -F.py '{print $1}'); dosym /usr/share/sipvicious/${f} 
/usr/bin/${file}
    done
    python_fix_shebang "${ED}"usr/share/${PN}
 }

Original issue reported on code.google.com by cyb3r-assassin@cyberpunk.me on 11 Feb 2014 at 3:13

GoogleCodeExporter commented 9 years ago
I found a more elegant way, see r5476
Thanks, fixed!

Original comment by blshkv on 12 Feb 2014 at 3:19