1 |
On Sun, Jul 17, 2011 at 12:43 PM, Kacper Kowalik <xarthisius@g.o>wrote: |
2 |
|
3 |
> -----BEGIN PGP SIGNED MESSAGE----- |
4 |
> Hash: SHA1 |
5 |
> |
6 |
> W dniu 17.07.2011 10:45, Kfir Lavi pisze: |
7 |
> > Hi, |
8 |
> > I have created a new ebuild for net-misc/pimd [1]. |
9 |
> > From the webpage: |
10 |
> > pimd is a lightweight stand-alone PIM-SM v2 multicast routing daemon. |
11 |
> > |
12 |
> > I would like you guys to review the ebuild and the rc-file. |
13 |
> > This ebuild is based on net-misc/mrouted. |
14 |
> |
15 |
> > EAPI="2" |
16 |
> Please use latest eapi when introducing new ebuilds |
17 |
> |
18 |
> > inherit eutils toolchain-funcs |
19 |
> where do you use 'eutils.eclass'? |
20 |
> |
21 |
> > DESCRIPTION="Lightweight stand-alone PIM-SM v2 multicast routing daemon" |
22 |
> > HOMEPAGE="http://vmlinux.org/jocke/pimd.shtml" |
23 |
> > SRC_URI="ftp://ftp.vmlinux.org/pub/People/jocke/${PN}/${P}.tar.bz2" |
24 |
> > LICENSE="Stanford" |
25 |
> Is that a correct license? Compare LICENSE.mrouted with |
26 |
> ${PORTDIR}/licenses/Stanford and then with BSD. |
27 |
> |
28 |
> > SLOT="0" |
29 |
> > KEYWORDS="~amd64 ~x86" |
30 |
> > IUSE="+doc" |
31 |
> Where do you use doc flag? |
32 |
> |
33 |
> > DEPEND="|| ( dev-util/yacc sys-devel/bison )" |
34 |
> > RDEPEND="" |
35 |
> Is yacc or bison really invoked during build? (Check either Makefile or |
36 |
> TODO ;) ) Assuming it isn't those two lines are unnecessary. |
37 |
> |
38 |
> > CONFIG_CHECK="~IP_PIMSM_V2:" |
39 |
> > WARNING_BRIDGE="CONFIG_IP_PIMSM_V2 is required for pimd" |
40 |
> these are not used. |
41 |
> |
42 |
> > src_prepare() { |
43 |
> > # Respect user CFLAGS, remove upstream optimisation and -Werror |
44 |
> > sed -i Makefile \ |
45 |
> > -e '/^CFLAGS/{s|[[:space:]]=| +=|g;s|-O2||g;s|-Werror||g}' \ |
46 |
> > || die |
47 |
> > } |
48 |
> It would be more legible if you convert it to patch. |
49 |
> |
50 |
> > src_compile() { |
51 |
> > emake CC=$(tc-getCC) || die |
52 |
> > } |
53 |
> Some systems export CC as "gcc -m64". |
54 |
> |
55 |
> > src_install() { |
56 |
> > dobin pimd || die |
57 |
> ... |
58 |
> All those helpers could be easily avoided. |
59 |
> |
60 |
> src_install() { |
61 |
> emake DESTDIR="${D}" prefix=/usr \ |
62 |
> datadir=/usr/share/doc/${PN} install || die |
63 |
> newinitd "${FILESDIR}"/pimd.rc pimd |
64 |
> } |
65 |
> |
66 |
> Only don't install unnecessary docs: |
67 |
> sed -i -e "s/INSTALL LICENSE LICENSE.mrouted//" Makefile |
68 |
> |
69 |
> Please note that there's already bug for that pkg[1] it would be good if |
70 |
> further development would be done there. |
71 |
> Cheers, |
72 |
> Kacper |
73 |
> |
74 |
> [1] https://bugs.gentoo.org/show_bug.cgi?id=352848 |
75 |
> -----BEGIN PGP SIGNATURE----- |
76 |
> Version: GnuPG v2.0.17 (GNU/Linux) |
77 |
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ |
78 |
> |
79 |
> iJwEAQECAAYFAk4irrgACgkQIiMqcbOVdxTfXAP/VAZi6HwGPRQrCzYTJ840brkb |
80 |
> +KVBHUunzd+dML0m24oiq5CmR31SuYIpj4qXvsXuYYL2A2kK1N8R/A7KOcZ4MaGw |
81 |
> BkltP/crrLJU6qHnTVrEXLE2SEYUxAGbTw2D4Lx0DE3jkLtikNDp/I2D0bS3aK9l |
82 |
> /kuMMZp89zx293OeTBo= |
83 |
> =QQI+ |
84 |
> -----END PGP SIGNATURE----- |
85 |
> |
86 |
> Hi, |
87 |
Thanks for your input. |
88 |
I have posted the ebuild in the bug |
89 |
52848<https://bugs.gentoo.org/show_bug.cgi?id=352848>. |
90 |
Also included patches and rc-file. |
91 |
The License is a bit hard. |
92 |
It seems that the license is BSD, but as some work is copied from mrouted, |
93 |
then it also |
94 |
contains Stansford license. |
95 |
Can someone look and help me figure out what license should i use? |
96 |
|
97 |
I have included the License files in this mail. |
98 |
|
99 |
Regards, |
100 |
Kfir |