blob: 3e2d7502429f1f3ee488ca712f5153499511008b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
DESCRIPTION="Golang based autonomous FTP"
HOMEPAGE="https://github.com/fclairamb/ftpserver"
BDEPEND=">=dev-lang/go-1.25.8"
SRC_URI="https://github.com/fclairamb/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://share.terinstock.com/${P}-vendor.tar.xz "
COMMIT="56134625f11f504ce6250b71d6136630610347c6"
LICENSE="MIT"
LICENSE+=" Apache-2.0 BSD BSD-2"
SLOT="0"
KEYWORDS="~amd64"
src_compile() {
local BUILD_DATE
BUILD_DATE=$(date -u +%Y-%m-%dT%H:%M:%SZ)
ego build --ldflags "
-X main.BuildVersion=${PV}
-X main.Commit=${COMMIT}
-X main.BuildDate=${BUILD_DATE}
" .
}
src_install() {
dobin ftpserver
}
|