From 6428abbeba0c15c92cab3806449368576fdcd650 Mon Sep 17 00:00:00 2001 From: B Stack Date: Sat, 20 May 2017 17:58:40 -0400 Subject: updated version to 1.1-4 and also renamed examples subdirs --- usr/share/mirror/docs/README.txt | 9 +++- usr/share/mirror/docs/mirror.spec | 2 +- usr/share/mirror/examples/HEADER.html | 2 +- usr/share/mirror/examples/deb/FOOTER.html | 4 ++ usr/share/mirror/examples/deb/HEADER.html | 13 ++++++ usr/share/mirror/examples/deb/smith122deb.gpg | 51 ++++++++++++++++++++++ usr/share/mirror/examples/deb/smith122deb.list | 1 + .../mirror/examples/deb/update-smith122deb.sh | 29 ++++++++++++ usr/share/mirror/examples/exampledeb/FOOTER.html | 4 -- usr/share/mirror/examples/exampledeb/HEADER.html | 13 ------ .../mirror/examples/exampledeb/smith122deb.gpg | 51 ---------------------- .../mirror/examples/exampledeb/smith122deb.list | 1 - .../examples/exampledeb/update-smith122deb.sh | 29 ------------ usr/share/mirror/examples/examplerpm/FOOTER.html | 8 ---- usr/share/mirror/examples/examplerpm/HEADER.html | 12 ----- .../mirror/examples/examplerpm/smith122rpm.repo | 7 --- .../examples/examplerpm/update-smith122rpm.sh | 10 ----- usr/share/mirror/examples/rpm/FOOTER.html | 8 ++++ usr/share/mirror/examples/rpm/HEADER.html | 12 +++++ usr/share/mirror/examples/rpm/smith122rpm.repo | 8 ++++ .../mirror/examples/rpm/update-smith122rpm.sh | 10 +++++ usr/share/mirror/inc/localize_git.sh | 2 +- usr/share/mirror/inc/scrub.txt | 5 ++- 23 files changed, 150 insertions(+), 141 deletions(-) create mode 100644 usr/share/mirror/examples/deb/FOOTER.html create mode 100644 usr/share/mirror/examples/deb/HEADER.html create mode 100644 usr/share/mirror/examples/deb/smith122deb.gpg create mode 100644 usr/share/mirror/examples/deb/smith122deb.list create mode 100755 usr/share/mirror/examples/deb/update-smith122deb.sh delete mode 100644 usr/share/mirror/examples/exampledeb/FOOTER.html delete mode 100644 usr/share/mirror/examples/exampledeb/HEADER.html delete mode 100644 usr/share/mirror/examples/exampledeb/smith122deb.gpg delete mode 100644 usr/share/mirror/examples/exampledeb/smith122deb.list delete mode 100755 usr/share/mirror/examples/exampledeb/update-smith122deb.sh delete mode 100644 usr/share/mirror/examples/examplerpm/FOOTER.html delete mode 100644 usr/share/mirror/examples/examplerpm/HEADER.html delete mode 100644 usr/share/mirror/examples/examplerpm/smith122rpm.repo delete mode 100755 usr/share/mirror/examples/examplerpm/update-smith122rpm.sh create mode 100644 usr/share/mirror/examples/rpm/FOOTER.html create mode 100644 usr/share/mirror/examples/rpm/HEADER.html create mode 100644 usr/share/mirror/examples/rpm/smith122rpm.repo create mode 100755 usr/share/mirror/examples/rpm/update-smith122rpm.sh diff --git a/usr/share/mirror/docs/README.txt b/usr/share/mirror/docs/README.txt index 534583f..fe5bfa4 100644 --- a/usr/share/mirror/docs/README.txt +++ b/usr/share/mirror/docs/README.txt @@ -16,10 +16,12 @@ mirror is basically a collection of scripts that provide the sync instructions t ## Steps to take before using mirror for the first time Configure these files: /etc/mirror/mirror.conf -/etc/httpd/sites/mirror.conf +/etc/httpd/conf.d/mirror.conf /usr/share/mirror/inc/rsync -Select a storage directory. This one is preconfigured for /srv/science/smith122/repo +Select a storage directory. This one is preconfigured for /mnt/public/www/smith122/repo + +Generate a GPG key and modify update-smith122deb.sh to use it. ## Scripts to run The files called by mirror-master are the ones that actually do the source and target selection and file operations. By default they are located in /etc/mirror/scripts/ @@ -63,6 +65,9 @@ Examples: ### REFERENCE ### CREDITS +Favicon by Lorc (http://lorcblog.blogspot.com/) +http://game-icons.net/ +License: CC-BY 3.0 Deb icon by franksouza183 (http://www.iconarchive.com/artist/franksouza183.html) http://www.iconarchive.com/show/fs-icons-by-franksouza183/Mimetypes-deb-icon.html License: GPL diff --git a/usr/share/mirror/docs/mirror.spec b/usr/share/mirror/docs/mirror.spec index a576b87..d2e7015 100644 --- a/usr/share/mirror/docs/mirror.spec +++ b/usr/share/mirror/docs/mirror.spec @@ -1,7 +1,7 @@ Summary: Mirror Name: mirror Version: 1.1 -Release: 3 +Release: 4 License: CC BY-SA 4.0 Group: Applications/System Source: mirror.tgz diff --git a/usr/share/mirror/examples/HEADER.html b/usr/share/mirror/examples/HEADER.html index 07bb9e4..e7b395a 100644 --- a/usr/share/mirror/examples/HEADER.html +++ b/usr/share/mirror/examples/HEADER.html @@ -9,7 +9,7 @@

Welcome to Smith122 repository

- +

diff --git a/usr/share/mirror/examples/deb/FOOTER.html b/usr/share/mirror/examples/deb/FOOTER.html new file mode 100644 index 0000000..7879e1c --- /dev/null +++ b/usr/share/mirror/examples/deb/FOOTER.html @@ -0,0 +1,4 @@ + + + + diff --git a/usr/share/mirror/examples/deb/HEADER.html b/usr/share/mirror/examples/deb/HEADER.html new file mode 100644 index 0000000..50d8bfa --- /dev/null +++ b/usr/share/mirror/examples/deb/HEADER.html @@ -0,0 +1,13 @@ + +Smith122 deb repository + +

Smith122 deb repository

+
+

You can install the smith122deb repo in the /etc/apt/sources.list.d/ directory with these commands: +

+sudo wget --quiet http://albion320.no-ip.biz/smith122/repo/deb/smith122deb.gpg -O /root/smith122deb.gpg
+sudo apt-key add /root/smith122deb.gpg
+sudo wget --quiet http://albion320.no-ip.biz/smith122/repo/deb/smith122deb.list -O /etc/apt-sources.list.d/smith122deb.list
+
+ + diff --git a/usr/share/mirror/examples/deb/smith122deb.gpg b/usr/share/mirror/examples/deb/smith122deb.gpg new file mode 100644 index 0000000..d64a765 --- /dev/null +++ b/usr/share/mirror/examples/deb/smith122deb.gpg @@ -0,0 +1,51 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- +Version: GnuPG v2.0.22 (GNU/Linux) + +mQINBFdPNSABEACd9U4/KOjZjXj1S7ehqwpSNyM/bvhNaGjSq/jEj6WaxcgwC0Ot +gN7PVIJRnIcgUGf2MiK79XeX4ZJFZQ9KdYeN38hKEaaMLGW+U3KN84fnt/6DSExy +HFl4UBshtVbg9yPU54grkvvjx1bnAWGTHzyJILzIVC7bbvJkbddtT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4Zc +EUJ7HXBbcbztFBsgykX0GMTiz9QKeX5HY689wlMCs/iJGU2/o+8dhqKyiNWBocSX +mDCU/76O5BMCD3GnlUSlsj4r1Wb4qmER8LpQy7JX+WHMqrcV/kUQftSwPWhnPgq7 +Slb8zuwK981PqfBJ0TAtyceqO6Ap82aKr9/JSr3vbadU5R4Qg0paBZwKpsnxsx+K +q0MP1POWYXXSPShMCk5WFh/Zln5+1uG7JC9Z9biX2FfGPXz+ArzqFtMKCzjf983c +SFCOJccGpza1yw3YFuFr8xo8e+auaGCdFQ8f/NuArtzxV0xqyPyBVCY61QvJpAWH +Z92xyyhHUGqows8dbMfG9TLSbZEMnytnZ963a3E7k/p9K4tCQ9Uj1mOFzUNyEqNO +075NJOS58N+QLrrw0/36ylqmZ+IfPipkF7ATMcIxj75GghjjstM9Rcy8Nsa/NB8l +DJ0Q0kmAgQwvupy3tbT4STl58bRowvt/BPCWyb1YZItkNfYRpYGFPp/gLxDijYLT +L6YXT3oEVqeItDlLuCns57kR7cp/Y1t83zJ8DKGck/TaUbwJBKJcYkGFoO9x+ZjF +keMeYGeTVuBsZabJJhnmH7E5c8+j328et4+/1J13xOAfixXef7Gzk4pT1m3ii7am +=ggDE +-----END PGP PUBLIC KEY BLOCK----- diff --git a/usr/share/mirror/examples/deb/smith122deb.list b/usr/share/mirror/examples/deb/smith122deb.list new file mode 100644 index 0000000..feb67e2 --- /dev/null +++ b/usr/share/mirror/examples/deb/smith122deb.list @@ -0,0 +1 @@ +deb http://albion320.no-ip.biz/smith122/repo/deb/ / diff --git a/usr/share/mirror/examples/deb/update-smith122deb.sh b/usr/share/mirror/examples/deb/update-smith122deb.sh new file mode 100755 index 0000000..b51a203 --- /dev/null +++ b/usr/share/mirror/examples/deb/update-smith122deb.sh @@ -0,0 +1,29 @@ +#!/bin/sh + +# working directory +repodir=/mnt/public/www/smith122/repo/deb/ +cd ${repodir} +chmod 0644 *deb 1>/dev/null 2>&1 +restorecon -RF "${repodir}" + +# create the package index +dpkg-scanpackages -m . > Packages +cat Packages | gzip -9c > Packages.gz + +# create the Release file +PKGS=$(wc -c Packages) +PKGS_GZ=$(wc -c Packages.gz) +cat < Release +Architectures: all +Date: $(date -R) +MD5Sum: + $(md5sum Packages | cut -d" " -f1) $PKGS + $(md5sum Packages.gz | cut -d" " -f1) $PKGS_GZ +SHA1: + $(sha1sum Packages | cut -d" " -f1) $PKGS + $(sha1sum Packages.gz | cut -d" " -f1) $PKGS_GZ +SHA256: + $(sha256sum Packages | cut -d" " -f1) $PKGS + $(sha256sum Packages.gz | cut -d" " -f1) $PKGS_GZ +EOF +gpg --batch --yes --passphrase-file /root/.gnupg/linuxadmin -abs -o Release.gpg Release diff --git a/usr/share/mirror/examples/exampledeb/FOOTER.html b/usr/share/mirror/examples/exampledeb/FOOTER.html deleted file mode 100644 index 7879e1c..0000000 --- a/usr/share/mirror/examples/exampledeb/FOOTER.html +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/usr/share/mirror/examples/exampledeb/HEADER.html b/usr/share/mirror/examples/exampledeb/HEADER.html deleted file mode 100644 index 50d8bfa..0000000 --- a/usr/share/mirror/examples/exampledeb/HEADER.html +++ /dev/null @@ -1,13 +0,0 @@ - -Smith122 deb repository - -

Smith122 deb repository

-
-

You can install the smith122deb repo in the /etc/apt/sources.list.d/ directory with these commands: -

-sudo wget --quiet http://albion320.no-ip.biz/smith122/repo/deb/smith122deb.gpg -O /root/smith122deb.gpg
-sudo apt-key add /root/smith122deb.gpg
-sudo wget --quiet http://albion320.no-ip.biz/smith122/repo/deb/smith122deb.list -O /etc/apt-sources.list.d/smith122deb.list
-
- - diff --git a/usr/share/mirror/examples/exampledeb/smith122deb.gpg b/usr/share/mirror/examples/exampledeb/smith122deb.gpg deleted file mode 100644 index d64a765..0000000 --- a/usr/share/mirror/examples/exampledeb/smith122deb.gpg +++ /dev/null @@ -1,51 +0,0 @@ ------BEGIN PGP PUBLIC KEY BLOCK----- -Version: GnuPG v2.0.22 (GNU/Lin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Q62B3TlF/P0o/IoUb4zGYKxhmI5Df/suKx0z89FYT8Sxr3MuP1NoTqLNGTAAj -mOfPACEzBtGy/OB/1xuIMufnTXh4xi0MpwARAQABiQIfBBgBCAAJBQJXTzUgAhsM -AAoJEDhjKVZEOuZkZbEP/0tffWiR1QcJNDn9RBYbXmHYwprDzOELSvju5HghJ4Zc -EUJ7HXBbcbztFBsgykX0GMTiz9QKeX5HY689wlMCs/iJGU2/o+8dhqKyiNWBocSX -mDCU/76O5BMCD3GnlUSlsj4r1Wb4qmER8LpQy7JX+WHMqrcV/kUQftSwPWhnPgq7 -Slb8zuwK981PqfBJ0TAtyceqO6Ap82aKr9/JSr3vbadU5R4Qg0paBZwKpsnxsx+K -q0MP1POWYXXSPShMCk5WFh/Zln5+1uG7JC9Z9biX2FfGPXz+ArzqFtMKCzjf983c -SFCOJccGpza1yw3YFuFr8xo8e+auaGCdFQ8f/NuArtzxV0xqyPyBVCY61QvJpAWH -Z92xyyhHUGqows8dbMfG9TLSbZEMnytnZ963a3E7k/p9K4tCQ9Uj1mOFzUNyEqNO -075NJOS58N+QLrrw0/36ylqmZ+IfPipkF7ATMcIxj75GghjjstM9Rcy8Nsa/NB8l -DJ0Q0kmAgQwvupy3tbT4STl58bRowvt/BPCWyb1YZItkNfYRpYGFPp/gLxDijYLT -L6YXT3oEVqeItDlLuCns57kR7cp/Y1t83zJ8DKGck/TaUbwJBKJcYkGFoO9x+ZjF -keMeYGeTVuBsZabJJhnmH7E5c8+j328et4+/1J13xOAfixXef7Gzk4pT1m3ii7am -=ggDE ------END PGP PUBLIC KEY BLOCK----- diff --git a/usr/share/mirror/examples/exampledeb/smith122deb.list b/usr/share/mirror/examples/exampledeb/smith122deb.list deleted file mode 100644 index feb67e2..0000000 --- a/usr/share/mirror/examples/exampledeb/smith122deb.list +++ /dev/null @@ -1 +0,0 @@ -deb http://albion320.no-ip.biz/smith122/repo/deb/ / diff --git a/usr/share/mirror/examples/exampledeb/update-smith122deb.sh b/usr/share/mirror/examples/exampledeb/update-smith122deb.sh deleted file mode 100755 index a33d571..0000000 --- a/usr/share/mirror/examples/exampledeb/update-smith122deb.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -# working directory -repodir=/srv/science/smith122/repo/deb/ -cd ${repodir} -chmod 0644 *deb 1>/dev/null 2>&1 -restorecon -RF "${repodir}" - -# create the package index -dpkg-scanpackages -m . > Packages -cat Packages | gzip -9c > Packages.gz - -# create the Release file -PKGS=$(wc -c Packages) -PKGS_GZ=$(wc -c Packages.gz) -cat < Release -Architectures: all -Date: $(date -R) -MD5Sum: - $(md5sum Packages | cut -d" " -f1) $PKGS - $(md5sum Packages.gz | cut -d" " -f1) $PKGS_GZ -SHA1: - $(sha1sum Packages | cut -d" " -f1) $PKGS - $(sha1sum Packages.gz | cut -d" " -f1) $PKGS_GZ -SHA256: - $(sha256sum Packages | cut -d" " -f1) $PKGS - $(sha256sum Packages.gz | cut -d" " -f1) $PKGS_GZ -EOF -gpg --batch --yes --passphrase-file /root/.gnupg/linuxadmin -abs -o Release.gpg Release diff --git a/usr/share/mirror/examples/examplerpm/FOOTER.html b/usr/share/mirror/examples/examplerpm/FOOTER.html deleted file mode 100644 index 0aeb772..0000000 --- a/usr/share/mirror/examples/examplerpm/FOOTER.html +++ /dev/null @@ -1,8 +0,0 @@ - - -Smith122 rpm repository - - -

All contents are licensed under CC BY-SA 4.0.

- - diff --git a/usr/share/mirror/examples/examplerpm/HEADER.html b/usr/share/mirror/examples/examplerpm/HEADER.html deleted file mode 100644 index 274e2ca..0000000 --- a/usr/share/mirror/examples/examplerpm/HEADER.html +++ /dev/null @@ -1,12 +0,0 @@ - - -Smith122 rpm repository - - -

Smith122 rpm repository

-
-

You can install the smith122rpm.repo in the /etc/yum.repos.d/ directory with this command: -

wget http://albion320.no-ip.biz/smith122/repo/rpm/smith122rpm.repo -O /etc/yum.repos.d/smith122rpm.repo
-
- - diff --git a/usr/share/mirror/examples/examplerpm/smith122rpm.repo b/usr/share/mirror/examples/examplerpm/smith122rpm.repo deleted file mode 100644 index 48bcc9b..0000000 --- a/usr/share/mirror/examples/examplerpm/smith122rpm.repo +++ /dev/null @@ -1,7 +0,0 @@ -# smith122rpm.repo -# Install with: -# wget http://albion320.no-ip.biz/smith122/repo/rpm/smith122rpm.repo -O /etc/yum.repos.d/smith122rpm.repo -[smith122rpm] -name=smith122rpm -baseurl=http://albion320.no-ip.biz/smith122/repo/rpm/ -gpgcheck=0 diff --git a/usr/share/mirror/examples/examplerpm/update-smith122rpm.sh b/usr/share/mirror/examples/examplerpm/update-smith122rpm.sh deleted file mode 100755 index a6c38a9..0000000 --- a/usr/share/mirror/examples/examplerpm/update-smith122rpm.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -# working directory -repodir=/srv/science/smith122/repo/rpm/ -cd ${repodir} -chmod 0644 *rpm 1>/dev/null 2>&1 -restorecon -RF "${repodir}" - -# create the package index -createrepo . diff --git a/usr/share/mirror/examples/rpm/FOOTER.html b/usr/share/mirror/examples/rpm/FOOTER.html new file mode 100644 index 0000000..0aeb772 --- /dev/null +++ b/usr/share/mirror/examples/rpm/FOOTER.html @@ -0,0 +1,8 @@ + + +Smith122 rpm repository + + +

All contents are licensed under CC BY-SA 4.0.

+ + diff --git a/usr/share/mirror/examples/rpm/HEADER.html b/usr/share/mirror/examples/rpm/HEADER.html new file mode 100644 index 0000000..274e2ca --- /dev/null +++ b/usr/share/mirror/examples/rpm/HEADER.html @@ -0,0 +1,12 @@ + + +Smith122 rpm repository + + +

Smith122 rpm repository

+
+

You can install the smith122rpm.repo in the /etc/yum.repos.d/ directory with this command: +

wget http://albion320.no-ip.biz/smith122/repo/rpm/smith122rpm.repo -O /etc/yum.repos.d/smith122rpm.repo
+
+ + diff --git a/usr/share/mirror/examples/rpm/smith122rpm.repo b/usr/share/mirror/examples/rpm/smith122rpm.repo new file mode 100644 index 0000000..cef7fdf --- /dev/null +++ b/usr/share/mirror/examples/rpm/smith122rpm.repo @@ -0,0 +1,8 @@ +# smith122rpm.repo +# Install with: +# wget http://albion320.no-ip.biz/smith122/repo/rpm/smith122rpm.repo -O /etc/yum.repos.d/smith122rpm.repo +[smith122rpm] +name=smith122rpm +baseurl=http://albion320.no-ip.biz/smith122/repo/rpm/ +gpgcheck=0 +enabled=1 diff --git a/usr/share/mirror/examples/rpm/update-smith122rpm.sh b/usr/share/mirror/examples/rpm/update-smith122rpm.sh new file mode 100755 index 0000000..eea1d79 --- /dev/null +++ b/usr/share/mirror/examples/rpm/update-smith122rpm.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +# working directory +repodir=/mnt/public/www/smith122/repo/rpm/ +cd ${repodir} +chmod 0644 *rpm 1>/dev/null 2>&1 +restorecon -RF "${repodir}" + +# create the package index +createrepo . diff --git a/usr/share/mirror/inc/localize_git.sh b/usr/share/mirror/inc/localize_git.sh index 7956f4b..e945f9d 100755 --- a/usr/share/mirror/inc/localize_git.sh +++ b/usr/share/mirror/inc/localize_git.sh @@ -1,2 +1,2 @@ #!/bin/sh -\cp -pRf /home/work/mirror.clean/.git /home/bgirton/rpmbuild/SOURCES/mirror-1.1-3/ +\cp -pRf /home/work/mirror.clean/.git /home/bgirton-local/rpmbuild/SOURCES/mirror-1.1-4/ diff --git a/usr/share/mirror/inc/scrub.txt b/usr/share/mirror/inc/scrub.txt index 587b2f4..a80bb8b 100644 --- a/usr/share/mirror/inc/scrub.txt +++ b/usr/share/mirror/inc/scrub.txt @@ -1,5 +1,5 @@ # for scrubpy version 2016-11-16a or newer -source /home/bgirton/rpmbuild/SOURCES/mirror-1.1-3 +source /home/bgirton-local/rpmbuild/SOURCES/mirror-1.1-4 target /home/work/mirror.clean ignore "tgz png gif jpg pyc pyo git swp ico" # rest of the lines are "OLD WORD" "NEW WORD" @@ -12,3 +12,6 @@ brian bname GIRTON STACK15 Girton Stack15 girton stack15 +STORAGE1 HOST1 +Storage1 Host1 +storage1 host1 -- cgit