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

📄 makepkg

📁 一个功能非常全面的代理服务器源代码程序,
💻
字号:
#!/bin/sh# /bin/cp because GNU cp is installed sometimes and has different syntax# This file has been changed for Squid 2failed(){	# show failed message and exit	echo "FAILED ($*)"	exit 1}#	check if caller runs as super user:[ `/usr/ucb/whoami` = root ] || failed "must be super user"PRG=SquidSRCDIR=`cd ../..;pwd`REL=`basename $SRCDIR | sed 's/.*-//'`# Make info file from info.in:cat info.in | sed "s/--VERSION--/$REL/" | sed "s/--DATE--/`date`/" >infoTMPDIR=/tmp/${PRG}# Cleanup previous package creationrm -rf ${TMPDIR}rm -rf ${PRG}.pkg# Create pre- and post-install scripts for the package, make sure these# are executablefor f in post_install pre_installdo	/bin/cp -p ${f} ${PRG}.${f}	chmod 755 ${PRG}.${f}done/bin/cp -p info ${PRG}.infochmod 644 ${PRG}.infomkdirs ${TMPDIR}/usr/local/squid/etc ${TMPDIR}/usr/local/squid/logs/bin/cp -pr /usr/local/squid/bin ${TMPDIR}/usr/local/squid/bin/cp -pr /usr/local/squid/etc/squid.conf.default ${TMPDIR}/usr/local/squid/etc# SQUID 2 (comment out if Squid 1)/bin/cp -pr /usr/local/squid/etc/mime.conf.default ${TMPDIR}/usr/local/squid/etc/bin/cp -pr /usr/local/squid/etc/icons ${TMPDIR}/usr/local/squid/etc/bin/cp -pr /usr/local/squid/etc/errors ${TMPDIR}/usr/local/squid/etc# END SQUID 2strip ${TMPDIR}/usr/local/squid/bin/*# It turns out that the Run* scripts are sometimes not executablechmod 755 ${TMPDIR}/usr/local/squid/bin/*/etc/chown -R nobody.other ${TMPDIR}/usr/local/squid/NextAdmin/Installer.app/package /tmp/${PRG} ${PRG}.info/bin/cp ${PRG}.pre_install ${PRG}.pkg/bin/cp ${PRG}.post_install ${PRG}.pkg/bin/cp -p Squid.pkg.README ${PRG}-${REL}.README# Cleanup:for f in post_install pre_install infodo	rm ${PRG}.${f}donerm info

⌨️ 快捷键说明

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