forked from rosa/hakurei
internal/rosa: pass stage alongside state
This cleans up many function signatures. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -2,12 +2,12 @@ package rosa
|
||||
|
||||
import "hakurei.app/internal/pkg"
|
||||
|
||||
func (t Toolchain) newLibmnl(s *S) (pkg.Artifact, string) {
|
||||
func (t Toolchain) newLibmnl() (pkg.Artifact, string) {
|
||||
const (
|
||||
version = "1.0.5"
|
||||
checksum = "DN-vbbvQDpxXJm0TJ6xlluILvfrB86avrCTX50XyE9SEFSAZ_o8nuKc5Gu0Am7-u"
|
||||
)
|
||||
return s.NewPackage(t, "libmnl", version, newTar(
|
||||
return t.NewPackage("libmnl", version, newTar(
|
||||
"https://www.netfilter.org/projects/libmnl/files/"+
|
||||
"libmnl-"+version+".tar.bz2",
|
||||
checksum,
|
||||
@@ -50,12 +50,12 @@ func init() {
|
||||
})
|
||||
}
|
||||
|
||||
func (t Toolchain) newLibnftnl(s *S) (pkg.Artifact, string) {
|
||||
func (t Toolchain) newLibnftnl() (pkg.Artifact, string) {
|
||||
const (
|
||||
version = "1.3.1"
|
||||
checksum = "91ou66K-I17iX6DB6hiQkhhC_v4DFW5iDGzwjVRNbJNEmKqowLZBlh3FY-ZDO0r9"
|
||||
)
|
||||
return s.NewPackage(t, "libnftnl", version, s.newTagRemote(t,
|
||||
return t.NewPackage("libnftnl", version, t.newTagRemote(
|
||||
"https://git.netfilter.org/libnftnl",
|
||||
"libnftnl-"+version, checksum,
|
||||
), &PackageAttr{
|
||||
@@ -92,12 +92,12 @@ func init() {
|
||||
})
|
||||
}
|
||||
|
||||
func (t Toolchain) newIPTables(s *S) (pkg.Artifact, string) {
|
||||
func (t Toolchain) newIPTables() (pkg.Artifact, string) {
|
||||
const (
|
||||
version = "1.8.13"
|
||||
checksum = "TUA-cFIAsiMvtRR-XzQvXzoIhJUOc9J2gQDJCbBRjmgmVfGfPTCf58wL7e-cUKVQ"
|
||||
)
|
||||
return s.NewPackage(t, "iptables", version, s.newTagRemote(t,
|
||||
return t.NewPackage("iptables", version, t.newTagRemote(
|
||||
"https://git.netfilter.org/iptables",
|
||||
"v"+version, checksum,
|
||||
), &PackageAttr{
|
||||
|
||||
Reference in New Issue
Block a user