source: src-sh/pc-updatemanager/Makefile @ b95e8a8

releng/10.0.1releng/10.0.2releng/10.0.3releng/10.1
Last change on this file since b95e8a8 was b95e8a8, checked in by Kris Moore <kris@…>, 10 months ago
  • Major update to how we do Major Updates
  • First, we are dropping the fragile freebsd-update system for doing major updates, I.E 10.0 -> 10.1
  • Instead switch to grabbing the PC-BSD ISO file, for the major release
    • Do full verification of this ISO file, contents, etc
    • Extract the base/kernel/games/doc/lib32*.txz files
    • Added support for our custom version of "etcmerge" to handle updates to /etc
    • System Packages will be installed from the DVD / ISO, preventing issues with connectivity problems, and pkgng "hiccups" getting files from the net.
    • PBIs will be fetched from internet, but if they fail, will not prevent user from getting back to a desktop where they can re-install via AppCafe?
  • While here, added support for automatic creation of a Boot-Environment before the update is started
  • Property mode set to 100644
File size: 1.9 KB
Line 
1#############################################################################
2# Makefile for building: pc-updatemanager
3#############################################################################
4
5PREFIX?= /usr/local
6
7AR            = ar cqs
8RANLIB        = 
9TAR           = tar -cf
10COMPRESS      = gzip -9f
11COPY          = cp -f
12SED           = sed
13COPY_FILE     = $(COPY)
14COPY_DIR      = $(COPY) -R
15STRIP         = 
16INSTALL_FILE  = $(COPY_FILE)
17INSTALL_DIR   = $(COPY_DIR)
18INSTALL_PROGRAM = $(COPY_FILE)
19DEL_FILE      = rm -f
20SYMLINK       = ln -f -s
21DEL_DIR       = rmdir
22MOVE          = mv -f
23CHK_DIR_EXISTS= test -d
24MKDIR         = mkdir -p
25
26first: all
27
28all:
29
30install_scripts: first FORCE
31        @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)$(PREFIX)/bin/ || $(MKDIR) $(INSTALL_ROOT)$(PREFIX)/bin/
32        @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)$(PREFIX)/share/pcbsd/pc-updatemanager/ || $(MKDIR) $(INSTALL_ROOT)$(PREFIX)/share/pcbsd/pc-updatemanager/
33        -$(INSTALL_FILE) pc-updatemanager $(INSTALL_ROOT)$(PREFIX)/bin/
34        -$(INSTALL_FILE) etcmerge $(INSTALL_ROOT)$(PREFIX)/share/pcbsd/pc-updatemanager/
35
36
37uninstall_scripts:  FORCE
38        -$(DEL_FILE) -r $(INSTALL_ROOT)$(PREFIX)/bin/pc-updatemanager
39        -$(DEL_DIR) $(INSTALL_ROOT)$(PREFIX)/bin/
40
41
42install_dochmod: first FORCE
43        @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)$(PREFIX)/bin/ || $(MKDIR) $(INSTALL_ROOT)$(PREFIX)/bin/
44        chmod 755 $(PREFIX)/bin/pc-updatemanager
45
46install_conf: first FORCE
47        @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)$(PREFIX)/share/pcbsd/pc-updatemanager/ || $(MKDIR) $(INSTALL_ROOT)$(PREFIX)/share/pcbsd/pc-updatemanager/
48        -$(INSTALL_DIR) conf $(INSTALL_ROOT)$(PREFIX)/share/pcbsd/pc-updatemanager/
49
50
51uninstall_conf:  FORCE
52        -$(DEL_FILE) -r $(INSTALL_ROOT)$(PREFIX)/share/pcbsd/pc-updatemanager/conf
53        -$(DEL_DIR) $(INSTALL_ROOT)$(PREFIX)/share/pcbsd/pc-updatemanager
54
55
56install:  install_scripts install_dochmod install_conf  FORCE
57
58uninstall: uninstall_scripts uninstall_conf  FORCE
59
60FORCE:
61
Note: See TracBrowser for help on using the repository browser.