From owner-freebsd-questions@freebsd.org Wed Apr 8 18:01:54 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5AB142B7D52 for ; Wed, 8 Apr 2020 18:01:54 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.187]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48yBtT1sB3z4S9x for ; Wed, 8 Apr 2020 18:01:52 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([178.12.119.178]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPA (Nemesis) id 1Mf0Je-1iop9A2BdC-00gVFH; Wed, 08 Apr 2020 20:01:50 +0200 Date: Wed, 8 Apr 2020 20:01:49 +0200 From: Polytropon To: Viktor Madarasz Cc: Evilham , freebsd-questions@freebsd.org Subject: Re: Question (fwd) Message-Id: <20200408200149.8d6464a3.freebsd@edvax.de> In-Reply-To: References: Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:wecxvSfRKAtRZJLwoZ/50ICh/FJKh2fekXNZNlDAT58bjCMdEzk EK8REHMdE/QvqBDr9m47EJUk47sthpqXWGsA4hQkfudkHsCrq8g/GlF+TawDOA/mfU0XogD AZKRjWRSn0kYnRKoD25ou/udmvUEMdLHOcsnRnDTi6QcK56Xy1jcoDTu1IHDUOMfaDUDvl5 aRaMk7YlgXFKRxnmcXgiA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:NdIaZKquuP0=:L+JZcmMGvvbnfCg37HCjwY 1t6orUOF4hwFb9fuq2sVxAAe/Qj/kl/BfbYPDeSjxP8GrQKTlFQfObPLZCmi0bwn6cyTwCyne TCF+P6/v+zSIcp9nOd71bBsx7WuVgH/pMebwsHF6TtuJWhlYwp+D4nYzSkkWk9y6tH6lOHGxv VWS/O7JfB/YWc1EvRORduJaj41B3XklVmoSa6hJAKogxCcoht67zKDZbpdCHRrUR8xBvEkzpG 4xnX64eUFgZWADvoiVFAJVdOWaavy5gpmebGfW7rSRHeuGNo1IFEHmNzafyP52fJ2umCvJJiN 4tcQIh6uHGeYgFsBR36KQDMqLI4qCPVFpG8/h4IOxOFcfhkMqDOFOJjxTTdMNk3MaIxYxotfJ s5Uxao02cOCwYxEd2DTvkVGGsb768vEt4fJ9Rqq9TdS3sEdSbx+s1eg0RJHQd59CGgMBCh8bo sNbz7Bn1ieN1hQ94aTEzIPo/c9wdayaP8uIinCvjfrkGQ2/LXv+Hg+wY3GQwfXOzjVnvQfjg7 yCPY+fUNLscNpPFozoT/DTdUTDb0vxm7vdwYQtAQqcLqnYl+LanVmb3uPrGjDpVNasgaRWRtc rD4UHAvCicO8m7DzLKKlC2ljlbSUQXOtLtlmed+LjV9BKolhTsgPwBeLy3iFwzZtVsr4t3xtU sywVj1uyWSiaeWNWrDAdyplq1lPFlrTGa9VQQYpCluPjWBzRno4z362HY7aEosnk5n1DYiEjW TwLWfUvmzMr9kMGmFDMnvcSJxWV4R1Uc6oITO4jKhDpwv/5pQkhYYFXzSFdb3w4//Ou1jyD/a wgu/Ip00gHL++jWQ+Q6PPEId16jFfkerRdZo1rnLV7sITp/K1g5EeWZZSPL+KXWlP2r4EKO X-Rspamd-Queue-Id: 48yBtT1sB3z4S9x X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd@edvax.de has no SPF policy when checking 212.227.126.187) smtp.mailfrom=freebsd@edvax.de X-Spamd-Result: default: False [3.75 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[178.119.12.178.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.07)[0.072,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(1.00)[0.998,0]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[187.126.227.212.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[187.126.227.212.rep.mailspike.net : 127.0.0.17]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(0.28)[ip: (0.44), ipnet: 212.227.0.0/16(-1.16), asn: 8560(2.12), country: DE(-0.02)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Apr 2020 18:01:54 -0000 On Wed, 8 Apr 2020 15:43:27 +0000 (UTC), Viktor Madarasz wrote: > Very nicely written article I liked it ... I also saw there is a FreeBSD > Porting Manual/Handbook Yes, that is the "FreeBSD Porter's Handbook": https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/ It contains a general description of the framework and tools you will be using when porting an application to FreeBSD. > By the look of it with my untrained eye it looked a lot like shell > scripting and following a given syntax and cheking builds and update > dependencies ---> this with my eyes without having a clue so dont judge me > on that :) You are basically right. The ports infrastructure uses both shell scripts and Makefile (with BSD make) to accomplish a wide set of goals. See the ports collection itself as a "collection of recipes on how to obtain, build, install, update, remove, or modify applications". THere are also some files with specific content that act as a "port description". An outline of how this works can be found in the porter's handbook mentioned above. > I always thought porting would mean to bring something over which does not > exist .. from zero .. like SecureCRT (has it open thats why, its a closed > source SSH/Terminal emulator has windows/mac os / linux versions ) and > figure out how to make it work on FreeBSD ** without it existing in any > form of port or binary for FreeBSD ** That's not fully correct. In some cases, ports are unique to FreeBSD - a comparable program does not exist anywhere else. A port can also be a program originally written for Linux, with patches, now available on FreeBSD. But a port can also be a device driver, released by the manufacturer, in binary form - no sources involved. Whenever you build a port, the end result typically is a pkg-style package. This package can then be installed. Don't be fooled by "make install" maybe suggesting something else - no, it exactly does that: build a package to be installed. In many cases, it compiles some source, maybe installs required dependencies (build dependencies and runtime dependencies), but sometimes it just fetches a binary blob from a specified source. > Where can I go to get some more step by step and training materials on > this Porting thing? IRC? other mail list? Telegram chat? >From the "lists.freebsd.org Mailing Lists" directory, the list "freebsd-ports - Porting software to FreeBSD" sounds quite suitable. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...