summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-10-29 10:46:01 +0100
committerGravatar Christian Hesse <mail@eworm.de>2013-10-29 10:46:01 +0100
commite6b9e97e92c4ac2044c0ba3aa469274eff695b1d (patch)
tree87f977bc2be9cb15dfdecc989af0ec0605dd7088
parentd79189f02d2cf5024e728ae9167b01209e700fdf (diff)
downloadpacredir-e6b9e97e92c4ac2044c0ba3aa469274eff695b1d.tar.gz
pacredir-e6b9e97e92c4ac2044c0ba3aa469274eff695b1d.tar.zst
rename the project to paccache
-rw-r--r--Makefile8
-rw-r--r--README.md20
-rw-r--r--config.def.h2
-rw-r--r--pacman/paccache (renamed from pacman/pacserve)0
4 files changed, 15 insertions, 15 deletions
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 "<html><head><title>404 Not Found</title>" \
"</head><body>404 Not Found: %s</body></html>"
-/* 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/pacserve b/pacman/paccache
index a1de680..a1de680 100644
--- a/pacman/pacserve
+++ b/pacman/paccache