mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-14 04:52:59 +02:00
Packager finalisiert.
Cronjobs angepasst, falls die Maschine nicht zu der Zeit (meistens nachts) lief. Erste Versionen der Tripwire und Samba-Pakete zum testen. git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@530 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
@@ -33,7 +33,9 @@ int main(int argc, char *argv[]) {
|
||||
safe_system("ln -fs ../init.d/clamav /etc/rc.d/rc3.d/S33clamav >/dev/null 2>&1");
|
||||
safe_system("ln -fs ../init.d/clamav /etc/rc.d/rc0.d/K67clamav >/dev/null 2>&1");
|
||||
safe_system("ln -fs ../init.d/clamav /etc/rc.d/rc6.d/K67clamav >/dev/null 2>&1");
|
||||
safe_system("/etc/rc.d/init.d/clamav start");
|
||||
} else if (strcmp(argv[1], "disable") == 0) {
|
||||
safe_system("/etc/rc.d/init.d/clamav stop");
|
||||
safe_system("rm -f /etc/rc.d/rc*.d/*clamav >/dev/null 2>&1");
|
||||
} else {
|
||||
fprintf(stderr, "\nBad argument given.\n\nclamavctrl (start|stop|restart)\n\n");
|
||||
|
||||
9
src/pakfire/meta
Normal file
9
src/pakfire/meta
Normal file
@@ -0,0 +1,9 @@
|
||||
Name: NAME
|
||||
FullName: NAME
|
||||
Version: VER
|
||||
Release: RELEASE
|
||||
Size: SIZE
|
||||
Dependencies: DEPS
|
||||
Description-de: DESCDE
|
||||
Description-en: DESCEN
|
||||
File: NAME-VER-RELEASE.ipfire
|
||||
@@ -0,0 +1,3 @@
|
||||
tar xvfj files.tbz -C /
|
||||
|
||||
clamavctrl enable
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
clamavctrl disable
|
||||
|
||||
1
src/paks/samba/install.sh
Normal file
1
src/paks/samba/install.sh
Normal file
@@ -0,0 +1 @@
|
||||
tar xvfj files.tbz -C /
|
||||
0
src/paks/samba/uninstall.sh
Normal file
0
src/paks/samba/uninstall.sh
Normal file
0
src/paks/samba/update.sh
Normal file
0
src/paks/samba/update.sh
Normal file
1
src/paks/tripwire/install.sh
Normal file
1
src/paks/tripwire/install.sh
Normal file
@@ -0,0 +1 @@
|
||||
tar xvfj files.tbz -C /
|
||||
0
src/paks/tripwire/uninstall.sh
Normal file
0
src/paks/tripwire/uninstall.sh
Normal file
0
src/paks/tripwire/update.sh
Normal file
0
src/paks/tripwire/update.sh
Normal file
@@ -1,26 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
PROG="$1"
|
||||
VER="$2"
|
||||
PAK_VER="$3"
|
||||
EXT=ipfire
|
||||
|
||||
# Bringing the files to their right place.
|
||||
rm -rf /install/packages/package /tmp/* /packagetmp.tar
|
||||
mkdir -p /install/packages/package
|
||||
cp -f /usr/src/src/paks/$PROG/{,un}install.sh /install/packages/package
|
||||
cp -f /usr/src/src/paks/$PROG/update.sh /install/packages/package
|
||||
cp -f /usr/src/config/rootfiles/packages/$PROG /install/packages/package/ROOTFILES
|
||||
chmod 755 /install/packages/package/{,un}install.sh
|
||||
|
||||
cd / && tar --create --directory=/ --files-from=/install/packages/package/ROOTFILES --file=/packagetmp.tar --exclude='#*'
|
||||
cd / && tar -x -C /tmp -f /packagetmp.tar
|
||||
rm -f /packagetmp.tar
|
||||
cd /tmp && tar --create --bzip2 --verbose --file=/install/packages/package/files.tbz2 *
|
||||
|
||||
cd / && rm -rf /tmp/*
|
||||
cd /install/packages/package && cat ROOTFILES | grep -v "#" > ROOTFILES
|
||||
tar cfj ../$PROG-${VER}_$PAK_VER.$EXT files.tbz2 install.sh uninstall.sh update.sh ROOTFILES
|
||||
|
||||
rm -rf /install/packages/package
|
||||
exit 0
|
||||
Reference in New Issue
Block a user