⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 build_pkg.sh

📁 Rsync 3.0.5 source code
💻 SH
字号:
#!/bin/sh# Shell script for building Solaris package of rsync# Author: Jens Apel <jens.apel@web.de># License: GPL## BASEDIR is /usr/local and should be the same as the# --prefix parameter of configure## this script should be copied under# packaging/solaris/5.8/build_pkg.sh# Definitions start here# you can edit this, if you like# The Package name under which rsync will b installedPKGNAME=SMBrsync# Extract common info requires for the 'info' part of the package.# This should be made generic and generated by the configure script# but for now it is hard codedBASEDIR=/usr/localVERSION="2.5.5"ARCH=`uname -p`NAME=rsync# Definitions end here# Please do not edit below this line or you know what you do.## Start by faking root installecho "Creating install directory (fake $BASEDIR)..."START=`pwd`FAKE_ROOT=$START/${PKGNAME}mkdir $FAKE_ROOT# copy the binary and the man page to their placesmkdir $FAKE_ROOT/binmkdir -p $FAKE_ROOT/doc/rsyncmkdir -p $FAKE_ROOT/man/man1mkdir -p $FAKE_ROOT/man/man5cp ../../../rsync $FAKE_ROOT/bin/rsynccp ../../../rsync.1 $FAKE_ROOT/man/man1/rsync.1cp ../../../rsyncd.conf.5 $FAKE_ROOT/man/man5/rsyncd.conf.5cp ../../../README $FAKE_ROOT/doc/rsync/READMEcp ../../../COPYING $FAKE_ROOT/doc/rsync/COPYINGcp ../../../tech_report.pdf $FAKE_ROOT/doc/rsync/tech_report.pdfcp ../../../COPYING $FAKE_ROOT/COPYING## Build info fileecho "Building pkginfo file..."cat > $FAKE_ROOT/pkginfo << EOF_INFOPKG=$PKGNAMENAME=$NAMEDESC="Program for efficient remote updates of files."VENDOR="Samba Team URL: http://samba.anu.edu.au/rsync/"BASEDIR=$BASEDIRARCH=$ARCHVERSION=$VERSIONCATEGORY=applicationCLASSES=noneEOF_INFO## Build prototype filecat > $FAKE_ROOT/prototype << EOFPROTOi copyright=COPYINGi pkginfo=pkginfod none bin 0755 bin binf none bin/rsync 0755 bin bind none doc 0755 bin bind none doc/$NAME 0755 bin binf none doc/$NAME/README 0644 bin binf none doc/$NAME/COPYING 0644 bin binf none doc/$NAME/tech_report.pdf 0644 bin bind none man 0755 bin bind none man/man1 0755 bin binf none man/man1/rsync.1 0644 bin bind none man/man5 0755 bin binf none man/man5/rsyncd.conf.5 0644 bin binEOFPROTO## And now build the package.OUTPUTFILE=$PKGNAME-$VERSION-sol8-$ARCH-local.pkgecho "Building package.."echo FAKE_ROOT = $FAKE_ROOTcd $FAKE_ROOTpkgmk -d . -r . -f ./prototype -opkgtrans -os . $OUTPUTFILE $PKGNAMEmv $OUTPUTFILE ..cd ..# Comment this out if you want to see, which file structure has been createdrm -rf $FAKE_ROOT

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -