From e6b9e97e92c4ac2044c0ba3aa469274eff695b1d Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 29 Oct 2013 10:46:01 +0100 Subject: rename the project to paccache --- Makefile | 8 ++++---- README.md | 20 ++++++++++---------- config.def.h | 2 +- pacman/paccache | 2 ++ pacman/pacserve | 2 -- 5 files changed, 17 insertions(+), 17 deletions(-) create mode 100644 pacman/paccache delete mode 100644 pacman/pacserve diff --git a/Makefile b/Makefile index 5473040..31c56e8 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -# pacserve - serve pacman cache and redirect via avahi service +# paccache - serve pacman cache and redirect via avahi service CC := gcc MD := markdown @@ -37,7 +37,7 @@ install: install-bin install-doc install-bin: pacredir $(INSTALL) -D -m0755 pacredir $(DESTDIR)/usr/bin/pacredir - $(INSTALL) -D -m0644 pacman/pacserve $(DESTDIR)/etc/pacman.d/pacserve + $(INSTALL) -D -m0644 pacman/paccache $(DESTDIR)/etc/pacman.d/paccache $(INSTALL) -D -m0644 avahi/pacserve.service $(DESTDIR)/etc/avahi/services/pacserve.service $(INSTALL) -D -m0644 avahi/pacdbserve.service $(DESTDIR)/etc/avahi/services/pacdbserve.service $(INSTALL) -D -m0644 systemd/pacserve.service $(DESTDIR)/usr/lib/systemd/system/pacserve.service @@ -45,8 +45,8 @@ install-bin: pacredir $(INSTALL) -D -m0644 systemd/pacredir.service $(DESTDIR)/usr/lib/systemd/system/pacredir.service install-doc: README.html - $(INSTALL) -D -m0644 README.md $(DESTDIR)/usr/share/doc/pacserve/README.md - $(INSTALL) -D -m0644 README.html $(DESTDIR)/usr/share/doc/pacserve/README.html + $(INSTALL) -D -m0644 README.md $(DESTDIR)/usr/share/doc/paccache/README.md + $(INSTALL) -D -m0644 README.html $(DESTDIR)/usr/share/doc/paccache/README.html clean: $(RM) -f *.o *~ README.html pacredir diff --git a/README.md b/README.md index 1bfa7e9..68cbd6a 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ -pacserve +paccache ======== -**pacserve - serve pacman cache and redirect via avahi service** +**paccache - serve pacman cache and redirect via avahi service** By default every [Arch Linux](https://www.archlinux.org/) installation downloads its package files from online mirrors, transferring all the @@ -9,13 +9,13 @@ bits via WAN connection. But often other Arch systems may be around that already have the files available on local storage - just a fast LAN connection way. This is -where `pacserve` can help. It uses [Avahi](http://avahi.org/) to find +where `paccache` can help. It uses [Avahi](http://avahi.org/) to find other instances and get the files there if available. Requirements ------------ -To compile and run `pacserve` you need: +To compile and run `paccache` you need: * [avahi](http://avahi.org/) * [libmicrohttpd](http://www.gnu.org/software/libmicrohttpd/) @@ -39,7 +39,7 @@ followed by: > make install This will place an executable at `/usr/bin/pacredir`, -documentation can be found in `/usr/share/doc/pacserve/`. +documentation can be found in `/usr/share/doc/paccache/`. Additionally systemd service files are installed to `/usr/lib/systemd/system/` and avahi service files go to `/etc/avahi/services/`. @@ -49,16 +49,16 @@ Usage Make sure [multicast- DNS](https://wiki.archlinux.org/index.php/Avahi#Hostname_resolution) -works. Then enable systemd services pacserve, pacdbserve and pacredir, -open TCP ports 7078 and 7079 and add the following line to your -repository definitions in `pacman.conf`: +works. Then enable systemd services `pacserve`, `pacdbserve` and +`pacredir`, open TCP ports 7078 and 7079 and add the following line to +your repository definitions in `pacman.conf`: -> Include = /etc/pacman.d/pacserve +> Include = /etc/pacman.d/paccache Do not worry if `pacman` reports: > error: failed retrieving file 'core.db' from localhost:7077 : The > requested URL returned error: 404 Not Found -This is ok, it just tells `pacman` that `pacserve` could not find a file +This is ok, it just tells `pacman` that `pacredir` could not find a file and downloading it from an official server is required. diff --git a/config.def.h b/config.def.h index 68405cb..9d2cc6e 100644 --- a/config.def.h +++ b/config.def.h @@ -24,7 +24,7 @@ #define PAGE404 "404 Not Found" \ "404 Not Found: %s" -/* the port pacredir, pacserve and pacdbserve listen to */ +/* the ports pacredir, pacserve and pacdbserve listen to */ #define PORT_PACREDIR 7077 #define PORT_PACSERVE 7078 #define PORT_PACDBSERVE 7079 diff --git a/pacman/paccache b/pacman/paccache new file mode 100644 index 0000000..a1de680 --- /dev/null +++ b/pacman/paccache @@ -0,0 +1,2 @@ +# Make sure local service pacredir is running! +Server = http://localhost:7077/ diff --git a/pacman/pacserve b/pacman/pacserve deleted file mode 100644 index a1de680..0000000 --- a/pacman/pacserve +++ /dev/null @@ -1,2 +0,0 @@ -# Make sure local service pacredir is running! -Server = http://localhost:7077/ -- cgit v1.2.3-54-g00ecf