🌴 Sync 2026-03-05 23:51:42

This commit is contained in:
github-actions[bot] committed 2026-03-05 23:51:42 +08:00
1 parent 97c049ed0a
commit 0acff03804
14253 files changed
+3893239

No files matched your search

+64
View File
@@ -0,0 +1,64 @@
# SPDX-License-Identifier: MIT
#
# Copyright (C) 2020-2024 muink <https://github.com/muink>
include $(TOPDIR)/rules.mk
PKG_NAME:=rgmac
PKG_VERSION:=1.5.1
PKG_RELEASE:=1
PKG_MAINTAINER:=Anya Lin <hukk1996@gmail.com>
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/muink/rgmac/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=skip
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
define Package/$(PKG_NAME)
SECTION:=net
CATEGORY:=Network
TITLE:=A random MAC address generator
URL:=https://github.com/muink/rgmac
DEPENDS:=+bash +curl +coreutils-cksum +getopt
PKGARCH:=all
endef
define Build/Configure
endef
define Build/Compile
endef
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_DIR) $(1)/usr/share/rgmac
$(INSTALL_DIR) $(1)/usr/share/rgmac/Vendor
$(INSTALL_DIR) $(1)/etc/uci-defaults
$(SED) 's,^\xEF\xBB\xBF,,g' $(PKG_BUILD_DIR)/Vendor/*
$(SED) 's,\x0D,,g' $(PKG_BUILD_DIR)/Vendor/*
$(SED) 's,WORKDIR=.* # <--,,' $(PKG_BUILD_DIR)/rgmac
$(SED) 's,OUIFILE=.* # <--,OUIFILE=/usr/share/rgmac/oui.txt,' $(PKG_BUILD_DIR)/rgmac
$(SED) 's,VENDORDIR=.* # <--,VENDORDIR=/usr/share/rgmac/Vendor/,' $(PKG_BUILD_DIR)/rgmac
$(INSTALL_BIN) $(PKG_BUILD_DIR)/rgmac $(1)/usr/bin/rgmac
$(CP) $(PKG_BUILD_DIR)/Vendor/* $(1)/usr/share/rgmac/Vendor/
$(INSTALL_BIN) ./uci-defaults $(1)/etc/uci-defaults/99_$(PKG_NAME)
endef
define Package/$(PKG_NAME)/conffiles
endef
define Package/$(PKG_NAME)/postinst
endef
define Package/$(PKG_NAME)/prerm
#!/bin/sh
rm -rf /usr/share/rgmac
endef
$(eval $(call BuildPackage,rgmac))
+47
View File
@@ -0,0 +1,47 @@
rgmac for OpenWrt/LEDE
======================
## Introduction
This project is the software package of [rgmac][] running on OpenWrt/LEDE
## Dependencies
`bash`, `curl`, `coreutils-cksum`, `getopt`
## Releases
You can find the prebuilt-ipks [here](https://fantastic-packages.github.io/releases/)
### Usage
See [Source project][]
## Build
- Compile from OpenWrt/LEDE [SDK][]
``` bash
# Take the ar71xx platform as an example
tar xjf OpenWrt-SDK-ar71xx-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2.tar.bz2
# Go to the SDK root dir
cd OpenWrt-SDK-ar71xx-*
# First run to generate a .config file
make menuconfig
./scripts/feeds update -a
./scripts/feeds install -a
# Get Makefile
git clone --depth 1 --branch master --single-branch https://github.com/muink/openwrt-rgmac.git package/rgmac
# Select the package Utilities -> rgmac
make menuconfig
# Start compiling
make package/rgmac/compile V=99
```
## Releases
You can find the prebuilt-ipks [here](https://fantastic-packages.github.io/releases/)
## License
MIT License
----------
[rgmac]: https://github.com/muink/rgmac
[Source project]: https://github.com/muink/rgmac/blob/master/Readme.md
[SDK]: http://wiki.openwrt.org/doc/howto/obtain.firmware.sdk
+2
View File
@@ -0,0 +1,2 @@
#!/bin/sh
rgmac -U