Compare commits
No commits in common. "f4f4e5b585694899c5ed171b70041b527b913060" and "e5de065783b400cc441aec6c37ef003383735a74" have entirely different histories.
f4f4e5b585
...
e5de065783
39
README.md
Normal file
39
README.md
Normal file
@ -0,0 +1,39 @@
|
||||
# star
|
||||
|
||||
#### 介绍
|
||||
{**以下是码云平台说明,您可以替换此简介**
|
||||
码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台
|
||||
无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
|
||||
|
||||
#### 软件架构
|
||||
软件架构说明
|
||||
|
||||
|
||||
#### 安装教程
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 使用说明
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 参与贡献
|
||||
|
||||
1. Fork 本仓库
|
||||
2. 新建 Feat_xxx 分支
|
||||
3. 提交代码
|
||||
4. 新建 Pull Request
|
||||
|
||||
|
||||
#### 码云特技
|
||||
|
||||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
||||
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
|
||||
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
|
||||
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
|
||||
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
||||
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
@ -1,28 +0,0 @@
|
||||
From 1ac0d780d31610d9d3bc74750879ca34c54e8f32 Mon Sep 17 00:00:00 2001
|
||||
From: openEuler Buildteam <buildteam@openeuler.org>
|
||||
Date: Wed, 1 Jan 2020 01:45:21 +0800
|
||||
Subject: [PATCH] change rmt authority
|
||||
|
||||
---
|
||||
star-1.5.3/rmt/rmt.dfl | 8 ++++----
|
||||
1 file changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/rmt/rmt.dfl b/rmt/rmt.dfl
|
||||
index 7b8ca8b..d5167b4 100644
|
||||
--- a/rmt/rmt.dfl
|
||||
+++ b/rmt/rmt.dfl
|
||||
@@ -44,7 +44,7 @@ USER=*
|
||||
# name name
|
||||
#
|
||||
#ACCESS=rtape sparky /dev/rmt/*
|
||||
-ACCESS=* * /dev/rmt/*
|
||||
-ACCESS=* * /dev/null
|
||||
-ACCESS=* * /dev/zero
|
||||
-#ACCESS=* * *
|
||||
+#ACCESS=* * /dev/rmt/*
|
||||
+#ACCESS=* * /dev/null
|
||||
+#ACCESS=* * /dev/zero
|
||||
+ACCESS=* * *
|
||||
--
|
||||
1.8.3.1
|
||||
|
||||
@ -1,22 +0,0 @@
|
||||
diff --git a/star/longnames.c b/star/longnames.c
|
||||
index 33cbe2a..9d2e303 100644
|
||||
--- a/star/longnames.c
|
||||
+++ b/star/longnames.c
|
||||
@@ -155,7 +155,7 @@ name_to_tcb(info, ptb)
|
||||
if (add)
|
||||
strcatl(ptb->ndbuf.t_name, name, "/", (char *)NULL);
|
||||
else
|
||||
- strcpy(ptb->ndbuf.t_name, name);
|
||||
+ strncpy(ptb->ndbuf.t_name, name, props.pr_maxsname);
|
||||
return (TRUE);
|
||||
}
|
||||
|
||||
@@ -198,7 +198,7 @@ name_to_tcb(info, ptb)
|
||||
if (add)
|
||||
strcatl(ptb->ndbuf.t_name, &np[1], "/", (char *)NULL);
|
||||
else
|
||||
- strcpy(ptb->ndbuf.t_name, &np[1]);
|
||||
+ strncpy(ptb->ndbuf.t_name, &np[1], props.pr_maxsname);
|
||||
strncpy(ptb->dbuf.t_prefix, name, np - name);
|
||||
info->f_flags |= F_SPLIT_NAME;
|
||||
return (TRUE);
|
||||
@ -1,13 +0,0 @@
|
||||
diff --git a/librmt/remote.c b/librmt/remote.c
|
||||
index 4606484..298ecef 100644
|
||||
--- a/librmt/remote.c
|
||||
+++ b/librmt/remote.c
|
||||
@@ -1462,7 +1462,7 @@ _rcmdrsh(ahost, inport, locuser, remuser, cmd, rsh)
|
||||
int pid;
|
||||
|
||||
if (rsh == 0)
|
||||
- rsh = "rsh";
|
||||
+ rsh = "ssh";
|
||||
|
||||
/*
|
||||
* Verify that 'locuser' is present on local host.
|
||||
@ -1,43 +0,0 @@
|
||||
diff --git a/star/spax.1 b/star/spax.1
|
||||
index b9a77e0..c462fe3 100644
|
||||
--- a/star/spax.1
|
||||
+++ b/star/spax.1
|
||||
@@ -4047,7 +4047,7 @@ Interfaces volume of IEEE Std 1003.1-2001,
|
||||
.BR chown (2),
|
||||
.BR creat (2),
|
||||
.BR mkdir (2),
|
||||
-.BR mkfifo (2),
|
||||
+.BR mkfifo (3),
|
||||
.BR stat (2),
|
||||
.BR utime (2),
|
||||
.BR write (2).
|
||||
@@ -4099,7 +4099,7 @@ entry is added to the ENVIRONMENT VARIABLES section.
|
||||
IEEE PASC Interpretation 1003.2 #168 is applied, clarifying that
|
||||
.BR mkdir (2)
|
||||
and
|
||||
-.BR mkfifo (2)
|
||||
+.BR mkfifo (3)
|
||||
calls can ignore an [EEXIST] error when
|
||||
extracting an archive.
|
||||
.PP
|
||||
diff --git a/star/star.1 b/star/star.1
|
||||
index caed9f4..a24d619 100644
|
||||
--- a/star/star.1
|
||||
+++ b/star/star.1
|
||||
@@ -5293,7 +5293,6 @@ cron script).
|
||||
Is used for the interactive user interface.
|
||||
.SH "SEE ALSO"
|
||||
.BR spax (1),
|
||||
-.BR suntar (1),
|
||||
.BR scpio (1),
|
||||
.BR tar (1),
|
||||
.BR cpio (1),
|
||||
@@ -5308,7 +5307,7 @@ Is used for the interactive user interface.
|
||||
.BR ssh (1),
|
||||
.BR star_sym (1),
|
||||
.BR tartest (1),
|
||||
-.BR star (4),
|
||||
+.BR star (1),
|
||||
.BR rcmd (3),
|
||||
.BR fssnap (1m)
|
||||
.SH DIAGNOSTICS
|
||||
@ -1,66 +0,0 @@
|
||||
diff --git a/star/Makefile b/star/Makefile
|
||||
index e868c62..c47e81d 100644
|
||||
--- a/star/all.mk
|
||||
+++ b/star/all.mk
|
||||
@@ -12,7 +12,7 @@ include $(SRCROOT)/$(RULESDIR)/rules.top
|
||||
# and copy star_fat.mk to Makefile.
|
||||
#
|
||||
|
||||
-MK_FILES= star.mk pax.mk suntar.mk gnutar.mk cpio.mk
|
||||
+MK_FILES= star.mk pax.mk cpio.mk
|
||||
|
||||
###########################################################################
|
||||
include $(SRCROOT)/$(RULESDIR)/rules.mks
|
||||
diff --git a/star/cpio.mk b/star/cpio.mk
|
||||
index 37a6dd2..0391239 100644
|
||||
--- a/star/cpio.mk
|
||||
+++ b/star/cpio.mk
|
||||
@@ -22,15 +22,16 @@ CPPOPTS += -DUSE_FFLAGS
|
||||
CPPOPTS += -DSCHILY_PRINT
|
||||
CFILES= cpio.c header.c cpiohdr.c xheader.c xattr.c \
|
||||
list.c extract.c create.c append.c diff.c restore.c \
|
||||
- remove.c star_unix.c acl_unix.c acltext.c fflags.c \
|
||||
+ remove.c star_unix.c lpath_unix.c \
|
||||
+ acl_unix.c acltext.c fflags.c \
|
||||
buffer.c dirtime.c lhash.c \
|
||||
hole.c longnames.c \
|
||||
movearch.c table.c props.c \
|
||||
unicode.c \
|
||||
subst.c volhdr.c \
|
||||
chdir.c match.c defaults.c dumpdate.c \
|
||||
- fifo.c device.c checkerr.c \
|
||||
- findinfo.c pathname.c
|
||||
+ fifo.c device.c checkerr.c paxopts.c \
|
||||
+ findinfo.c pathname.c version.c
|
||||
HFILES= star.h starsubs.h dirtime.h xtab.h xutimes.h \
|
||||
movearch.h table.h props.h fifo.h diff.h \
|
||||
checkerr.h dumpdate.h bitstring.h pathname.h
|
||||
diff --git a/star/pax.mk b/star/pax.mk
|
||||
index 73c6bc1..bd71e9b 100644
|
||||
--- a/star/pax.mk
|
||||
+++ b/star/pax.mk
|
||||
@@ -23,18 +23,19 @@ CPPOPTS += -DPAX
|
||||
CPPOPTS += -DSCHILY_PRINT
|
||||
CFILES= pax.c header.c cpiohdr.c xheader.c xattr.c \
|
||||
list.c extract.c create.c append.c diff.c restore.c \
|
||||
- remove.c star_unix.c acl_unix.c acltext.c fflags.c \
|
||||
+ remove.c star_unix.c lpath_unix.c \
|
||||
+ acl_unix.c acltext.c fflags.c \
|
||||
buffer.c dirtime.c lhash.c \
|
||||
hole.c longnames.c \
|
||||
movearch.c table.c props.c \
|
||||
unicode.c \
|
||||
subst.c volhdr.c \
|
||||
chdir.c match.c defaults.c dumpdate.c \
|
||||
- fifo.c device.c checkerr.c \
|
||||
- findinfo.c pathname.c
|
||||
+ fifo.c device.c checkerr.c paxopts.c \
|
||||
+ findinfo.c pathname.c version.c
|
||||
HFILES= star.h starsubs.h dirtime.h xtab.h xutimes.h \
|
||||
- movearch.h table.h props.h fifo.h diff.h \
|
||||
- checkerr.h dumpdate.h bitstring.h pathname.h
|
||||
+ movearch.h table.h props.h fifo.h diff.h restore.h \
|
||||
+ checkerr.h dumpdate.h bitstring.h
|
||||
LIBS= -ldeflt -lrmt -lfind -lschily $(LIB_ACL) $(LIB_ATTR) $(LIB_SOCKET) $(LIB_INTL) $(LIB_CAP)
|
||||
XMK_FILE= spaxman.mk
|
||||
|
||||
BIN
star-1.6.tar.bz2
BIN
star-1.6.tar.bz2
Binary file not shown.
157
star.spec
157
star.spec
@ -1,157 +0,0 @@
|
||||
%global ALTERNATIVES %{_sbindir}/alternatives
|
||||
%global ALT_NAME pax
|
||||
%global ALT_LINK %{_bindir}/pax
|
||||
%global ALT_SL1_NAME pax-man
|
||||
%global ALT_SL1_LINK %{_mandir}/man1/pax.1.gz
|
||||
%global ALT_PATH %{_bindir}/spax
|
||||
%global ALT_SL1_PATH %{_mandir}/man1/spax.1.gz
|
||||
|
||||
Name: star
|
||||
Version: 1.6
|
||||
Release: 4
|
||||
Summary: An archiver supports ACL
|
||||
License: CDDL-1.0
|
||||
URL: http://freecode.com/projects/%{name}
|
||||
Source: http://downloads.sourceforge.net/s-tar/%{name}-%{version}.tar.bz2
|
||||
|
||||
Patch0: star-1.6-star-mk.patch
|
||||
Patch1: star-1.5.2-bufferoverflow.patch
|
||||
Patch2: star-1.6-manpagereferences.patch
|
||||
Patch3: star-1.5.2-use-ssh-by-default.patch
|
||||
Patch4: bugfix-star-rmt-add-authority.patch
|
||||
|
||||
BuildRequires: libattr-devel libacl-devel libtool libselinux-devel e2fsprogs-devel git
|
||||
Provides: scpio = %{version}-%{release} spax = %{version}-%{release} rmt = %{version}-%{release}
|
||||
Obsoletes: scpio spax rmt
|
||||
Requires(post): %{ALTERNATIVES}
|
||||
Requires(preun): %{ALTERNATIVES}
|
||||
Provides: star-help = %{version}-%{release}
|
||||
Obsoletes: star-help < %{version}-%{release}
|
||||
|
||||
%description
|
||||
Star is an archiver with ACL support, it saves many files together into a single
|
||||
tape or disk archive, and can restore individual files from the archive.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{version} -p1 -Sgit
|
||||
|
||||
cp -a star/all.mk star/Makefile
|
||||
|
||||
star_recode()
|
||||
{
|
||||
for i in $@; do
|
||||
iconv -f iso_8859-1 -t utf-8 $i > .tmp_file
|
||||
mv .tmp_file $i
|
||||
done
|
||||
}
|
||||
|
||||
star_recode AN-1.5 AN-1.5.2 star/star.4
|
||||
|
||||
for PLAT in %{arm} %{power64} aarch64 %{mips} x86_64; do
|
||||
for AFILE in gcc cc; do
|
||||
[ ! -e RULES/${PLAT}-linux-${AFILE}.rul ] \
|
||||
&& ln -s i586-linux-${AFILE}.rul RULES/${PLAT}-linux-${AFILE}.rul
|
||||
done
|
||||
done
|
||||
|
||||
%build
|
||||
LCAP_FLAG=""
|
||||
if pkg-config --exists 'libcap'; then
|
||||
LCAP_FLAG="-lcap"
|
||||
fi
|
||||
|
||||
%global make_flags GMAKE_NOWARN=true \\\
|
||||
RUNPATH= \\\
|
||||
LDPATH= \\\
|
||||
PARCH=%{_target_cpu} \\\
|
||||
K_ARCH=%{_target_cpu} \\\
|
||||
INS_BASE=%{buildroot}%{_prefix} \\\
|
||||
INS_RBASE=%{buildroot} \\\
|
||||
INSTALL='sh $(SRCROOT)/conf/install-sh -c -m $(INSMODEINS)' \\\
|
||||
COPTX="$RPM_OPT_FLAGS -DTRY_EXT2_FS" \\\
|
||||
LDOPTX="$RPM_LD_FLAGS $LCAP_FLAG" \\\
|
||||
DEFCCOM=gcc
|
||||
|
||||
%make_build %make_flags
|
||||
|
||||
%install
|
||||
make install -s %make_flags
|
||||
|
||||
ln -s star.1.gz %{buildroot}%{_mandir}/man1/ustar.1
|
||||
mkdir -p %{buildroot}%{_sysconfdir}
|
||||
mkdir -p %{buildroot}%{_pkgdocdir}
|
||||
ln -s %{_sbindir}/rmt %{buildroot}%{_sysconfdir}/rmt
|
||||
install -p -m 644 COPYING star/README CDDL.Schily.txt AN-* %{buildroot}%{_pkgdocdir}
|
||||
|
||||
rm -rf %{buildroot}%{_prefix}/lib
|
||||
|
||||
%clean
|
||||
|
||||
%post
|
||||
%{ALTERNATIVES} --install %{ALT_LINK} %{ALT_NAME} %{ALT_PATH} 66 \
|
||||
--slave %{ALT_SL1_LINK} %{ALT_SL1_NAME} %{ALT_SL1_PATH}
|
||||
|
||||
%preun
|
||||
if [ $1 -eq 0 ]; then
|
||||
%{ALTERNATIVES} --remove %{ALT_NAME} %{ALT_PATH}
|
||||
fi
|
||||
|
||||
%files
|
||||
%exclude %{_bindir}/mt
|
||||
%exclude %{_bindir}/smt
|
||||
%exclude %{_bindir}/tartest
|
||||
%exclude %{_bindir}/tar
|
||||
%exclude %{_bindir}/gnutar
|
||||
%exclude %{_bindir}/star_fat
|
||||
%exclude %{_bindir}/star_sym
|
||||
%exclude %{_bindir}/suntar
|
||||
%exclude %{_sysconfdir}/default/star
|
||||
%exclude %{_prefix}%{_sysconfdir}
|
||||
%exclude %{_prefix}/include
|
||||
%exclude %{_mandir}/man3
|
||||
%exclude %{_mandir}/man5/{makefiles,makerules}.5*
|
||||
%exclude %{_mandir}/man1/{tartest,gnutar,smt,mt,suntar,match}.1*
|
||||
%exclude %{_docdir}/star/testscripts
|
||||
%exclude %{_docdir}/star/TODO
|
||||
%exclude %{_docdir}/rmt
|
||||
%doc %{_pkgdocdir}
|
||||
%{_bindir}/star
|
||||
%{_bindir}/ustar
|
||||
%dir %{_pkgdocdir}
|
||||
%license COPYING
|
||||
%doc %{_pkgdocdir}/CDDL.Schily.txt
|
||||
%{_bindir}/scpio
|
||||
%{_bindir}/spax
|
||||
%ghost %verify(not md5 size mode mtime) %{ALT_LINK}
|
||||
%ghost %verify(not md5 size mode mtime) %{ALT_SL1_LINK}
|
||||
%{_sbindir}/rmt
|
||||
%config %{_sysconfdir}/default/rmt
|
||||
%{_sysconfdir}/rmt
|
||||
%{_mandir}/man1/star*
|
||||
%{_mandir}/man1/ustar.*
|
||||
%{_mandir}/man5/star.*
|
||||
%{_mandir}/man1/scpio.*
|
||||
%{_mandir}/man1/spax.*
|
||||
%{_mandir}/man1/rmt.*
|
||||
|
||||
%changelog
|
||||
* Wed Oct 9 zhoupengcheng <zhoupengcheng11@huawei.com> - 1.6-4
|
||||
- DESC:Check whether the lcap compilation option needs to be added.
|
||||
|
||||
* Tue Jun 28 2022 Chenyx <chenyixiong3@huawei.com> - 1.6-3
|
||||
- License compliance rectification
|
||||
|
||||
* Fri Dec 25 2020 Liquor<lirui130@huawei.com> - 1.6-2
|
||||
- add package star-help to package star
|
||||
|
||||
* Fri Aug 7 2020 Hugel<gengqihu1@huawei.com> - 1.6-1
|
||||
- update to 1.6
|
||||
|
||||
* Thu Nov 21 2019 fangyufa<fangyufa1@huawei.com> - 1.5.3-16
|
||||
- add buildrequires of git for x86_64 build
|
||||
|
||||
* Mon Oct 21 2019 openEuler Buildteam<buildteam@openeuler.org> - 1.5.3-15
|
||||
- Type:NA
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- DESC:Package Init
|
||||
Loading…
x
Reference in New Issue
Block a user