DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 30th October 2020
leave0 leave0 is offline
Port Guard
 
Join Date: Sep 2020
Posts: 30
Default how to use pkgsrc package

hi guys ,i want use miredo from pkgsrc ./net/miredo in openbsd ,but i donnt know how to do that ,thank you guys.
Reply With Quote
  #2   (View Single Post)  
Old 30th October 2020
CiotBSD CiotBSD is offline
c107:b5d::
 
Join Date: Jun 2019
Location: Under /
Posts: 175
Default

pksrc not exists on OpenBSD!

and, miredo not exists on ports.
(see: openports.pl)
__________________
GPG:Fingerprint ed25519 : 072A 4DA2 8AFD 868D 74CF 9EA2 B85E 9ADA C377 5E8E
GPG:Fingerprint rsa4096 : 4E0D 4AF7 77F5 0FAE A35D 5B62 D0FF 7361 59BF 1733
Reply With Quote
  #3   (View Single Post)  
Old 30th October 2020
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

You would need to build the Miredo application from its source code, including making adjustments to fit the OpenBSD environment. You cannot install a NetBSD package on OpenBSD.
Reply With Quote
  #4   (View Single Post)  
Old 31st October 2020
leave0 leave0 is offline
Port Guard
 
Join Date: Sep 2020
Posts: 30
Default

sorry for my bad english ,i just want to use this software in openbsd ,if it need build from its source code and some making adjustments,how should i do to make it ?
Reply With Quote
  #5   (View Single Post)  
Old 31st October 2020
ibara ibara is offline
OpenBSD language porter
 
Join Date: Jan 2014
Posts: 783
Default

Choose autoconf-2.69 and automake-1.16 when prompted.
Code:
$ doas pkg_add autoconf automake gettext-runtime gmake libJudy
$ git clone https://git.remlab.net/git/miredo.git
$ cd miredo
$ sed -i '29d' libteredo/packets.c
$ sed -i '29d' libteredo/relay.c
$ sed -i '29d' libteredo/maintain.c
$ sed -i 's,ifdef IP_MULTICAST_IF,if 0,g' libteredo/discovery.c
$ sed -i '59 a \
> extern char **environ;' src/privproc.c
$ sed -i '27d' src/relayd.c
$ sed -i '65 a \
> extern char **environ;' src/relayd.c
$ sed -i '26d' libtun6/tun6.c
$ sed -i '29d' src/miredo.c
$ sed -i '26d' src/conf.c
$ sed -i '27d' src/main.c
$ sed -i 's,gettext_noop,gettext,g' compat/fixups.h
$ sed -i '26d' src/serverd.c
$ sed -i '26d' libteredo/server.c
$ sed -i '26d' src/checkconf.c
$ AUTOCONF_VERSION=2.69 AUTOMAKE_VERSION=1.16 autoreconf -fiv
$ CC=cc CXX=c++ CPPFLAGS='-I/usr/local/include' LDFLAGS='-L/usr/local/lib -lintl' ./configure
$ sed -i 's,include/gettext.h,,g' Makefile
$ gmake V=1
$ doas gmake install
I will not answer questions about this nor will I make a port of it.
Reply With Quote
  #6   (View Single Post)  
Old 31st October 2020
leave0 leave0 is offline
Port Guard
 
Join Date: Sep 2020
Posts: 30
Default

@ibara thank you very much ,i know it must take your times and efforts,i do it follow your step one by one ,after several times try.i get the same result,i dont kown which step i was missing.if you fell disturb, that's ok to ignore me ,thank you again.
Quote:
[zero@bsd:~/Downloads/miredo]$ sed -i '29d' libteredo/packets.c
[zero@bsd:~/Downloads/miredo]$ sed -i '29d' libteredo/relay.c
[zero@bsd:~/Downloads/miredo]$ sed -i 's,ifdef IP_MULTICAST_IF,if 0,g' libteredo/discovery.c
[zero@bsd:~/Downloads/miredo]$ sed -i '59 a \
> extern char **environ;' src/privproc.c
[zero@bsd:~/Downloads/miredo]$ sed -i '27d' src/relayd.c
[zero@bsd:~/Downloads/miredo]$ sed -i '65 a \
> extern char **environ;' src/relayd.c
[zero@bsd:~/Downloads/miredo]$ sed -i '26d' libtun6/tun6.c
[zero@bsd:~/Downloads/miredo]$ sed -i '29d' src/miredo.c
[zero@bsd:~/Downloads/miredo]$ sed -i '26d' src/conf.c
[zero@bsd:~/Downloads/miredo]$ sed -i '27d' src/main.c
[zero@bsd:~/Downloads/miredo]$ sed -i 's,gettext_noop,gettext,g' compat/fixups.h
[zero@bsd:~/Downloads/miredo]$ sed -i '26d' src/serverd.c
[zero@bsd:~/Downloads/miredo]$ sed -i '26d' libteredo/server.c
[zero@bsd:~/Downloads/miredo]$ sed -i '26d' src/checkconf.c
[zero@bsd:~/Downloads/miredo]$ ls
AUTHORS ChangeLog.old Makefile.am README TODO compat/ doc/ libteredo/ m4/ po/
COPYING Doxyfile.in NEWS THANKS autogen.sh* configure.ac include/ libtun6/ misc/ src/
[zero@bsd:~/Downloads/miredo]$ AUTOCONF_VERSION=2.69 AUTOMAKE_VERSION=1.16 autoreconf -fiv
autoreconf-2.69: Entering directory `.'
autoreconf-2.69: running: autopoint --force
Copying file ABOUT-NLS
Creating directory admin
Copying file admin/config.rpath
Copying file m4/codeset.m4
Copying file m4/extern-inline.m4
Copying file m4/fcntl-o.m4
Copying file m4/gettext.m4
Copying file m4/glibc2.m4
Copying file m4/glibc21.m4
Copying file m4/iconv.m4
Copying file m4/intdiv0.m4
Copying file m4/intl.m4
Copying file m4/intldir.m4
Copying file m4/intlmacosx.m4
Copying file m4/intmax.m4
Copying file m4/inttypes-pri.m4
Copying file m4/inttypes_h.m4
Copying file m4/lcmessage.m4
Copying file m4/lib-ld.m4
Copying file m4/lib-link.m4
Copying file m4/lib-prefix.m4
Copying file m4/lock.m4
Copying file m4/longlong.m4
Copying file m4/nls.m4
Copying file m4/po.m4
Copying file m4/printf-posix.m4
Copying file m4/progtest.m4
Copying file m4/size_max.m4
Copying file m4/stdint_h.m4
Copying file m4/threadlib.m4
Copying file m4/uintmax_t.m4
Copying file m4/visibility.m4
Copying file m4/wchar_t.m4
Copying file m4/wint_t.m4
Copying file m4/xsize.m4
Copying file po/Makefile.in.in
Copying file po/Makevars.template
Copying file po/Rules-quot
Copying file po/boldquot.sed
Copying file po/en@boldquot.header
Copying file po/en@quot.header
Copying file po/insert-header.sin
Copying file po/quot.sed
Copying file po/remove-potcdate.sin
autoreconf-2.69: running: aclocal --force -I m4
autoreconf-2.69: configure.ac: tracing
autoreconf-2.69: configure.ac: not using Libtool
autoreconf-2.69: running: /usr/local/bin/autoconf-2.69 --force
autoreconf-2.69: running: /usr/local/bin/autoheader-2.69 --force
autoreconf-2.69: running: automake --add-missing --copy --force-missing
configure.ac:48: installing 'admin/ar-lib'
configure.ac:44: installing 'admin/compile'
configure.ac:38: installing 'admin/config.guess'
configure.ac:38: installing 'admin/config.sub'
configure.ac:53: installing 'admin/install-sh'
configure.ac:53: installing 'admin/missing'
compat/Makefile.am:20: warning: noinst_LTLIBRARIES multiply defined in condition TRUE ...
Makefile.am:50: 'compat/Makefile.am' included from here
Makefile.am:38: ... 'noinst_LTLIBRARIES' previously defined here
doc/Makefile.am:35: warning: sed_verbose_$(V: non-POSIX recursive variable expansion
Makefile.am:51: 'doc/Makefile.am' included from here
doc/Makefile.am:36: warning: sed_verbose_$(AM_DEFAULT_VERBOSITY: non-POSIX recursive variable expansion
Makefile.am:51: 'doc/Makefile.am' included from here
misc/Makefile.am:24: warning: cat_verbose_$(V: non-POSIX recursive variable expansion
Makefile.am:52: 'misc/Makefile.am' included from here
misc/Makefile.am:25: warning: cat_verbose_$(AM_DEFAULT_VERBOSITY: non-POSIX recursive variable expansion
Makefile.am:52: 'misc/Makefile.am' included from here
Makefile.am: installing './INSTALL'
Makefile.am:41: error: Libtool library used but 'LIBTOOL' is undefined
Makefile.am:41: The usual way to define 'LIBTOOL' is to add 'LT_INIT'
Makefile.am:41: to 'configure.ac' and run 'aclocal' and 'autoconf' again.
Makefile.am:41: If 'LT_INIT' is in 'configure.ac', make sure
Makefile.am:41: its definition is in aclocal's search path.
Makefile.am: installing 'admin/depcomp'
parallel-tests: installing 'admin/test-driver'
autoreconf-2.69: automake failed with exit status: 1
[zero@bsd:~/Downloads/miredo]$ ls
ABOUT-NLS ChangeLog.old Makefile.am THANKS admin/ compat/ configure.ac libteredo/ misc/
AUTHORS Doxyfile.in NEWS TODO autogen.sh* config.h.in doc/ libtun6/ po/
COPYING INSTALL README aclocal.m4 autom4te.cache/ configure* include/ m4/ src/
[zero@bsd:~/Downloads/miredo]$ CC=cc CXX=c++ CPPFLAGS='-I/usr/local/include' LDFLAGS='-L/usr/local/lib -lintl' ./configure
configure: checking system...
checking build system type... x86_64-unknown-openbsd6.8
checking host system type... x86_64-unknown-openbsd6.8
configure: checking required programs...
checking for gcc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking whether cc understands -c and -o together... yes
checking for cc option to accept ISO C99... none needed
checking how to run the C preprocessor... cc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for ar... ar
checking the archiver (ar) interface... ar
./configure[4085]: syntax error: `2.2.0' unexpected
Reply With Quote
  #7   (View Single Post)  
Old 7th November 2020
leave0 leave0 is offline
Port Guard
 
Join Date: Sep 2020
Posts: 30
Default

after pkg_add libtool ,everything work ok! thank you again @ibara
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
xcb-xinput in Pkgsrc darktrym NetBSD Package System (pkgsrc) 4 4th January 2017 09:26 PM
Cmake can't find a package dependency within Pkgsrc recipt darktrym NetBSD Package System (pkgsrc) 3 20th November 2016 09:09 PM
wip pkgsrc kaludis NetBSD Installation and Upgrading 1 16th April 2014 02:54 AM
Which is the latest package site for netbsd 5.1.2? (pkgsrc-2012Q1) sotris99 NetBSD Package System (pkgsrc) 5 22nd June 2012 07:40 PM
Which is the significance about pkgsrc-2009Q2 and pkgsrc-2009Q3? aleunix NetBSD Package System (pkgsrc) 3 16th December 2009 07:19 AM


All times are GMT. The time now is 12:38 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick