summaryrefslogtreecommitdiff
path: root/package/firefox
diff options
context:
space:
mode:
Diffstat (limited to 'package/firefox')
-rw-r--r--package/firefox/Makefile10
-rwxr-xr-xpackage/firefox/files/firefox.init31
-rw-r--r--package/firefox/files/firefox.postinst6
-rw-r--r--package/firefox/files/xinitrc1
4 files changed, 43 insertions, 5 deletions
diff --git a/package/firefox/Makefile b/package/firefox/Makefile
index 1a9aabb77..1b998951c 100644
--- a/package/firefox/Makefile
+++ b/package/firefox/Makefile
@@ -5,7 +5,7 @@ include $(ADK_TOPDIR)/rules.mk
PKG_NAME:= firefox
PKG_VERSION:= 35.0
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_HASH:= bedeb5bbd8b49e5b286497ef7732542c6e7441088fd8cd577d7ca8af4c871e81
PKG_DESCR:= graphical webbrowser
PKG_SECTION:= x11/apps
@@ -119,15 +119,15 @@ endif
XAKE_FLAGS+= OS_RELEASE="2.6" HOST_CC=$(HOST_CC) HOST_LDFLAGS=$(HOST_LDFLAGS)
XAKE_FLAGS+= ARCHFLAG="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(TARGET_LDFLAGS) -lnss3 -lnssutil3 -lsmime3 -lssl3 -fPIC"
-pre-build:
- -mkdir $(WRKBUILD)/js/src/.deps
-
firefox-install:
+ $(INSTALL_DIR) $(IDIR_FIREFOX)/etc
$(INSTALL_DIR) $(IDIR_FIREFOX)/usr/bin
$(INSTALL_DIR) $(IDIR_FIREFOX)/usr/lib
$(CP) $(WRKINST)/usr/lib/firefox-$(PKG_VERSION) \
$(IDIR_FIREFOX)/usr/lib
- $(CP) ./files/firefox \
+ $(CP) ./files/xinitrc \
+ $(IDIR_FIREFOX)/etc
+ $(INSTALL_BIN) ./files/firefox \
$(IDIR_FIREFOX)/usr/bin
include $(ADK_TOPDIR)/mk/pkg-bottom.mk
diff --git a/package/firefox/files/firefox.init b/package/firefox/files/firefox.init
new file mode 100755
index 000000000..9fec2b5df
--- /dev/null
+++ b/package/firefox/files/firefox.init
@@ -0,0 +1,31 @@
+#!/bin/sh
+#PKG firefox
+#INIT 98
+. /etc/rc.conf
+
+case $1 in
+autostop) ;;
+autostart)
+ test x"${firefox:-NO}" = x"NO" && exit 0
+ test x"$firefox" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
+ exec sh $0 start
+ ;;
+start)
+ if [ ! -d /data/firefox ];then
+ mkdir /data/firefox
+ chown firefox /data/firefox
+ fi
+ su - firefox -c startx
+ ;;
+stop)
+ ;;
+restart)
+ sh $0 stop
+ sh $0 start
+ ;;
+*)
+ echo "Usage: $0 {start | stop | restart}"
+ exit 1
+ ;;
+esac
+exit $?
diff --git a/package/firefox/files/firefox.postinst b/package/firefox/files/firefox.postinst
new file mode 100644
index 000000000..a9be54701
--- /dev/null
+++ b/package/firefox/files/firefox.postinst
@@ -0,0 +1,6 @@
+#!/bin/sh
+. $IPKG_INSTROOT/etc/functions.sh
+add_rcconf firefox NO
+gid=$(get_next_gid)
+add_group firefox $gid
+add_user firefox $(get_next_uid) $gid /data/firefox /bin/sh
diff --git a/package/firefox/files/xinitrc b/package/firefox/files/xinitrc
new file mode 100644
index 000000000..cdc71236c
--- /dev/null
+++ b/package/firefox/files/xinitrc
@@ -0,0 +1 @@
+exec firefox