Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Builder Robot
eepm
Commits
baa25dfb
Commit
baa25dfb
authored
Mar 24, 2026
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add freefilesync (folder comparison and synchronization)
parent
d3b718cb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
126 additions
and
0 deletions
+126
-0
freefilesync.sh
pack.d/freefilesync.sh
+108
-0
freefilesync.sh
play.d/freefilesync.sh
+18
-0
No files found.
pack.d/freefilesync.sh
0 → 100644
View file @
baa25dfb
#!/bin/sh
TAR
=
"
$1
"
RETURNTARNAME
=
"
$2
"
VERSION
=
"
$3
"
.
$(
dirname
$0
)
/common.sh
# tar.gz contains a single .run ELF installer
erc
--here
unpack
"
$TAR
"
||
fatal
RUNFILE
=
"
$(
echo
FreeFileSync_
*
_Install.run
)
"
[
-f
"
$RUNFILE
"
]
||
fatal
"Installer .run file not found"
chmod
+x
"
$RUNFILE
"
[
-n
"
$VERSION
"
]
||
VERSION
=
"
$(
echo
"
$RUNFILE
"
|
grep
-oE
'[0-9]+\.[0-9]+'
)
"
[
-n
"
$VERSION
"
]
||
fatal
"Can't get package version"
# extract using the bundled installer (requires a terminal)
mkdir
-p
opt/
$PRODUCT
script
-qc
"./
$RUNFILE
--directory
$(
pwd
)
/opt/
$PRODUCT
--accept-license --skip-overview"
/dev/null
||
fatal
"Installer failed"
# create wrapper scripts
mkdir
-p
usr/bin
cat
<<
'
EOFBIN
' > usr/bin/freefilesync
#!/bin/sh
exec /opt/freefilesync/FreeFileSync "
$@
"
EOFBIN
chmod
755 usr/bin/freefilesync
cat
<<
'
EOFBIN
' > usr/bin/realtimesync
#!/bin/sh
exec /opt/freefilesync/RealTimeSync "
$@
"
EOFBIN
chmod
755 usr/bin/realtimesync
# desktop files
mkdir
-p
usr/share/applications
cat
<<
'
EOF
' > usr/share/applications/FreeFileSync.desktop
[Desktop Entry]
Type=Application
Name=FreeFileSync
GenericName=Folder Comparison and Synchronization
Exec=freefilesync %F
Icon=freefilesync
Terminal=false
Categories=Utility;FileTools;
StartupNotify=true
MimeType=application/x-freefilesync-gui;application/x-freefilesync-batch;
Comment=Folder Comparison and Synchronization
EOF
cat
<<
'
EOF
' > usr/share/applications/RealTimeSync.desktop
[Desktop Entry]
Type=Application
Name=RealTimeSync
GenericName=Automated Synchronization
Exec=realtimesync %F
Icon=realtimesync
Terminal=false
Categories=Utility;FileTools;
StartupNotify=true
MimeType=application/x-freefilesync-real;
Comment=Automated Synchronization
EOF
# icons
mkdir
-p
usr/share/icons/hicolor/128x128/apps
cp
opt/
$PRODUCT
/Resources/FreeFileSync.png usr/share/icons/hicolor/128x128/apps/freefilesync.png
cp
opt/
$PRODUCT
/Resources/RealTimeSync.png usr/share/icons/hicolor/128x128/apps/realtimesync.png
# mime types
mkdir
-p
usr/share/mime/packages
cp
opt/
$PRODUCT
/Resources/freefilesync-mime.xml usr/share/mime/packages/ 2>/dev/null
||
cat
<<
'
EOF
' > usr/share/mime/packages/freefilesync-mime.xml
<?xml version="1.0"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/x-freefilesync-gui">
<glob pattern="*.ffs_gui"/>
<comment>FreeFileSync Configuration</comment>
</mime-type>
<mime-type type="application/x-freefilesync-batch">
<glob pattern="*.ffs_batch"/>
<comment>FreeFileSync Batch File</comment>
</mime-type>
<mime-type type="application/x-freefilesync-real">
<glob pattern="*.ffs_real"/>
<comment>RealTimeSync Configuration</comment>
</mime-type>
</mime-info>
EOF
# remove installer artifacts not needed in package
rm
-f
opt/
$PRODUCT
/uninstall.sh
PKGNAME
=
$PRODUCT
-
$VERSION
erc pack
$PKGNAME
.tar opt usr
||
fatal
cat
<<
EOF
>
$PKGNAME
.tar.eepm.yaml
name:
$PRODUCT
group: File tools
license: GPL-3.0
url: https://freefilesync.org
summary: Folder comparison and synchronization
description: FreeFileSync is a folder comparison and synchronization software that creates and manages backup copies of all your important files.
EOF
return_tar
$PKGNAME
.tar
play.d/freefilesync.sh
0 → 100644
View file @
baa25dfb
#!/bin/sh
PKGNAME
=
freefilesync
SUPPORTEDARCHES
=
"x86_64"
VERSION
=
"
$2
"
DESCRIPTION
=
"FreeFileSync is a folder comparison and synchronization software that creates and manages backup copies of all your important files"
URL
=
"https://freefilesync.org"
.
$(
dirname
$0
)
/common.sh
if
[
"
$VERSION
"
=
"*"
]
;
then
VERSION
=
$(
eget
-O-
"https://freefilesync.org/download.php"
|
grep
-oE
'FreeFileSync_[0-9]+\.[0-9]+_Linux'
|
head
-1
|
sed
's|FreeFileSync_||;s|_Linux||'
)
[
-n
"
$VERSION
"
]
||
fatal
"Can't get latest version"
fi
PKGURL
=
"https://freefilesync.org/download/FreeFileSync_
${
VERSION
}
_Linux_x86_64.tar.gz"
install_pack_pkgurl
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment