Changeset 72
- Timestamp:
- 05/19/05 03:05:05 (4 years ago)
- Files:
-
- Makefile (modified) (2 diffs)
- TODO (modified) (1 diff)
- debian/dirs (modified) (1 diff)
- debian/rules (modified) (1 diff)
- doc/swapspace.8 (modified) (2 diffs)
- src/swaps.c (modified) (1 diff)
- swapspace.conf (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
Makefile
r71 r72 8 8 9 9 install: all 10 install -d $(DESTDIR)/var/ tmp11 install -d -m700 $(DESTDIR)/var/ tmp/swapspace10 install -d $(DESTDIR)/var/lib 11 install -d -m700 $(DESTDIR)/var/lib/swapspace 12 12 install -d $(DESTDIR)/usr/sbin $(DESTDIR)/etc $(DESTDIR)/etc/init.d 13 13 install -d $(DESTDIR)/usr/share/man/man8 … … 18 18 19 19 uninstall: 20 $(RM) -r /var/ tmp/swapspace20 $(RM) -r /var/lib/swapspace 21 21 $(RM) /usr/sbin/swapspace /etc/swapspace.conf /etc/init.d/swapspace 22 22 $(RM) /usr/share/man/man8/swapspace.8 TODO
r61 r72 1 Configuration2 - Create swapfiles directory in /var/lib, /var/tmp, or /var/run? See FHS.3 4 Packaging5 - Debianize6 7 1 Policy 8 2 - Stabilize behaviour of that very first swapfile (allocate small "zero" file?) debian/dirs
r67 r72 3 3 etc/init.d 4 4 usr/share/man/man8 5 var/lib/swapspace debian/rules
r71 r72 84 84 dh_md5sums 85 85 dh_builddeb 86 install -d -m700 /var/ tmp/swapspace86 install -d -m700 /var/lib/swapspace 87 87 88 88 binary: binary-indep binary-arch doc/swapspace.8
r59 r72 49 49 \fB\-p\fR [\fIfile\fR], \fB\-\-pidfile\fR[=\fIfile\fR] 50 50 Write process identifier to \fIfile\fR when starting (and delete \fIfile\fR when 51 shutting down); defaults to \fI/var/ run/swapspace.pid\fR.51 shutting down); defaults to \fI/var/lib/swapspace.pid\fR. 52 52 .TP 53 53 \fB\-q\fR, \fB\-\-quiet\fR … … 56 56 \fB\-s\fR \fIdir\fR, \fB\-\-swappath\fR=\fIdir\fR 57 57 Create swapfiles in directory \fIdir\fR instead of default location 58 \fI/var/ tmp/swapspace\fR. This location must be accessible to \fIroot\fR only;58 \fI/var/lib/swapspace\fR. This location must be accessible to \fIroot\fR only; 59 59 allowing anyone else to write or even read swapped data would be a \fUserious 60 60 security breach\fR. src/swaps.c
r59 r72 52 52 #endif 53 53 54 static char swappath[PATH_MAX] = "/var/ tmp/swapspace";54 static char swappath[PATH_MAX] = "/var/lib/swapspace"; 55 55 static size_t swappath_len; 56 56 swapspace.conf
r59 r72 18 18 # Swap path: location where swapspace may create and delete swapfiles. For 19 19 # security reasons this directory must be accessible to root and to root only. 20 swappath="/var/ tmp/swapspace"20 swappath="/var/lib/swapspace" 21 21 22 22 # Lower free-space threshold: if the percentage of free space drops below this
