Added xray-plugin rpm and deb source

Signed-off-by: Teddysun <i@teddysun.com>
This commit is contained in:
Teddysun
2024-04-26 23:39:03 +09:00
parent 6cdb88d529
commit f1c46e0873
14 changed files with 644 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
Source: xray-plugin
Section: devel
Priority: optional
Maintainer: Teddysun <i@teddysun.com>
Build-Depends: bash,
cmake,
dh-apparmor,
debhelper-compat (= 12),
gcc,
git,
libc-dev,
libltdl-dev,
libseccomp-dev,
libseccomp2,
libsystemd-dev,
libtool,
make,
pkg-config
Standards-Version: 3.9.6
Homepage: https://github.com/teddysun/xray-plugin
Vcs-Browser: https://github.com/teddysun/xray-plugin
Vcs-Git: git://github.com/teddysun/xray-plugin.git
Package: xray-plugin
Architecture: linux-any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Xray plugin for shadowsocks
Yet another SIP003 plugin for shadowsocks, based on xray-core.
It should be used with shadowsocks.

View File

@@ -0,0 +1 @@
xray-plugin/README.md

View File

@@ -0,0 +1,28 @@
#!/usr/bin/make -f
VERSION?=$(shell cat VERSION)
# force packages to be built with xz compression, as Ubuntu 21.10 and up use
# zstd compression, which is non-standard, and breaks 'dpkg-sig --verify'
override_dh_builddeb:
dh_builddeb -- -Zxz
override_dh_auto_build:
cd xray-plugin \
&& GO111MODULE=on \
env CGO_ENABLED=0 go build -v -trimpath -ldflags "-X main.VERSION=v$(VERSION) -s -w -buildid=" -o "xray-plugin"
# http://manpages.debian.org/dh_dwz
override_dh_dwz:
# dh_dwz in debhelper versions less than 13 has issues with files that are missing debug symbols (once we update to debhelper-compat 13+ this can be removed)
@# https://packages.debian.org/debhelper
@# https://packages.ubuntu.com/debhelper
override_dh_auto_install:
install -D -m 0755 xray-plugin/xray-plugin debian/xray-plugin/usr/bin/xray-plugin
override_dh_shlibdeps:
dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info
%:
dh $@

View File

@@ -0,0 +1 @@
1.0