Please find attached isakmpd-20030731.ebuild and a header file so that it will compile. Isakmpd is the linux port of openbsd's isakmpd, it's usefull for the new ipsec implementation of linux 2.5.x and 2.6.x. I suggest app-misc/isakmpd Also, this ebuild depend on keynote ebuild (just submited) sebest Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 16572 [details] isakmpd-20030731.ebuild the isakmpd ebuild
Created attachment 16573 [details] a header file needed for the compilation
Created attachment 16574 [details] /etc/conf.d/isakmpd
Created attachment 16575 [details] /etc/init.d/isakmpd
Created attachment 16578 [details] changelog
Created attachment 16628 [details] isakmpd updated ebuild
The additional dirs you create in /etc/isakmpd/ are not registered by portage since you use pkg_postinst. If you now unmerge isakmpd, those files won't be unmerged or be shown in cfgpro. BTW: For the current version of isakmpd, bistring.h seems to be obsolete, isakmpd works fine without it here.
Thanx for the informations Should i use dodir in the src_install function? I corrected the ebuild about the bitstring file. the problem i have is that the tar.gz of isakmp has no version number in its name. I also wrote an ebuild for the cvs of isakmp, i'll post it soon
Created attachment 17323 [details] isakmpd ebuild
Comment on attachment 17323 [details] isakmpd ebuild fixed for new tar.gz
Created attachment 17324 [details] isakmpd using cvs.eclass this ebuild checkout the last version of isakmpd
Created attachment 17416 [details] updated isakmpd ebuild
Created attachment 20662 [details] isakmpd-20031107.ebuild
Created attachment 20663 [details, diff] Patch for the Makefile build linux instead of openbsd
Created attachment 20664 [details, diff] Patch for compiling without openssl 0.9.7
Comment on attachment 20664 [details, diff] Patch for compiling without openssl 0.9.7 AES_BLOCK_SIZE is not define in openssl 0.9.6 so we define it
Created attachment 20666 [details, diff] Patch for compiling without openssl 0.9.7 fixed a typo in the previous one
Created attachment 22143 [details] isakmpd-20031207.ebuild
i get the following error when trying to compile: gmp_util.c:85: error: Syntaxfehler before "d" gmp_util.c: In function `mpz_setraw': gmp_util.c:91: Warnung: implicit declaration of function `mpz_set_si' gmp_util.c:91: error: `d' undeclared (first use in this function) gmp_util.c:96: error: `l' undeclared (first use in this function) gmp_util.c:99: Warnung: implicit declaration of function `mpz_mul_ui' gmp_util.c:100: Warnung: implicit declaration of function `mpz_add_ui' gmp_util.c:100: error: `s' undeclared (first use in this function) make: *** [gmp_util.o] Fehler 1 !!! ERROR: net-misc/isakmpd-20031207 failed. !!! Function src_compile, Line 32, Exitcode 2 !!! (no error message) greets, nils
i think i forgot a dependecie : libgmp, it's fixed in the new ebuild thanx for testing.
Created attachment 22274 [details] isakmpd-20031207.ebuild : fixed missing dependencie : libgmp
Can you please attach a complete working non-CVS-based tarball of the ebuilds and files so that I can test and commit this into CVS? Thanks!
The author decided not to provide tar.gz of isakmpd anymore, only cvs look at his homepage: http://bender.thinknerd.de/~thomas/IPsec/isakmpd-linux.html What should we do? i'll try to contact him.
Take a snapshot and test it well, is usually the solution.
Created attachment 22569 [details] tarball with all file and ebuild 20031222
Created attachment 22570 [details] snapshot of isakmpd cvs from 20031222 you must use the ebuild contain in attachment 22569 [details]
Created attachment 22571 [details] isakmpd-cvs-20031222.ebuild (using cvs eclass)
Created attachment 22572 [details] isakmpd-20031222.ebuild
Created attachment 22702 [details] snapshot of isakmpd cvs from 20031227
Created attachment 22703 [details] isakmpd-20031227.ebuild the last cvs fixed the AES bug so patch 20666 is no more needed i modifyed the ebuild to use a "sed" instead of a patch (20663)
Created attachment 22704 [details] isakmpd-cvs-20031227.ebuild (using cvs eclass)
Created attachment 22705 [details] tarball with all file and ebuild 20031227
Just a note... The ebuild in attachment #22704 [details] is missing the GNUmakefile change. src_compile should look like the following: src_compile() { sed 's/^\(OS=\t\topenbsd\)/#\1/' GNUmakefile > GNUmakefile.tmp mv GNUmakefile.tmp GNUmakefile sed 's/^#\(OS=\t\tlinux\)/\1/' GNUmakefile > GNUmakefile.tmp mv GNUmakefile.tmp GNUmakefile emake || die } Built successfully, now to test...
The GNUmakefile is not missing, it is implemented as a patch: "epatch ${FILESDIR}/gentoo-1.patch" look in the "tarball with all file and ebuild 20031227"
When i trying to compile it breaks. arc4random.c: In Funktion
When i trying to compile it breaks. arc4random.c: In Funktion »arc4_stir«: arc4random.c:104: error: `i' undeclared (first use in this function) arc4random.c:104: error: (Each undeclared identifier is reported only once arc4random.c:104: error: for each function it appears in.) make[1]: *** [arc4random.o] Fehler 1 make: *** [/var/tmp/portage/isakmpd-20031227/work/isakmpd/sysdep/common/libsysdep/libsysdep.a] Fehler 2 It seems there is an bug in the cvs sources. I adding an "int i;" to /usr/portage/distfiles/cvs-src/isakmpd/sysdep/common/libsysdep/arc4random.c before line 104 after fetching the files from cvs and now it works.
This has non-existant upstream, dead project. Closing WONTFIX.