From nobody Tue Apr 23 09:00:33 2024 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VNx0m2FD7z5Jn3k for ; Tue, 23 Apr 2024 09:00:40 +0000 (UTC) (envelope-from hiroo@oikumene.net) Received: from barleycorn.oikumene.net (tk2-231-25124.vs.sakura.ne.jp [160.16.110.128]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4VNx0l1C51z4BNw for ; Tue, 23 Apr 2024 09:00:39 +0000 (UTC) (envelope-from hiroo@oikumene.net) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hiroo@oikumene.net designates 160.16.110.128 as permitted sender) smtp.mailfrom=hiroo@oikumene.net Received: from nowhere.oikumene.ukehi.net (KD059129091046.ppp-bb.dion.ne.jp [59.129.91.46]) by barleycorn.oikumene.net (Postfix) with ESMTPSA id B3FA661F8E; Tue, 23 Apr 2024 18:00:34 +0900 (JST) Received: from nowhere.oikumene.ukehi.net ([IPv6:240f:3f:802f:2:82c1:6eff:fef8:b41e]) by nowhere.oikumene.ukehi.net (8.18.1/8.18.1) with ESMTP id 43N90XJr054099; Tue, 23 Apr 2024 18:00:34 +0900 (JST) (envelope-from hiroo@oikumene.net) X-Authentication-Warning: nowhere.oikumene.ukehi.net: Host [IPv6:240f:3f:802f:2:82c1:6eff:fef8:b41e] claimed to be nowhere.oikumene.ukehi.net Date: Tue, 23 Apr 2024 18:00:33 +0900 From: Hiroo Ono To: FreeBSD User Cc: FreeBSD Ports Subject: Re: Port maintenance: How to add extra source files to ports tree framework? Message-ID: <20240423180033.659a7adc@nowhere.oikumene.ukehi.net> In-Reply-To: <20240421093704.31ca081f@thor.intern.walstatt.dynvpn.de> References: <20240421093704.31ca081f@thor.intern.walstatt.dynvpn.de> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.41; amd64-portbld-freebsd14.0) List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports@freebsd.org Sender: owner-freebsd-ports@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.27 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.97)[-0.969]; R_SPF_ALLOW(-0.20)[+ip4:160.16.110.128:c]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; ASN(0.00)[asn:9370, ipnet:160.16.0.0/17, country:JP]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_NA(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; HAS_XAW(0.00)[]; DMARC_NA(0.00)[oikumene.net]; FROM_HAS_DN(0.00)[]; TO_DN_ALL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MIME_TRACE(0.00)[0:+] X-Rspamd-Queue-Id: 4VNx0l1C51z4BNw On Sun, 21 Apr 2024 09:36:37 +0200 FreeBSD User wrote: > - additionally download the constraints file from another source Getting several distribution files from GitHub is documentted in the Porters' Handbook. https://docs.freebsd.org/en/books/porters-handbook/makefiles/#makefile-master_sites-github-multiple The same trick may be applied to other MASTER_SITES. For example: MASTER_SITES= https://site1.example.com/subdir/:tag1 \ https://site2.example.com/some-other-dir/:tag2 DISTFILES= file1.tar.gz:tag1 file2.tar.gz:tag2 > - placing the file in the propper staging/wrksrc folder Both files are extracted under ${WRKKDIR}. If you want to extract file2.tar.gz to other place, use EXTRACT_ONLY and extract file2.tar.gz in post-extract target. > - editing that file according Python requirements You could use patch files and/or ${REINPLACE_CMD} (sed -i) (or other programs if you want.) > - placing the file in pkg-plist This chapter in the Porter's Handbook might help you. https://docs.freebsd.org/en/books/porters-handbook/plist/#plist-dynamic ---- Hiroo Ono