mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 10:52:57 +02:00
Hinzugefügt:
* Asterisk-Konfigurationsdateien fürs Webinterface. * Funktionierender Packager. * CUPS-Paket Geändert: * Postfix ohne PostgreSQL git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@177 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
16
lfs/Config
16
lfs/Config
@@ -133,19 +133,5 @@ define MD5
|
||||
endef
|
||||
|
||||
define PAK
|
||||
@rm -rf /install/packages/package /tmp/* /packagetmp.tar
|
||||
cd /
|
||||
mkdir -p /install/packages/package
|
||||
cp -f $(DIR_SRC)/src/paks/$(PROG)/{,un}install.sh /install/packages/package
|
||||
cp -f $(DIR_SRC)/src/paks/$(PROG)/ROOTFILES /install/packages/package
|
||||
chmod 755 /install/packages/package/{,un}install.sh
|
||||
tar --create -C / --files-from=/install/packages/package/ROOTFILES -f /packagetmp.tar --exclude='#*'
|
||||
tar -x -C /tmp -f /packagetmp.tar
|
||||
@rm -f /packagetmp.tar
|
||||
@cd /tmp
|
||||
tar zvcf /install/packages/package/files.tgz * -C /tmp
|
||||
rm -rf /tmp/*
|
||||
cd /install/packages/package && cat ROOTFILES | grep -v "#" > ROOTFILES && tar cfz ../$(PROG)-$(VER)-$(PAK_VER).tar.gz files.tgz install.sh uninstall.sh ROOTFILES
|
||||
cd /install/packages && md5sum $(THISAPP)-$(PAK_VER).tar.gz > $(PROG)-$(VER)-$(PAK_VER).tar.gz.md5
|
||||
@rm -rf /install/packages/package
|
||||
/usr/local/bin/packager $(PROG) $(VER) $(PAK_VER)
|
||||
endef
|
||||
|
||||
4
lfs/cups
4
lfs/cups
@@ -33,6 +33,8 @@ DL_FILE = $(THISAPP).tar.bz2
|
||||
DL_FROM = $(URL_IPFIRE)
|
||||
DIR_APP = $(DIR_SRC)/cups-$(VER)
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)
|
||||
PROG = cups
|
||||
PAK_VER = ipfire-beta1
|
||||
|
||||
###############################################################################
|
||||
# Top-level Rules
|
||||
@@ -53,7 +55,7 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
md5 : $(subst %,%_MD5,$(objects))
|
||||
|
||||
dist:
|
||||
make-packages.sh cups $(THISAPP)-ipfire-beta-1
|
||||
@$(PAK)
|
||||
|
||||
###############################################################################
|
||||
# Downloading, checking, md5sum
|
||||
|
||||
10
lfs/postfix
10
lfs/postfix
@@ -78,8 +78,14 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
@$(PREBUILD)
|
||||
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
|
||||
cd $(DIR_APP) && make -f Makefile.init makefiles \
|
||||
'CCARGS=-DDEF_DAEMON_DIR=\"/usr/lib/postfix\" -DDEF_MANPAGE_DIR=\"/usr/share/man\" -DUSE_TLS -DUSE_SALS_AUTH -DHAS_PGSQL -I/usr/include/openssl -DHAS_MYSQL -I/opt/lampp/include/mysql -I/usr/include/sasl -I/opt/lampp/include' \
|
||||
'AUXLIBS=-L/usr/lib -L/opt/lampp/lib/mysql -L/opt/lampp/lib -lmysqlclient -lz -lm -lssl -lsasl2 -lcrypto -lpq'
|
||||
'CCARGS=-DDEF_DAEMON_DIR=\"/usr/lib/postfix\" \
|
||||
-DDEF_MANPAGE_DIR=\"/usr/share/man\" \
|
||||
-DUSE_TLS -I/usr/include/openssl \
|
||||
-DUSE_SALS_AUTH -I/usr/include/sasl \
|
||||
-DHAS_PGSQL -I/opt/lampp/include \
|
||||
-DHAS_MYSQL -I/opt/lampp/include/mysql' \
|
||||
'AUXLIBS=-L/usr/lib -lz -lm -lssl -lcrypto \
|
||||
-lmysqlclient -L/opt/lampp/lib/mysql -lsasl2 -lpq -L/opt/lampp/lib'
|
||||
cd $(DIR_APP) && make
|
||||
cd $(DIR_APP) && sh postfix-install -non-interactive
|
||||
## Install configuration
|
||||
|
||||
@@ -113,6 +113,5 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
grep etc/python.conf /opt/lampp/etc/httpd.conf || echo -e "Include etc/python.conf" /opt/lampp/etc/httpd.conf
|
||||
chown -R nobody.nobody /opt/lampp/htdocs
|
||||
ln -fs /opt/lampp/lib/mysql/libmysqlclient.* /usr/lib
|
||||
ln -fs /opt/lampp/lib/libpq.* /usr/lib
|
||||
ldconfig
|
||||
@$(POSTBUILD)
|
||||
|
||||
Reference in New Issue
Block a user