mirror of
https://github.com/RubyMetric/chsrc
synced 2025-10-09 21:33:23 +08:00
Move debian
into pkg/DEB
This commit is contained in:
5
pkg/DEB/debian/changelog
Normal file
5
pkg/DEB/debian/changelog
Normal file
@@ -0,0 +1,5 @@
|
||||
chsrc (1.0.0) unstable; urgency=medium
|
||||
|
||||
* Initial debian package release
|
||||
|
||||
-- Aoran Zeng <ccmywish@qq.com> Mon, 10 Jun 2025 00:00:00 +0000
|
18
pkg/DEB/debian/control
Normal file
18
pkg/DEB/debian/control
Normal file
@@ -0,0 +1,18 @@
|
||||
Source: chsrc
|
||||
Section: utils
|
||||
Priority: optional
|
||||
Maintainer: sanchuanhehe <wyihe5520@gmail.com>
|
||||
Build-Depends: debhelper-compat (= 13), build-essential, libc6-dev
|
||||
Standards-Version: 4.6.0
|
||||
Homepage: https://github.com/RubyMetric/chsrc
|
||||
Vcs-Git: https://github.com/RubyMetric/chsrc.git
|
||||
Vcs-Browser: https://github.com/RubyMetric/chsrc
|
||||
|
||||
Package: chsrc
|
||||
Architecture: any
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||
Description: Change Source - A tool for changing software sources
|
||||
chsrc is a command-line tool for changing software sources (mirrors)
|
||||
for various package managers and programming language ecosystems.
|
||||
It supports automatic detection and switching of sources for better
|
||||
download speeds in different regions.
|
29
pkg/DEB/debian/copyright
Normal file
29
pkg/DEB/debian/copyright
Normal file
@@ -0,0 +1,29 @@
|
||||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: chsrc
|
||||
Upstream-Contact: Aoran Zeng <ccmywish@qq.com>
|
||||
Source: https://github.com/RubyMetric/chsrc
|
||||
|
||||
Files: *
|
||||
Copyright: 2023-2025 Aoran Zeng <ccmywish@qq.com>
|
||||
License: GPL-3.0-or-later
|
||||
|
||||
Files: debian/*
|
||||
Copyright: 2025 Aoran Zeng <ccmywish@qq.com>
|
||||
License: GPL-3.0-or-later
|
||||
|
||||
License: GPL-3.0-or-later
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
.
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
.
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
.
|
||||
On Debian systems, the complete text of the GNU General
|
||||
Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
|
31
pkg/DEB/debian/postinst
Executable file
31
pkg/DEB/debian/postinst
Executable file
@@ -0,0 +1,31 @@
|
||||
#!/bin/sh
|
||||
# postinst script for chsrc
|
||||
|
||||
set -e
|
||||
|
||||
case "$1" in
|
||||
configure)
|
||||
# Update man database
|
||||
if command -v mandb >/dev/null 2>&1; then
|
||||
mandb -q /usr/share/man/man1/chsrc.1 2>/dev/null || true
|
||||
fi
|
||||
|
||||
# Make sure chsrc is executable
|
||||
chmod +x /usr/bin/chsrc
|
||||
|
||||
echo "chsrc has been successfully installed!"
|
||||
echo "Run 'chsrc help' to get started."
|
||||
;;
|
||||
|
||||
abort-upgrade|abort-remove|abort-deconfigure)
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "postinst called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
22
pkg/DEB/debian/prerm
Executable file
22
pkg/DEB/debian/prerm
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# prerm script for chsrc
|
||||
|
||||
set -e
|
||||
|
||||
case "$1" in
|
||||
remove|upgrade|deconfigure)
|
||||
# Nothing special to do during removal
|
||||
;;
|
||||
|
||||
failed-upgrade)
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "prerm called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
10
pkg/DEB/debian/rules
Executable file
10
pkg/DEB/debian/rules
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
||||
override_dh_auto_build:
|
||||
$(MAKE) all
|
||||
|
||||
override_dh_auto_install:
|
||||
$(MAKE) install DESTDIR=$(CURDIR)/debian/chsrc
|
Reference in New Issue
Block a user