mirror of
https://github.com/teddysun/across.git
synced 2025-09-17 20:14:27 +08:00
Added xray-plugin rpm and deb source
Signed-off-by: Teddysun <i@teddysun.com>
This commit is contained in:
29
deb/xray-plugin/common/control
Normal file
29
deb/xray-plugin/common/control
Normal 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.
|
1
deb/xray-plugin/common/docs
Normal file
1
deb/xray-plugin/common/docs
Normal file
@@ -0,0 +1 @@
|
||||
xray-plugin/README.md
|
28
deb/xray-plugin/common/rules
Normal file
28
deb/xray-plugin/common/rules
Normal 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 $@
|
1
deb/xray-plugin/common/source/format
Normal file
1
deb/xray-plugin/common/source/format
Normal file
@@ -0,0 +1 @@
|
||||
1.0
|
Reference in New Issue
Block a user