Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misc fixes, part 2 #75

Merged
merged 7 commits into from
Jul 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
build:
if: ${{github.ref == 'refs/heads/main' && github.event_name == 'push'}} || github.event_name == 'workflow_dispatch'
if: ${{github.ref_name == 'main' && github.event_name == 'push'}} || github.event_name == 'workflow_dispatch'
name: Build ${{ matrix.platform }} ${{ matrix.variant }}
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
with:
path: output/${{ steps.vars.outputs.tgz }}
release:
if: ${{github.repository == 'kernelkit/infix' && github.ref == 'refs/heads/main'}}
if: ${{github.repository_owner == 'kernelkit' && github.ref_name == 'main'}}
name: Upload Latest Build
needs: build
runs-on: ubuntu-latest
Expand Down
1 change: 0 additions & 1 deletion board/common/rootfs/etc/finit.d/enabled/sshd.conf

This file was deleted.

15 changes: 0 additions & 15 deletions package/confd/clean-etc

This file was deleted.

6 changes: 2 additions & 4 deletions package/confd/confd.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ CONFD_VERSION = 1.0
CONFD_LICENSE = BSD-3-Clause
CONFD_SITE_METHOD = local
CONFD_SITE = $(BR2_EXTERNAL_INFIX_PATH)/src/confd
CONFD_LICENSE = BSD-3
CONFD_LICENSE_FILES = LICENSE
CONFD_DEPENDENCIES = augeas jansson libite sysrepo
CONFD_AUTORECONF = YES

Expand All @@ -21,10 +23,6 @@ define CONFD_INSTALL_EXTRA
cp $(CONFD_PKGDIR)/sysrepo.conf $(FINIT_D)/available/
ln -sf ../available/sysrepo.conf $(FINIT_D)/enabled/sysrepo.conf
cp $(CONFD_PKGDIR)/tmpfiles.conf $(TARGET_DIR)/etc/tmpfiles.d/confd.conf
mkdir -p $(TARGET_DIR)/usr/share/factory/cfg
cp $(CONFD_PKGDIR)/factory-config.cfg $(TARGET_DIR)/usr/share/factory/cfg/startup-config.cfg
mkdir -p $(TARGET_DIR)/lib/infix
cp $(CONFD_PKGDIR)/clean-etc $(TARGET_DIR)/lib/infix/
endef
CONFD_POST_INSTALL_TARGET_HOOKS += CONFD_INSTALL_EXTRA

Expand Down
24 changes: 0 additions & 24 deletions package/confd/factory-config.cfg

This file was deleted.

1 change: 1 addition & 0 deletions package/factory/factory.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
################################################################################
FACTORY_VERSION = 1.0
FACTORY_LICENSE = MIT
FACTORY_LICENSE_FILES = LICENSE
FACTORY_SITE_METHOD = local
FACTORY_SITE = $(BR2_EXTERNAL_INFIX_PATH)/src/factory

Expand Down
2 changes: 1 addition & 1 deletion package/faux/faux.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ FAUX_VERSION = tags/2.1.0
FAUX_SITE = https://src.libcode.org/pkun/faux.git
FAUX_SITE_METHOD = git
FAUX_LICENSE = BSD-3
FAUX_LICENSE_FILES = LICENSE
FAUX_LICENSE_FILES = LICENCE
FAUX_INSTALL_STAGING = YES
FAUX_AUTORECONF = YES

Expand Down
2 changes: 2 additions & 0 deletions package/klinfix/klinfix.hash
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Locally calculated
sha256 9d9d33b873917ca5d0bdcc47a36d2fd385971ab0c045d1472fcadf95ee5bcf5b LICENSE
1 change: 1 addition & 0 deletions package/klinfix/klinfix.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

KLINFIX_VERSION = 1.0
KLINFIX_LICENSE = BSD-3-Clause
KLINFIX_LICENSE_FILES = LICENSE
KLINFIX_SITE_METHOD = local
KLINFIX_SITE = $(BR2_EXTERNAL_INFIX_PATH)/src/klinfix
KLINFIX_DEPENDENCIES = klish-plugin-sysrepo
Expand Down
2 changes: 1 addition & 1 deletion package/klish-plugin-sysrepo/klish-plugin-sysrepo.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ KLISH_PLUGIN_SYSREPO_VERSION = cdd3eb51a7f7ee0ed5bd925fa636061d3b1b85fb
KLISH_PLUGIN_SYSREPO_SITE = https://src.libcode.org/pkun/klish-plugin-sysrepo.git
KLISH_PLUGIN_SYSREPO_SITE_METHOD = git
KLISH_PLUGIN_SYSREPO_LICENSE = BSD-3
KLISH_PLUGIN_SYSREPO_LICENSE_FILES = LICENSE
KLISH_PLUGIN_SYSREPO_LICENSE_FILES = LICENCE
KLISH_PLUGIN_SYSREPO_DEPENDENCIES = klish sysrepo
KLISH_PLUGIN_SYSREPO_INSTALL_STAGING = YES
KLISH_PLUGIN_SYSREPO_AUTORECONF = YES
Expand Down
2 changes: 1 addition & 1 deletion package/klish/klish.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ KLISH_VERSION = tags/3.0.0
KLISH_SITE = https://src.libcode.org/pkun/klish.git
KLISH_SITE_METHOD = git
KLISH_LICENSE = BSD-3
KLISH_LICENSE_FILES = LICENSE
KLISH_LICENSE_FILES = LICENCE
KLISH_DEPENDENCIES = libxml2
KLISH_INSTALL_STAGING = YES
KLISH_AUTORECONF = YES
Expand Down
3 changes: 2 additions & 1 deletion package/net/net.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
################################################################################

NET_VERSION = 1.0
NET_LICENSE = ISC
NET_LICENSE = MIT
NET_LICENSE_FILES = LICENSE
NET_SITE_METHOD = local
NET_SITE = $(BR2_EXTERNAL_INFIX_PATH)/src/net
NET_DEPENDENCIES = libite
Expand Down
6 changes: 2 additions & 4 deletions package/querierd/querierd.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,14 @@ QUERIERD_LICENSE_FILES = LICENSE
QUERIERD_INSTALL_STAGING = YES

define QUERIERD_INSTALL_CONFIG
$(INSTALL) -D -m 0644 $(BR2_EXTERNAL_INFIX_PATH)/package/querierd/querierd.conf \
$(INSTALL) -D -m 0644 $(QUERIERD_PKGDIR)/querierd.conf \
$(TARGET_DIR)/etc/
endef
QUERIERD_POST_INSTALL_TARGET_HOOKS += QUERIERD_INSTALL_CONFIG

define QUERIERD_INSTALL_FINIT_SVC
$(INSTALL) -D -m 0644 $(BR2_EXTERNAL_INFIX_PATH)/package/querierd/querierd.svc \
$(INSTALL) -D -m 0644 $(QUERIERD_PKGDIR)/querierd.svc \
$(FINIT_D)/available/querierd.conf
$(INSTALL) -d -m 0755 $(FINIT_D)/enabled
ln -sf ../available/querierd.conf $(FINIT_D)/enabled/querierd.conf
endef

QUERIERD_POST_INSTALL_TARGET_HOOKS += QUERIERD_INSTALL_FINIT_SVC
Expand Down
1 change: 0 additions & 1 deletion package/skeleton-init-finit/skeleton-init-finit.mk
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ endif # BR2_PACKAGE_QUAGGA
ifeq ($(BR2_PACKAGE_SMCROUTE),y)
define SKELETON_INIT_FINIT_SET_SMCROUTE
cp $(SKELETON_INIT_FINIT_AVAILABLE)/smcroute.conf $(FINIT_D)/available/
ln -sf ../available/smcroute.conf $(FINIT_D)/enabled/smcroute.conf
endef
SKELETON_INIT_FINIT_POST_INSTALL_TARGET_HOOKS += SKELETON_INIT_FINIT_SET_SMCROUTE
endif
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
service [2345] smcrouted -ns -- Static multicast routing daemon
service [2345789] env:-/etc/default/smcrouted \
smcrouted -ns $SMCROUTE_OPTS $SMCROUTE_ARGS -- Static multicast routing daemon